/* ============================================
   Alder Services — Complete Responsive Stylesheet
   Logo Colors: Blue #2F618F, Red #C54E45
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Light Mode (default) - using logo colors */
    --color-primary: #2F618F;
    --color-primary-dark: #1E4A6B;
    --color-accent: #C54E45;
    --color-accent-hover: #A83D35;
    --color-dark: #2D2D44;
    --color-dark-light: #3D3D5C;
    --color-grey-900: #212529;
    --color-grey-700: #495057;
    --color-grey-500: #6C757D;
    --color-grey-300: #DEE2E6;
    --color-grey-100: #F8F9FA;
    --color-white: #FFFFFF;

    /* Dark Mode Colors */
    --color-primary-dark-dm: #4A709E;
    --color-dark-dm: #1A1A1A;
    --color-dark-light-dm: #1E1E1E;
    --color-grey-100-dm: #252525;
    --color-grey-900-dm: #E5E7EB;
    --color-grey-700-dm: #B0B3B8;
    --color-grey-500-dm: #8A8F96;
    --color-grey-300-dm: #495057;

    /* Brand accent gradient using primary/accent */
    --color-brand-accent-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --nav-height: 70px;
    --transition: 0.3s ease;
}

/* --- Dark Mode Override --- */
body.dark-mode {
    --color-primary-dark: var(--color-primary-dark-dm);
    --color-dark: var(--color-dark-dm);
    --color-dark-light: var(--color-dark-light-dm);
    --color-grey-900: var(--color-grey-900-dm);
    --color-grey-700: var(--color-grey-700-dm);
    --color-grey-500: var(--color-grey-500-dm);
    --color-grey-300: var(--color-grey-300-dm);
    --color-grey-100: var(--color-grey-100-dm);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); font-size: 16px; }
body { font-family: var(--font-main); line-height: 1.6; color: var(--color-grey-900); background-color: var(--color-white); overflow-x: hidden; transition: background-color var(--transition), color var(--transition); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
address { font-style: normal; }

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.3; }
p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--color-grey-700); }

/* --- Utility --- */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--color-grey-700); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-family: var(--font-main); font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 78, 69, 0.35); }
body.dark-mode .btn-primary { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 4px 15px rgba(47, 97, 143, 0.25); }
body.dark-mode .btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); box-shadow: 0 6px 20px rgba(47, 97, 143, 0.4); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: var(--color-white); color: var(--color-dark); border-color: var(--color-white); transform: translateY(-2px); }
body.dark-mode .btn-outline { background: rgba(47, 97, 143, 0.35); color: var(--color-grey-900-dm); border-color: rgba(47, 97, 143, 0.7); }
body.dark-mode .btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

