:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --secondary-color: #f5f5f5;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Missing theme variables used across subpages */
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --primary-color: #3b82f6;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    height: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.header-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-color);
    position: relative;
    z-index: 1001;
}



.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    padding: 15px 0;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    opacity: 1;
}

.nav-link.active::after {
    width: 100%;
}

.arrow {
    font-size: 8px;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--bg-color);
    min-width: 260px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown li {
    margin-bottom: 15px;
}

.dropdown li:last-child {
    margin-bottom: 0;
}

.dropdown a {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-transform: none;
    letter-spacing: 0;
    transition: var(--transition);
    display: block;
}

.dropdown a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.dropdown a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
}

.btn-contact {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* For vertical stacking */
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    font-style: italic;
    max-width: 500px;
    margin: 0 0 30px auto;
    /* Pushes to the right */
    text-align: center;
    /* Center align the text lines for better balance */
    line-height: 1.3;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 20px 45px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Services Section */
.services {
    padding: 160px 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 180px;
}

.service-info {
    flex: 1;
}

.service-info h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 30px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.service-info p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 500px;
}

.learn-more {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    transition: var(--transition);
}

.learn-more:hover {
    padding-right: 10px;
}

.service-image {
    flex: 1.2;
    overflow: hidden;
    border-radius: 12px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-block:hover .service-image img {
    transform: scale(1.05);
}

/* Grid Sections */
.grid-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 150px;
}

.grid-item {
    background: #fcfcfc;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.grid-item:hover {
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
    transform: translateY(-10px);
}

.grid-item h3 {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Work Detailed Section */
.work-detailed {
    padding: 100px 0;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-gallery {
    margin-bottom: 100px;
    text-align: center;
}

.featured-gallery h2 {
    font-size: 42px;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.gallery-slider {
    height: 600px;
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.project-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-preview-slider {
    height: 400px;
    position: relative;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

.project-details {
    padding: 40px;
    border: 1px solid #f0f0f0;
    border-top: none;
}

.project-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.grid-item p {
    color: #777;
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 120px 0 60px;
    margin-top: 150px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
    gap: 100px;
}

.footer-logo {
    flex: 1.5;
    /* Increased to give more space for long titles */
}

.footer-logo .logo {
    color: #fff;
    font-size: 42px;
    margin-bottom: 30px;
    display: block;
}

.footer-logo p {
    margin-top: 25px;
    color: #666;
    font-size: 16px;
    /* Slightly reduced for better fit */
    max-width: none;
    /* Removed the narrow restriction */
    line-height: 1.6;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 120px;
}

.footer-links h4 {
    margin-bottom: 35px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
}

.footer-links ul li {
    margin-bottom: 18px;
}

.footer-links ul li a {
    color: #888;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #fff;
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 13px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 40px;
}

.social-links a {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links a:hover {
    color: #fff;
}

/* Mobile Nav Overlay */
.main-nav {
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .header {
        height: 80px;
        background-color: var(--bg-color) !important;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        padding: 40px;
        display: block;
        transform: translateX(100%);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        font-size: 24px;
        font-weight: 700;
        text-transform: none;
        opacity: 1;
        display: block;
        padding: 10px 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 20px 0 20px 20px;
        display: none;
    }

    .dropdown.show {
        display: block;
    }

    .arrow.rotate {
        transform: rotate(180deg);
    }

    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .service-block {
        flex-direction: column !important;
        gap: 40px;
        text-align: left;
    }

    .service-info h2 {
        font-size: 36px;
    }

    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 40px;
    }

    .grid-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Social Buttons on Contact Page */
.btn-social {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.btn-social:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Global Toast Notifications */
#global-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.global-toast {
    background-color: var(--primary-color, #4a90e2);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
    pointer-events: auto;
    max-width: 350px;
    word-wrap: break-word;
}

/* Transparent Header on Dark Backgrounds */
.header.header-transparent .logo {
    color: #ffffff;
}
.header.header-transparent .nav-link {
    color: #ffffff;
    opacity: 0.8;
}
.header.header-transparent .nav-link:hover {
    opacity: 1;
}
.header.header-transparent .nav-link::after {
    background-color: #ffffff;
}
.header.header-transparent .arrow {
    color: #ffffff;
}
.header.header-transparent .mobile-toggle span {
    background-color: #ffffff;
}

/* When scrolled, transition back to white background and dark text */
.header.header-transparent.scrolled .logo {
    color: var(--text-color);
}
.header.header-transparent.scrolled .nav-link {
    color: var(--text-color);
}
.header.header-transparent.scrolled .nav-link::after {
    background-color: var(--accent-color);
}
.header.header-transparent.scrolled .arrow {
    color: var(--text-color);
}
.header.header-transparent.scrolled .mobile-toggle span {
    background-color: var(--accent-color);
}