@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;

    /* Border Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Theme Variables - Light Mode Default */
    --bg-primary: #F9F9F9;
    --bg-secondary: #FFFFFF;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent: #D32F2F; /* Crimson Red */
    --accent-hover: #B71C1C;
    --border: #E5E5E5;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
    --bg-primary: #0A0A0C;
    --bg-secondary: #121216;
    --bg-overlay: rgba(10, 10, 12, 0.9);
    --text-primary: #F3F3F5;
    --text-secondary: #8E8E93;
    --accent: #FF3B30; /* Electric Red */
    --accent-hover: #FF453A;
    --border: #222227;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(18, 18, 22, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

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

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

section {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* ==========================================================================
   NAVIGATION HEADER (FLOATING MODERN CAPSULE)
   ========================================================================== */
.header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1300px;
    z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

.header--scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .header {
        width: calc(100% - 1.5rem);
        top: 0.75rem;
    }
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .header__nav {
        height: 64px;
        padding: 0 1.25rem;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent);
    margin-left: 2px;
}

/* Nav Menu */
.nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 3rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--text-primary);
}

/* Actions (Theme toggle + Menu toggle) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.theme-toggle {
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-fast);
    border: 1px solid var(--border);
    padding: 0;
}

.theme-toggle:hover {
    background-color: var(--border);
    color: var(--accent);
    transform: scale(1.08);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle .moon-icon {
    display: block;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Burger Toggle Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: 101;
    transition: var(--transition-smooth);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Burger active state */