/* --- Theme Toggle --- */
.theme-toggle { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--color-grey-900); color: var(--color-primary); border: none; box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; z-index: 999; transition: all var(--transition); }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: var(--shadow-xl); }
body.dark-mode .theme-toggle { background: var(--color-white); color: var(--color-primary); }
.theme-toggle::after { content: 'Toggle Dark Mode'; position: absolute; bottom: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(-12px); background: rgba(0, 0, 0, 0.8); color: var(--color-white); padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; white-space: nowrap; opacity: 0; transition: all 0.3s ease; pointer-events: none; }
body.dark-mode .theme-toggle::after { content: 'Toggle Light Mode'; background: var(--color-grey-900); }
.theme-toggle:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Navigation --- */
.page-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1010; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); box-shadow: var(--shadow-sm); transition: background var(--transition), box-shadow var(--transition); }
.page-nav.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-md); }
body.dark-mode .page-nav { background: rgba(34, 34, 34, 0.98); }
body.dark-mode .page-nav.scrolled { background: rgba(26, 26, 26, 0.98); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.nav-container > .nav-logo { display: flex; align-items: center; z-index: 2; }
.nav-container > .nav-toggle { margin-left: auto; z-index: 2; }
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo-img { height: 55px; width: auto; color: var(--color-primary); }
body.dark-mode .nav-logo-img { color: #FFFFFF; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }

/* --- Mobile Nav Dropdown (≤ 900px) --- */
@media screen and (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    body.dark-mode .nav-links {
        background: rgba(26, 26, 26, 0.98);
    }

    .nav-links.open {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-grey-700);
        border-bottom: 1px solid rgba(47, 97, 143, 0.06);
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 0;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(47, 97, 143, 0.08);
        border-radius: 0;
    }

    body.dark-mode .nav-links li a {
        color: var(--color-primary);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .nav-links li a:hover,
    body.dark-mode .nav-links li a.active {
        background: rgba(47, 97, 143, 0.15);
    }
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-dark); border-radius: 2px; transition: all var(--transition); }
body.dark-mode .nav-toggle span { background: #FFFFFF; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nav-links li a { display: block; padding: 8px 16px; font-size: 0.95rem; font-weight: 500; color: var(--color-grey-700); border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-links li a:hover, .nav-links li a.active { color: var(--color-brand-accent-gradient); background: rgba(47, 97, 143, 0.08); }
body.dark-mode .nav-links li a { color: var(--color-primary); }
body.dark-mode .nav-links li a:hover, body.dark-mode .nav-links li a.active { color: var(--color-primary); background: rgba(47, 97, 143, 0.15); }

/* --- Hero Carousel --- */
.page-header { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; margin-top: var(--nav-height); }
.carousel { position: relative; width: 100%; height: 100%; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel-slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26, 26, 46, 0.82) 0%, rgba(30, 74, 107, 0.7) 100%); }
.carousel-content { position: relative; z-index: 2; text-align: center; color: var(--color-white); padding: 40px 24px 100px; max-width: 800px; animation: fadeInUp 0.8s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.carousel-content h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.carousel-subtitle { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300; color: rgba(255, 255, 255, 0.85); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.carousel-tagline { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: rgba(255, 255, 255, 0.7); margin-bottom: 2rem; }
.carousel-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.carousel-btn { position: absolute; top: 50%; margin-top: -25px; transform: translateY(-50%); z-index: 10; background: rgba(255, 255, 255, 0.15); border: none; color: var(--color-white); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; transition: all var(--transition); backdrop-filter: blur(4px); }
.carousel-btn:hover { background: rgba(255, 255, 255, 0.3); }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); background: transparent; cursor: pointer; transition: all var(--transition); padding: 0; }
.carousel-dot.active { background: var(--color-white); border-color: var(--color-white); transform: scale(1.2); }

/* --- Splash Screen --- */
.splash-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-favicon {
    width: clamp(80px, 15vw, 140px);
    height: auto;
    animation: splashPulse 1.5s ease-out forwards;
}
@keyframes splashPulse {
    0% { opacity: 0; transform: scale(0.5); }
    40% { opacity: 1; transform: scale(1.15); }
    70% { opacity: 1; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Hero Logo --- */
.hero-logo {
    width: 100%;
    max-width: 450px;
    min-width: 240px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-logo.visible {
    opacity: 1;
}
/* Keep logo hidden while splash is visible */
#splash:not(.hidden) ~ .carousel .hero-logo {
    opacity: 0 !important;
    animation: none !important;
}

/* --- Nav logo during splash --- */
.nav-logo {
    transition: opacity var(--transition), transform var(--transition);
}
.nav-logo.splash-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- About Section --- */
.about-section { padding: 100px 0; background: var(--color-white); }
body.dark-mode .about-section { background: #1E1E1E; }

.about-content { display: grid; gap: 3rem; }
.about-text p { margin-bottom: 1.5rem; font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.8; }

/* --- Credentials & Services & Work Cards --- */
.credential-cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }

/* Shared card base */
.credential-card,
.service-card,
.work-card {
    padding: 2rem 1.75rem;
    border: 1px solid rgba(47, 97, 143, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    background: transparent;
}

body.dark-mode .credential-card,
body.dark-mode .service-card,
body.dark-mode .work-card {
    background: rgba(60, 60, 60, 0.5);
    border-color: rgba(47, 97, 143, 0.3);
}

.credential-card:hover,
.service-card:hover,
.work-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 30px rgba(47, 97, 143, 0.2), 0 0 20px rgba(47, 97, 143, 0.15);
}

/* Scroll-triggered glow (touch/mobile only) */
@media screen and (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .credential-card.glow-active,
    .service-card.glow-active,
    .work-card.glow-active {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 8px 30px rgba(47, 97, 143, 0.35), 0 0 24px rgba(47, 97, 143, 0.2);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
}

/* Credential card specifics */
.credential-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border-radius: var(--radius-lg);
}

.credential-card i {
    font-size: 2.25rem;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-white);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(197, 78, 69, 0.25);
}

.credential-card h3 { font-size: 1.05rem; }
body.dark-mode .credential-card h3 { color: var(--color-grey-900-dm); }
.credential-card p { font-size: 0.95rem; line-height: 1.6; margin: 0; color: var(--color-grey-700); font-weight: 400; }
body.dark-mode .credential-card p { color: var(--color-grey-700-dm); }

/* Service card specifics */
.service-card { padding: 2.5rem 2rem; text-align: center; }
.service-icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service-icon i { font-size: 1.5rem; color: var(--color-white); }
body.dark-mode .service-icon { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }
.service-card h3 { color: var(--color-grey-900); }
body.dark-mode .service-card h3 { color: var(--color-grey-900-dm); }
.service-card p { font-size: 0.95rem; line-height: 1.65; margin: 0; color: var(--color-grey-700); }
body.dark-mode .service-card p { color: var(--color-grey-700-dm); }

/* Work card specifics */
.work-card img { width: 100%; height: 280px; object-fit: cover; }
.work-card figcaption { padding: 1.5rem; color: var(--color-grey-900); }
body.dark-mode .work-card figcaption { color: var(--color-grey-900-dm); }
.work-card h3 { color: var(--color-grey-900); }
body.dark-mode .work-card h3 { color: var(--color-grey-900-dm); }
.work-card p { font-size: 0.95rem; margin: 0; color: var(--color-grey-700); }
body.dark-mode .work-card p { color: var(--color-grey-700-dm); }

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .credential-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 600px) {
    .credential-cards-grid { grid-template-columns: 1fr; }
}

