/**
 * EDCCJO - Modern Construction Company Website
 * Main Stylesheet
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    /* Colors */
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a8a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-width: 1200px;
    --container-padding: 1.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Header height */
    --header-height: 5rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

p {
    text-align: justify;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section--gray {
    background-color: var(--gray-50);
}

.section--dark {
    background-color: var(--dark);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section__title {
    margin-bottom: 1rem;
}

.section__desc {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-200);
}

.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn--large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav__link {
    color: var(--gray-700);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--primary);
}

.header.scrolled .nav__logo .logo-text {
    color: var(--primary);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    z-index: 100;
}

.nav__logo-img {
    height: 32px;
    width: auto;
    transition: filter var(--transition-base);
}

.header.scrolled .nav__logo-img {
    filter: none;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: color var(--transition-base);
}

.footer__logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
    transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.nav__dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.75rem 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.nav__dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown__link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.dropdown__link:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Nav Actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__cta {
    display: none;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    color: var(--white);
}

.header.scrolled .nav__toggle {
    color: var(--dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 58, 95, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: -1;
}

.hero__content {
    max-width: 800px;
}

.hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero__subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero__title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.1;
}

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

.hero__desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: left;
}

.stat__number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   About Section
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about__image-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--accent);
    color: var(--dark);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about__image-badge strong {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-primary);
    line-height: 1;
}

.about__image-badge span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about__content {
    padding-left: 2rem;
}

.about__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.about__title {
    margin-bottom: 1.5rem;
}

.about__desc {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.feature__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature__text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   Services Section
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

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

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

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
}

.service-card__link svg {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link svg {
    transform: translateX(4px);
}

/* ============================================
   Projects Section
   ============================================ */
.projects__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

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

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.project-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-card__title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-card__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
}

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

.stats__item {
    text-align: center;
    padding: 2rem;
}

.stats__number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stats__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials__slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    text-align: center;
    padding: 2rem;
}

.testimonial__quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial__quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__info {
    text-align: left;
}

.testimonial__name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial__role {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.5;
}

.cta__content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact__info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact__info-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact__info-text {
    color: var(--gray-500);
}

.contact__info-text a {
    color: var(--primary);
}

.contact__info-text a:hover {
    color: var(--accent);
}

.contact__form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer__top {
    padding: 5rem 0 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
}

.footer__logo .logo-text {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.social__link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.social__link:hover {
    background: var(--accent);
    color: var(--dark);
}

.footer__title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer__contact svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.125rem;
}

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

.footer__bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__bottom p {
    font-size: 0.875rem;
}

.footer__bottom-links {
    display: flex;
    gap: 2rem;
}

.footer__bottom-links a {
    font-size: 0.875rem;
}

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

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__content {
        padding-left: 0;
    }

    .about__image-badge {
        right: 1rem;
        bottom: -1.5rem;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav__cta {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right var(--transition-base);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav__link {
        color: var(--gray-700);
        padding: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav__dropdown .dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav__dropdown.active .dropdown__menu {
        max-height: 500px;
    }

    .nav__toggle,
    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: var(--dark);
    }

    .nav__cta {
        display: none;
    }

    /* Hero */
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat__number {
        font-size: 2rem;
    }

    /* Projects */
    .projects__grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

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

    .contact__form {
        padding: 1.5rem;
    }
}

/* ============================================
   Animation Helpers
   ============================================ */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Smooth loading */
.page-loaded .hero__content,
.page-loaded .hero__stats {
    animation: fadeInUp 0.8s ease forwards;
}

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