.menu-toggle--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-secondary);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 3rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 99;
    }

    .nav__menu--active {
        right: 0;
    }

    .nav__link {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn:hover {
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn:hover::before {
    top: 0;
}

.btn--primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.btn--accent {
    border-color: var(--accent);
    color: var(--accent);
}

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

.btn--accent:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

[data-theme="dark"] .hero__slide {
    filter: brightness(0.45);
}

.hero__slide--active {
    opacity: 1;
    z-index: 2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 3;
}

.hero__content {
    position: relative;
    z-index: 4;
    color: #FFFFFF;
    max-width: 850px;
}

.hero__tag {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero__title {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero__title strong {
    font-weight: 600;
}

.hero__desc {
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.8rem;
    }
    .hero__desc {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PHILOSOPHY & TEXT SECTION
   ========================================================================== */
.philosophy {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.section-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-text {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.section-text p {
    margin-bottom: 1.5rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SPECIALTIES SECTION
   ========================================================================== */
.specialties__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

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

.specialty-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.specialty-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: var(--text-secondary);
}

.specialty-card:hover::after {
    width: 100%;
}

.specialty-card__num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--border);
    transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-card__num {
    color: var(--accent);
    transform: translateX(10px);
}

.specialty-card__title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.specialty-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   PORTFOLIO PREVIEW GRID
   ========================================================================== */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

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

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

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

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
    aspect-ratio: 4/5;
    cursor: pointer;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.project-card__img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
    z-index: 1;
}

.project-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.project-card__tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.project-card__title {
    font-size: 1.6rem;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-card__meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

/* Card Hover Interactions */
.project-card:hover .project-card__img {
    transform: scale(1.08);
}

.project-card:hover .project-card__overlay {
    opacity: 0.95;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

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

.project-card:hover .project-card__meta {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PORTFOLIO DYNAMIC FILTER (PROJECTS PAGE)
   ========================================================================== */
.filter-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.filter-item {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: var(--transition-fast);
}

.filter-item:hover,
.filter-item--active {
    color: var(--text-primary);
}

.filter-item::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.filter-item--active::after {
    width: 100%;
}

.project-card--hidden {
    display: none !important;
}

/* ==========================================================================
   ABOUT PAGE & PHILOSOPHY
   ========================================================================== */
.about-hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
}

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

.about-hero__img {
    position: relative;
    border: 1px solid var(--border);
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.about-hero__img img {
    width: 100%;
    filter: grayscale(100%);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.about-hero__img:hover img {
    filter: grayscale(0%);
}

.about-hero__img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    pointer-events: none;
}

.about-info__title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-info__title strong {
    font-weight: 600;
}

.about-info__text {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.about-info__text p {
    margin-bottom: 1.5rem;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

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

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    background-color: transparent;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    right: -6px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent);
    top: 2.2rem;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    background-color: var(--accent);
    transform: scale(1.3);
}

.timeline-item--left {
    left: 0;
    text-align: right;
}

.timeline-item--right {
    left: 50%;
    text-align: left;
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item--right {
        left: 0%;
    }
    
    .timeline-item::after {
        left: 25px !important;
    }
}

.timeline-item__date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT PAGE & CONTACT FORM
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 6rem;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.contact-info__details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-detail__icon {
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact-detail__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-detail__title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-detail__value {
    font-size: 1.1rem;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: #FFFFFF;
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

@media (max-width: 576px) {
    .contact-form {
        padding: 2.5rem 1.5rem;
    }
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Float labels and focus styling */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.form-input:focus {
    border-bottom-color: var(--accent);
}

textarea.form-input {
    min-height: 120px;
    resize: none;
}

.form-message {
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-message--success {
    color: #2E7D32;
}

.form-message--error {
    color: var(--accent);
}

/* ==========================================================================
   MODERN CALL TO ACTION (CTA) SECTION
   ========================================================================== */
.cta-section {
    padding: 4rem 0 6rem 0;
    background-color: var(--bg-primary);
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border) 100%);
    border: 1px solid var(--border);
    padding: 5rem 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

[data-theme="dark"] .cta-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #16161A 100%);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .cta-box::before {
    background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, transparent 70%);
}

.cta-box__title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-box__title strong {
    font-weight: 600;
    color: var(--accent);
}

.cta-box__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 3.5rem 1.5rem;
    }
    .cta-box__title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   FOOTERS (COMPLETE 4-COLUMN + SECONDARY BRANDING FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 5rem 0 3rem 0;
    transition: var(--transition-smooth);
}

.footer__columns {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1.5fr;
    gap: 4rem;
}

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

@media (max-width: 576px) {
    .footer__columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer__col-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer__col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__col-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition-fast);
}

.footer__col-link:hover {
    color: var(--accent);
    transform: translateX(3px);
}

/* Secondary Footer */
.footer-secondary {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    transition: var(--transition-smooth);
}

.footer-secondary__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-secondary__container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-secondary__quantex a {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: var(--transition-fast);
}

.footer-secondary__quantex a:hover {
    color: var(--accent);
    border-bottom-color: transparent;
}

/* ==========================================================================
   PROJECT DETAIL PAGES STYLES
   ========================================================================== */
.project-intro-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.project-intro-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-intro-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) grayscale(10%);
}

.project-intro-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.project-intro-hero__content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
}

.project-meta-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.project-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-meta-item__label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.project-meta-item__value {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.gallery-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 47, 47, 0.25);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

.gallery-card:hover .gallery-card__img {
    transform: scale(1.05);
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-card__icon svg {
    transform: scale(1);
}

/* ==========================================================================
   LIGHTBOX OVERLAY MODAL
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox--active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox--active .lightbox__content {
    transform: scale(1);
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: var(--transition-fast);
}

.lightbox__close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ==========================================================================
   ANIMATIONS UTILITIES (SCROLL REVEAL & FADEIN)
   ========================================================================== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--right {
    transform: translateX(40px);
}

.reveal--active {
    opacity: 1;
    transform: translate(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   TECNOARREDA INSPIRED CUSTOM EFFECTS
   ========================================================================== */

/* 1. Header hide/show on scroll direction transition */
.header--hidden {
    transform: translate(-50%, -150%) !important;
}

/* 2. Navigation Link origin-swap underline slide transition */
.nav__link, .footer__col-link {
    position: relative;
}
.nav__link::after, .footer__col-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.2, 1);
}
.nav__link:hover::after, .footer__col-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* Prevent double underline indicators on the active navigation item */
.nav__link.nav__link--active::after {
    display: none;
}


/* 4. Scroll clip reveal animation utility */
.reveal-clip {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.6s cubic-bezier(0.25, 1, 0.2, 1);
}
.reveal-clip.reveal--active {
    clip-path: inset(0 0 0 0);
}

/* 5. Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
    color: #FFFFFF !important;
}

.whatsapp-float .whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: var(--font-body);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