/* --- Services Section --- */
.services-section { padding: 100px 0; background: var(--color-grey-100); }
body.dark-mode .services-section { background: #1E1E1E; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* --- Work Section --- */
.work-section { padding: 100px 0; background: var(--color-white); }
body.dark-mode .work-section { background: #1E1E1E; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 3rem; }
.certificates-section { text-align: center; margin-top: 2rem; }
.certificates-section h3 { color: var(--color-dark); margin-bottom: 1.5rem; }
body.dark-mode .certificates-section h3 { color: var(--color-grey-900-dm); }
.certificates-section img { max-width: 600px; margin: 0 auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

/* --- Certifications Section --- */
.certifications-section {
    padding: 100px 0;
    background: var(--color-grey-100);
    text-align: center;
}
body.dark-mode .certifications-section {
    background: #1E1E1E;
}
.certificates-showcase {
    max-width: 800px;
    margin: 0 auto;
}
.certificates-showcase img {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* --- Projects Section --- */
.projects-section {
    padding: 100px 0;
    background: #1A1A1A;
    color: var(--color-white);
    text-align: center;
}
body.dark-mode .projects-section { background: #1A1A1A; }
.projects-center { display: flex; justify-content: center; margin-bottom: 2rem; }
.projects-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-brand-accent-gradient);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.projects-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(47, 97, 143, 0.4); }
.projects-cta i:first-child { font-size: 1.4rem; }
.projects-cta i:last-child { font-size: 0.9rem; transition: transform var(--transition); }
.projects-cta:hover i:last-child { transform: translateX(4px); }
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 auto; justify-items: center; }
.instagram-grid .instagram-media { margin: 0 auto !important; width: 100% !important; max-width: 540px !important; }
@media screen and (max-width: 768px) {
    .instagram-grid { grid-template-columns: 1fr; max-width: 540px; }
}

/* --- Contact Section --- */
.contact-section { padding: 100px 0; background: var(--color-grey-100); }
body.dark-mode .contact-section { background: #1E1E1E; }
.contact-content { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: stretch; margin-top: 3rem; }
.contact-info { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.contact-info p { margin-bottom: 1rem; line-height: 1.7; }
.contact-details { display: grid; gap: 1.25rem; margin: 2rem 0; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(47, 97, 143, 0.1);
    background: transparent;
}
body.dark-mode .contact-item {
    background: rgba(60, 60, 60, 0.5);
    border-color: rgba(47, 97, 143, 0.3);
}
.contact-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(47, 97, 143, 0.2), 0 0 20px rgba(47, 97, 143, 0.15);
}
.contact-item i { font-size: 1.3rem; color: var(--color-primary); flex-shrink: 0; }
body.dark-mode .contact-item i { color: var(--color-primary); }
.contact-item strong { display: block; color: var(--color-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
body.dark-mode .contact-item strong { color: var(--color-grey-900-dm); }
.contact-item span { color: var(--color-grey-700); font-size: 1rem; }
body.dark-mode .contact-item span,
body.dark-mode .contact-address { color: var(--color-grey-700-dm); }

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 97, 143, 0.1);
    box-shadow: var(--shadow-sm);
    background: transparent;
    font-size: 1rem;
    line-height: 1.8;
    transition: all var(--transition);
}
body.dark-mode .contact-address {
    background: rgba(60, 60, 60, 0.5);
    border: 1px solid rgba(47, 97, 143, 0.3);
}
.contact-address i {
    font-size: 1.3rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-map { position: relative; height: 100%; min-height: 500px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
#contact-map { width: 100%; height: 100%; min-height: 500px; }

/* --- Contact Form --- */
.contact-form-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
}
.contact-form-card {
    width: 100%;
    max-width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition), box-shadow var(--transition);
}
body.dark-mode .contact-form-card {
    background: var(--color-dark-light-dm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.contact-form-hint {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-grey-700);
    margin: 1.5rem auto 0;
    max-width: 500px;
}
.contact-form-hint a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-form-hint a:hover {
    color: var(--color-accent);
}
body.dark-mode .contact-form-hint {
    color: var(--color-grey-700-dm);
}
.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--color-dark);
    text-align: center;
}
body.dark-mode .contact-form-card h3 {
    color: var(--color-grey-900-dm);
}
.contact-form-success {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    background: #d4edda;
    color: #155724;
    font-weight: 500;
    text-align: center;
    display: none;
}
.contact-form-success:empty {
    display: none;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}
body.dark-mode .form-group label {
    color: var(--color-grey-900-dm);
}
.form-group .required {
    color: var(--color-accent);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border: 1.5px solid var(--color-grey-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-grey-900);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--color-dark-light-dm);
    border-color: var(--color-grey-300-dm);
    color: var(--color-grey-900-dm);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 97, 143, 0.15);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C757D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-top: 0.25rem;
    min-height: 1em;
}
.message-helper {
    font-size: 0.825rem;
    color: var(--color-grey-500);
    margin-top: 0.25rem;
    line-height: 1.5;
}
body.dark-mode .message-helper {
    color: var(--color-grey-500-dm);
}
.char-counter {
    font-size: 0.75rem;
    color: var(--color-grey-500);
    text-align: right;
    margin-top: 0.2rem;
    margin-bottom: 0.25rem;
}
body.dark-mode .char-counter {
    color: var(--color-grey-500-dm);
}
.char-counter.warning {
    color: #e6a800;
}
.char-counter.danger {
    color: var(--color-accent);
    font-weight: 600;
}
@keyframes charPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}


