/* 
    Aslankan | Construction & Architecture 
    Design System & Styles
*/

:root {
    --primary: #282828;
    --primary-rgb: 10, 43, 46;
    --primary-light: #3e3e3e;
    --accent: rgb(91, 6, 121);
    --accent-rgb: 201, 151, 50;
    --accent-dark: #703bc6;
    --text-dark: #272727;
    --text-muted: #6c6c6c;
    --bg-light: #fefefe;
    --bg-alt: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(25, 25, 25, 0.8);
    --glass-border: rgba(57, 53, 53, 0.1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-bold: 0 20px 60px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 500px) {
    .filter-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .project-description {
        padding: 0 1rem !important;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .timeline-item {
        width: 100% !important;
        padding-left: 60px !important;
        padding-right: 9px !important;
        text-align: left !important;
    }

    .timeline-content {
        background: white !important;
        padding: 1.5rem !important;
        border-radius: 2rem !important;
        box-shadow: var(--shadow-soft) !important;
        transition: var(--transition) !important;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled .nav-links a {
    color: var(--primary);
}

header.scrolled .brand {
    color: var(--primary);
}

header.scrolled .mobile-toggle {
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.brand img {
    transition: var(--transition);
}

header.scrolled .brand img {
    height: 40px !important;
}

.logo-text h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-alt);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.brand img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease-in-out;
}

header.scrolled .brand img {
    filter: brightness(1) invert(0);
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(39, 39, 39, 0.7), rgba(23, 23, 23, 0.5));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 211, 211, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Services */
.services {
    padding: 8rem 0;
    background: var(--bg-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Projects */
.projects {
    padding: 8rem 0;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Loading */
.skeleton {
    height: 400px;
    background: #f0f4f4;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-shine 1.5s infinite;
}

@keyframes skeleton-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.project-card {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    height: 400px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(10, 43, 46, 0.9));
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--primary);
    color: white;
}

.contact h2 {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 43, 46, 0.1);
}

/* Footer CTA */
.footer-cta {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.85);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.footer-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-contact span {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.cta-contact a {
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.cta-contact a:hover {
    color: var(--accent);
}

/* Main Footer */
.main-footer {
    background: #333333;
    color: #e5e5e5;
    padding: 6rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #666;
}

.footer-logo {
    height: 50px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.brand-col p {
    line-height: 1.8;
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links i {
    font-size: 0.8rem;
    color: #666;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    color: #aaa;
    line-height: 1.6;
}

.footer-contact-info i {
    color: white;
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-bottom {
    background: #2a2a2a;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-contact a {
        font-size: 1.8rem;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Project Detail Page */
.detail-hero {
    height: 70vh;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 1;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 43, 46, 0.6);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
}

.detail-container {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--glass);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
}

.btn-prev {
    left: 20px;
}

.btn-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.project-specs {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 2rem;
    height: fit-content;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.spec-item:last-child {
    border: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 968px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 350px;
    }
}

/* Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Improvements */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

header.scrolled .mobile-toggle {
    color: var(--primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(35, 35, 35, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-content {
    width: 80%;
    height: 100%;
    background: var(--primary);
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.close-menu {
    font-size: 1.8rem;
    color: var(--accent);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

/* About Section Parallax */
.about {
    position: relative;
    padding: 12rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(39, 39, 39, 0.8), rgba(23, 23, 23, 0.6));
    z-index: 1;
}

.about-centered-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-centered-content .section-title {
    margin-bottom: 2rem;
}

.about-stats-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .about {
        padding: 6rem 0;
        background-attachment: scroll;
    }

    .about-stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about .contact-wrapper {
        direction: ltr !important;
    }

    .about-content {
        text-align: center;
    }

    .about-image {
        height: 350px !important;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Selected Project Gallery */
.selected-project {
    padding: 8rem 0;
    background: var(--bg-alt);
}

.gallery-wrapper {
    position: relative;
    padding: 0 5rem;
    /* Give space for buttons */
    margin: 3rem 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(10, 33, 35, 0.2);
}

.carousel-nav:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(201, 151, 50, 0.3);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

@media (max-width: 500px) {
    .gallery-wrapper {
        padding: 0 1rem !important;
        margin-bottom: 5rem;
    }

    .carousel-nav {
        top: calc(100% - 5px);
        transform: none;
        width: 45px;
        height: 45px;
    }

    .carousel-nav:hover {
        transform: scale(1.1);
    }

    .carousel-nav.prev {
        left: calc(50% - 55px);
    }

    .carousel-nav.next {
        right: calc(50% - 55px);
    }
}

.gallery-drag-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2rem;
    cursor: grab;
    user-select: none;
}

.gallery-drag-container.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.gallery-drag-container::-webkit-scrollbar {
    display: none;
}

.gallery-item-zoom {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 300px;
    aspect-ratio: 16/9;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-zoom:hover img {
    transform: scale(1.1);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(156, 50, 201, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.gallery-item-zoom:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.intro-video-area {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.video-container-small {
    width: 86%;
    max-width: 100%;
    /* Match the container's width */
    aspect-ratio: 21/9;
    /* Wider, cinema-style aspect ratio for full-width feel */
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .video-container-small {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 500px) {
    .gallery-wrapper {
        padding: 0 1rem;
        margin: 1.5rem 0;
    }

    .gallery-item-zoom {
        flex: 0 0 calc(90% - 1rem);
        min-width: 260px;
        border-radius: 1rem;
    }

    .video-container-small {
        width: 100% !important;
        border-radius: 1rem;
        aspect-ratio: 16/9;
    }

    .intro-video-area {
        margin-top: 7rem;
    }
}

@media (max-width: 400px) {
    .gallery-item-zoom {
        min-width: 240px;
    }
}

.video-container-small video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.project-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-big-btn {
    height: 400px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
}

.btn-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-big-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 43, 46, 0.9), transparent);
    z-index: 1;
}

.btn-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: white;
}

.btn-content h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: white;
}

.project-big-btn:hover .btn-img {
    transform: scale(1.1);
}

.project-big-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Contact Page Grid */
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    height: 100%;
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}

#contact-map {
    height: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    .contact-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .map-container {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .contact-hero-grid {
        display: flex;
        flex-direction: column;
    }

    .map-container {
        order: 2;
        height: 400px !important;
    }

    .contact-sidebar-info {
        order: 1;
    }

    .yol-tarifi {
        width: 91%;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .project-buttons {
        grid-template-columns: 1fr;
    }

    .gallery-item-zoom {
        flex: 0 0 85%;
    }
}

/* Page Hero */
.page-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.page-hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(10, 43, 46, 0.1);
    /* Lighter base line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-progress {
    position: absolute;
    width: 4px;
    background: var(--accent);
    /* Golden progress line */
    top: 0;
    left: 50%;
    margin-left: -2px;
    height: 0;
    z-index: 5;
    box-shadow: 0 0 15px var(--accent);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(10, 43, 46, 0.2);
    border: 4px solid #fff;
    border-radius: 50%;
    top: 30px;
    z-index: 10;
    transition: all 0.4s ease;
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.3);
}

.timeline-item.active .timeline-content {
    border-left: 5px solid var(--accent);
}

.timeline-item:nth-child(even).active .timeline-content {
    border-left: none;
    border-right: 5px solid var(--accent);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.timeline-content {
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Vision & Mission */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vision-card {
    background: var(--bg-alt);
    padding: 4rem;
    border-radius: 2rem;
    text-align: center;
    transition: var(--transition);
}

.vision-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
}

.vision-card:hover h2,
.vision-card:hover p {
    color: white;
}

.vision-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.vision-card h2 {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-progress {
        left: 31px;
        margin-left: -2px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 21px !important;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }
}