@media screen and (max-width: 768px) {
    .message-helper {
        font-size: 0.8rem;
    }
    .char-counter {
        font-size: 0.7rem;
    }
    .char-counter.danger {
        animation: none;
    }
}
.hp-field {
    display: none;
}
.form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
}
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
@media screen and (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* --- Footer --- */
.page-footer { background: #1A1A1A; color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 180px; width: auto; }
body.dark-mode .footer-logo img { color: #FFFFFF; }
.footer-logo-img {
    filter: none !important;
}
.socials { display: flex; gap: 8px; }
.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--color-grey-700);
    transition: all var(--transition);
    background: none;
}
body.dark-mode .socials a { color: var(--color-primary); }
.socials a:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(47, 97, 143, 0.3); }
body.dark-mode .socials a:hover { background: var(--color-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding-top: 2rem; text-align: center; }
.footer-separator { color: rgba(255, 255, 255, 0.35); }
.footer-text { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* --- RESPONSIVE TABLET PORTRAIT (≤ 850px) --- */
@media screen and (max-width: 850px) {
    .instagram-grid { grid-template-columns: 1fr !important; max-width: 540px !important; }
    .projects-section { padding: 60px 0 !important; }
    .contact-section { padding: 60px 0 !important; }
    .contact-map { min-height: 350px !important; }
    #contact-map { min-height: 350px !important; }
}

/* --- RESPONSIVE TABLET (≤ 1042px) --- */
@media screen and (max-width: 1042px) {
    .instagram-grid { grid-template-columns: 1fr !important; max-width: 540px !important; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid .work-card:last-child { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; width: 100%; }
    .work-grid .work-card img { height: 240px; }
    .contact-content { grid-template-columns: 1fr; }
}

/* --- RESPONSIVE MOBILE (≤ 768px) --- */
@media screen and (max-width: 768px) {
    :root { --nav-height: 60px; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); flex-direction: column; padding: 1rem 0; box-shadow: var(--shadow-lg); transform: translateY(-120%); opacity: 0; transition: all var(--transition); pointer-events: none; }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-links li a { padding: 14px 24px; font-size: 1rem; width: 100%; text-align: center; }
    body.dark-mode .nav-links { background: rgba(34, 34, 34, 0.98); }
    .page-header { min-height: 100vh; height: calc(100vh - var(--nav-height)); }
    .hero-logo { max-width: 200px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }
    .carousel-actions { flex-direction: column; align-items: center; gap: 12px; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
    .about-section, .services-section, .work-section, .certifications-section, .projects-section, .contact-section { padding: 70px 0; }
    .about-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 2rem 1.5rem; }
    .work-grid { grid-template-columns: 1fr; gap: 20px; }
    .work-grid .work-card:last-child { max-width: 100%; }
    .work-card img { height: 220px; }
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { order: -1; }
    .contact-map { min-height: 400px; }
    #contact-map { min-height: 400px; }
    .contact-form-card { padding: 2rem 1.5rem; }
    .message-helper { font-size: 0.8rem; }
    .char-counter { font-size: 0.7rem; }
    .char-counter.danger { animation: none; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* --- RESPONSIVE SMALL MOBILE (≤ 480px) --- */
@media screen and (max-width: 480px) {
    html { font-size: 14px; }
    .page-header { height: calc(100vh - var(--nav-height)); min-height: 100vh; }
    .carousel-content { padding: 20px 16px 80px; }
    .carousel-content h1 { font-size: 2rem; }
    .carousel-subtitle { font-size: 0.95rem; }
    .carousel-tagline { font-size: 0.85rem; margin-bottom: 1.5rem; }
    .carousel-dots { bottom: 20px; }
    .section-header { margin-bottom: 2rem; }
    .section-divider { width: 40px; }
    .projects-cta { padding: 14px 28px; font-size: 1rem; }
}

/* --- ANIMATIONS --- */
@media (prefers-reduced-motion: no-preference) {
    .work-card, .service-card, .credential-card, .contact-item { opacity: 0; transform: translateY(20px); animation: reveal 0.6s ease forwards; }
    .work-card:nth-child(1), .service-card:nth-child(1), .credential-card:nth-child(1) { animation-delay: 0.1s; }
    .work-card:nth-child(2), .service-card:nth-child(2), .credential-card:nth-child(2) { animation-delay: 0.2s; }
    .work-card:nth-child(3), .service-card:nth-child(3), .credential-card:nth-child(3) { animation-delay: 0.3s; }
    @keyframes reveal { to { opacity: 1; transform: translateY(0); } }
}

/* --- Footer Cookie Note --- */
.footer-cookie-note {
    padding-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}
.footer-cookie-note p {
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0;
}

/* --- Cookie Settings Link --- */
.cookie-settings-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
    cursor: pointer;
}
.cookie-settings-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--color-white);
    color: var(--color-grey-900);
    border-top: 2px solid var(--color-grey-300);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    animation: slideUpBanner 0.4s ease forwards;
}
@keyframes slideUpBanner {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 24px;
}
.cookie-banner-text {
    position: relative;
}
.cookie-banner-close {
    position: absolute;
    top: 1.5rem;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-grey-500);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 1;
}
.cookie-banner-close:hover {
    color: var(--color-grey-900);
}
.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-grey-900);
}
.cookie-banner-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-grey-700);
    margin-bottom: 1.25rem;
}
.cookie-banner-description strong {
    color: var(--color-grey-900);
}
.cookie-banner-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-grey-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.9rem;
}
.cookie-option:hover {
    background: var(--color-grey-300);
}
.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.cookie-option-label {
    color: var(--color-grey-900);
    cursor: pointer;
}
.cookie-option-label strong {
    color: var(--color-grey-900);
}
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cookie-banner-actions .btn {
    font-size: 0.95rem;
    padding: 10px 24px;
}
.cookie-banner-actions .btn-outline {
    border-color: var(--color-grey-300);
    color: var(--color-grey-700);
}
.cookie-banner-actions .btn-outline:hover {
    background: var(--color-grey-100);
    border-color: var(--color-grey-500);
    color: var(--color-grey-900);
}

/* Dark mode banner */
body.dark-mode .cookie-banner {
    background: var(--color-dark-light);
    color: var(--color-grey-900-dm);
    border-top-color: var(--color-grey-300-dm);
}
body.dark-mode .cookie-banner-title {
    color: var(--color-grey-900-dm);
}
body.dark-mode .cookie-banner-description {
    color: var(--color-grey-700-dm);
}
body.dark-mode .cookie-banner-description strong {
    color: var(--color-grey-900-dm);
}
body.dark-mode .cookie-option {
    background: rgba(255, 255, 255, 0.06);
}
body.dark-mode .cookie-option:hover {
    background: rgba(255, 255, 255, 0.12);
}
body.dark-mode .cookie-option-label {
    color: var(--color-grey-900-dm);
}
body.dark-mode .cookie-option-label strong {
    color: var(--color-grey-900-dm);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal {
    background: var(--color-white);
    border-radius: var(--radius-md);
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.25s ease forwards;
}
body.dark-mode .cookie-modal {
    background: var(--color-dark-light);
    color: var(--color-grey-900-dm);
}
@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-grey-300);
}
.cookie-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-grey-900);
    margin: 0;
}
body.dark-mode .cookie-modal-title {
    color: var(--color-grey-900-dm);
}
.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--color-grey-500);
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.cookie-modal-close:hover {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.05);
}
body.dark-mode .cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}
.cookie-modal-body {
    padding: 1.5rem;
}
.cookie-modal-description {
    font-size: 0.95rem;
    color: var(--color-grey-700);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.cookie-modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cookie-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}
.cookie-modal-footer .btn {
    font-size: 0.95rem;
    padding: 10px 28px;
}

/* ============================================
   Embed Placeholders
   ============================================ */
.embed-placeholder {
    background: var(--color-grey-100);
    border: 2px dashed var(--color-grey-300);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
body.dark-mode .embed-placeholder {
    background: var(--color-grey-100-dm);
    border-color: var(--color-grey-300-dm);
}
.embed-placeholder--map {
    min-height: 350px;
    padding: 2rem 1.5rem;
}
.embed-placeholder--form {
    min-height: 220px;
    padding: 2rem 1.5rem;
}
.embed-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.embed-placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}
.embed-placeholder-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}
.embed-placeholder-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-grey-900);
    margin: 0;
}
body.dark-mode .embed-placeholder-title {
    color: var(--color-grey-900-dm);
}
.embed-placeholder-desc {
    font-size: 0.9rem;
    color: var(--color-grey-500);
    max-width: 420px;
    line-height: 1.5;
    margin: 0;
}
body.dark-mode .embed-placeholder-desc {
    color: var(--color-grey-500-dm);
}
.embed-placeholder-btn {
    font-size: 0.95rem;
    padding: 10px 24px;
}
.embed-placeholder-fallback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 0.5rem;
    transition: color var(--transition);
}
.embed-placeholder-fallback:hover {
    color: var(--color-accent);
}
/* Plain text version — no underline, no pointer cursor */
.embed-placeholder-fallback--text {
    text-decoration: none;
    color: var(--color-grey-500);
    cursor: default;
}
body.dark-mode .embed-placeholder-fallback--text {
    color: var(--color-grey-500-dm);
}

/* --- Contact form decline fallback --- */
.contact-form-decline-fallback {
    border-top: 1px solid var(--color-grey-300);
    margin-top: 1.5rem;
}
body.dark-mode .contact-form-decline-fallback {
    border-color: var(--color-grey-300-dm);
}
.contact-form-decline-fallback h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-form-decline-fallback p {
    margin-bottom: 0.75rem;
}

/* --- Responsive: Cookie banner --- */
@media screen and (max-width: 768px) {
    .cookie-banner-inner {
        padding: 1rem 16px;
    }
    .cookie-banner-title {
        font-size: 1.1rem;
    }
    .cookie-banner-description {
        font-size: 0.9rem;
    }
    .cookie-banner-options {
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }
    .cookie-banner-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .cookie-banner-actions .btn {
        flex: 1;
        justify-content: center;
    }
    .cookie-modal {
        margin: 16px;
    }
    .embed-placeholder {
        padding: 2rem 1rem;
        min-height: 180px;
    }
    .embed-placeholder--map {
        min-height: 280px;
    }
}

