/* ===================================
   ENHANCED SLEEK DESIGN
   Modern, refined aesthetic with smooth animations
   =================================== */

/* Base & Typography */
:root {
    --primary: #0f172a;
    --accent: #059669;
    --accent-light: #10b981;
    --accent-dark: #047857;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-hover: #059669;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-jade: 0 8px 30px rgba(5, 150, 105, 0.2);
    --shadow-gold:
    0 8px 30px rgba(212, 175, 55, 0.4),
    0 0 25px rgba(255, 215, 0, 0.3),
    0 0 60px rgba(184, 134, 11, 0.2);
    --radius: 12px;
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-two p, .about-two h3 {
    color: #fbf8d0 !important;
    filter: drop-shadow(2px 2px 1px black);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 800px;
}

/* ===================================
   HEADER - Glassmorphism Effect
   =================================== */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    background: rgb(255 250 227);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.site-header:hover {
    box-shadow: 0 4px 30px rgba(5, 150, 105, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    transition: all 0.3s ease;
}

.logo a:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.site-logo {
    height: 75px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}



.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
}

html, body {
    overflow-x: hidden;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: -1;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Remove underline from CTA button */
.main-nav .cta::after {
    display: none;
}

.main-nav .cta {
    padding: 10px 24px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    background: var(--bg-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    display: inline-block;
    contain: paint;
    color: var(--accent);
}

.main-nav .cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.main-nav .cta:hover::before {
    left: 0;
}

.main-nav .cta:hover {
    color: var(--bg-white);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-jade);
}

/* Ensure Contact text remains visible */
.main-nav .cta {
    color: var(--accent);
}

/* ===================================
   HERO - Gradient Background
   =================================== */

   .hero {
    padding: 180px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

main {
    background: url(/assets/images/galaxy-background.webp);
}

/* ── Hero base ── */
.home-hero {
    position: relative;
    overflow: hidden;
    /* No background here — it lives on ::before so it can rotate */
}

/* ── Rotating galaxy background ── */
.home-hero::before {
    content: '';
    position: absolute;
    inset: -60%;
    width: 220%!important;
    height: 220%!important;
    background: url(/assets/images/galaxy-background.webp);
    background-size: contain;
    background-position: center;
    animation: rotateBg 240s linear infinite!important;
    z-index: 0!important;
}

/* ── Floating orb — top right ── */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 2; /* above the rotating bg */
}

/* ── Floating orb — bottom left ── */
.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 2; /* above the rotating bg */
}

/* ── Push hero children above everything ── */
.home-hero > * {
    position: relative;
    z-index: 3;
}

/* ── Animations ── */
@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, -30px) scale(1.1); }
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2.5px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 58px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    line-height: 1.15;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    filter: drop-shadow(6px 6px 12px black);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* sydney local seo page with background image */
.sydney {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/sydney-local-seo-bg.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tokyo {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/tokyo.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/Global--SEO.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.web-design {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/portfolio-flipped.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.seo-web-optimization {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/growth-chart.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.seo-consulting {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/typing-laptop.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.seo-audit {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url(/assets/images/seo-audit.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Services section with background image */
.section.services {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/assets/images/growth-chart-dark-2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section.light {
    background: url('/assets/images/sydney-tokyo-local-seo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section.portfolio {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 1.2) 40%, rgba(248, 250, 252, 1.2) 50%, rgba(248, 250, 252, 1.2) 60%, rgba(240, 253, 244, 0.1) 100%), url('/assets/images/portfolio_scrapbook_collage.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section.about-split {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),  url('/assets/images/global-seo-muted-jade-2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



/* ===================================
   BUTTONS - Modern Gradient Effects
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-white);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-jade);
    border: none;
    display: inline-block;
    z-index: 0;
    isolation: isolate;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold)!important;
    border-color: var(--gold);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    background: var(--gold)!important;
    border-color: var(--gold);
    color: #333;
    transform: translateY(-3px);
    box-shadow: var(--shadow-jade);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    border: 2px solid var(--accent);
    padding: 14px 34px;
    text-decoration: none;
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    background: var(--bg-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold)!important;
    border-color: var(--gold);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    background: var(--gold)!important;
    border-color: var(--gold);
    color: #333;
    transform: translateY(-3px);
    box-shadow: var(--shadow-jade);
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
}



h2 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 70px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 19px;
    line-height: 1.7;
    filter: drop-shadow(6px 6px 12px black);
}

/* ===================================
   GRID & CARDS - Enhanced with depth
   =================================== */

.threegrid {
        display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 70px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 70px;
}

.card {
    padding: 44px;
    border: 1px solid var(--border);
    background: #e3d4be;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.twocard {
    padding: 44px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.03) 0%, rgba(16, 185, 129, 0.05) 100%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    left: 0;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    background: green;}

.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: all 0.3s ease;
}

.card:hover .card-link {
    transform: translateX(5px);
}

/* ===================================
   TEXT LINK
   =================================== */

.text-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.text-link::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.text-link:hover::after {
    margin-left: 12px;
}

.text-link:hover {
    color: var(--accent-light);
}

/* ===================================
   FOOTER - Clean & Modern
   =================================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    background: var(--bg-light);
    font-size: 15px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.site-footer a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.site-footer p {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px) {
    
    
    /* ── Rotating galaxy background ── */
.home-hero::before {
    inset: -90%;
    top: -160%;
    width: 450%!important;
    height: 450%!important;
}

.hero-inner {
    margin-top: -15vh;
}

    .hero h1 {
        font-size: 42px;
    }
    
    .hero-sub {
        font-size: 18px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        position: absolute;
        display: flex;
        top: 35%;
        right: 1%;
    }

    /* Backdrop: hidden by default, shown via .active class only */
    .mobile-menu-backdrop {
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-backdrop.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Nav: hidden off-screen AND via visibility so it can't be swiped to */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        z-index: 100;
        padding-top: 80px;
        overflow-y: auto;
        /* Hidden state: invisible, off-screen, and non-interactive */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(110%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .main-nav.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .main-nav .cta {
        margin-top: 16px;
        text-align: center;
        display: block;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 32px;
    }
    

    
    .hero {
        padding: 120px 0 100px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .site-logo {
        height: 45px;
    }

    /* ===================================
       🔥 NEW: MOBILE BACKGROUND FIXES
       (Desktop untouched)
       =================================== */

    .hero,
    .section.services,
    .section.light {
        background-attachment: scroll;   /* Disable parallax safely */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    /* Optional: fine-tune focal points */
    .section.services {
        background-position: center 40%;
    }

    .section.light {
        background-position: center 35%;
    }

    /* Ensure consistent visual height on phones */
    .hero {
        min-height: 80vh;
    }

    .section.services,
    .section.light {
        min-height: 70vh;
    }

}

/* ===================================
   UTILITY CLASSES
   =================================== */

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-enquire {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 110px;
    height: 110px;
    z-index: 9999;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-enquire img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-enquire:hover {
    transform: scale(1.08);
}

/* Mobile resize */
@media (max-width: 1400px) {
    .floating-enquire {
        width: 60px;
        height: 60px;
        bottom: 2%!important;
        right: 2%!important;
    }
}


@media (max-width: 900px) {

.dark-mode .main-nav a {
    color: #fff!important;
}

    .hero,
    .section.services,
    .section.light,
    .section.portfolio {
        background-attachment: scroll!important;  /* disable parallax */
        background-size: contain!important; /* show full image */
        background-position: center top!important;
        background-repeat: no-repeat!important;
        min-height: auto!important;
    }


        .hero {
                padding-top: 60vw;              /* preserves image ratio visually */
    }

.section-heading-box {
    display:inline-block;
    position: relative;

    left:50%;
    top:50%;
    transform: translate(-50%, -50%) rotate(-3deg);

    background:white;
    padding:12px 20px;

    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    border-radius:6px;
    margin-top: 5vh;
    margin-bottom: 6vh;
}

.section-heading-box h2{
    margin:0;
    font-size:26px;
    transform:rotate(3deg); /* straightens the text */
    left:auto;
}

    .hero h2,
    .section.services h2,
    .section.light h2,
    .section.portfolio h2,
    .section-heading-box h2 {
        transform:none;
}

.case-card, .card {
    border: 3px solid var(--border)!important;
    padding: 3px!important;
    min-width: 40vw!important;
}

.twocard {
    border: 3px solid var(--border)!important;
    padding: 3px!important;
    min-width: 85vw!important;
}

.card-link {
    position: relative;
    bottom: 0;
}

.card h4 {
    text-align: center;
}
}
/* ===================================
   PORTFOLIO SECTION
   =================================== */

.portfolio-group {
    margin-top: 60px;
}

.portfolio-group h3 {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 30px;
}

/* Subtle divider above client sites */
.client-sites {
    border-top: 1px solid var(--border);
    padding-top: 60px;
}


/* ===================================
   ICON GRID
   =================================== */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 30px;
    align-items: center;
}

.icon-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.icon-card img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
}

/* Hover lift */
.icon-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===================================
   CASE CARD STYLE
   =================================== */

.case-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.35s ease;
    text-align: center;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Logo */

.case-card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 18px;
    transition: filter 0.3s ease;
}


/* Title */

.case-card h4 {
    font-size: 18px;
    margin-bottom: 18px;
}

.case-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-card h4 a:hover {
    color: var(--accent);
}

/* Highlights */

.case-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    padding-bottom: 10vh;
}

.case-highlights li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Custom bullet */

.case-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Inner links */

.case-highlights a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.case-highlights a:hover {
    text-decoration: underline;
}

/* ================================
   ABOUT SPLIT SECTION
   ================================ */

.about-split {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-block h2 {
    margin-bottom: 12px;
}

.about-block .section-intro {
    margin-bottom: 20px;
}

.about-block p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-block:first-child {
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

@media (max-width: 590px) {
    .grid, .threegrid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-block:first-child {
        padding-right: 0;
        border-right: none;
    }
    .center-mobile {
    margin: 0 auto!important;
    display: block!important;
    text-align: center!important;
}
}

.center {
    margin: 0 auto!important;
    display: block!important;
    text-align: center!important;
}

.mid-image {
    max-width: 80vw!important;
    width: 300px;
    height: auto;
}

.small-image {
    width: 150px;
    height: auto;
}

.currency-toggle {
    position: absolute;
    margin-bottom: 30px;
    right: 1%;
    top: 70%;
}

.currency-toggle button {
    border: 1px solid #ddd;
    background: white;
    padding: 3px 6px;
    cursor: pointer;
    font-weight: 500;
}

.currency-toggle button.active {
    background: #0f172a;
    color: white;
}

.pricing-note {
    color: #026848;
    background: #ffffff03;
    border-radius: 25%;
}

.bottom {
    position: absolute;
    bottom: 1%;
}

.price {
    color: teal!important;
}

/* SERVICE BLOCK SPACING */

.service-block {
    padding: 90px 0;
}

/* add breathing room between headings */

.service-block h2 {
    margin-bottom: 30px;
}

.service-block h3 {
    margin-top: 35px;
    margin-bottom: 12px;
}

/* paragraphs */

.service-block p {
    margin-bottom: 18px;
    max-width: 750px;
}

/* lists */

.service-block ul {
    margin-top: 10px;
    margin-bottom: 28px;
}

/* buttons spacing */

.service-block .btn-secondary {
    margin-top: 15px;
    display: inline-block;
}

.service-block {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.service-block:first-of-type {
    border-top: none;
}

/* SERVICE CONTENT SPACING */

.service-block .container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.service-block h2,
.service-block h3,
.service-block p,
.service-block ul {
    margin: 0;
}

.service-block p {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Case Study Table */

.case-study{
background:#ffffff;
padding:10px;
border-radius:10px;
box-shadow:0 4px 18px rgba(0,0,0,0.06);
margin-top:40px;
}

.seo-case-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
font-size:15px;
}

.seo-case-table th{
text-align:left;
width:33%;
padding:14px;
background:#f8fafc;
font-weight:600;
border-bottom:1px solid #e5e7eb;
vertical-align:top;
}

.seo-case-table td{
padding:14px;
border-bottom:1px solid #e5e7eb;
line-height:1.6;
vertical-align:top;
background:#ffffff;
}

.seo-case-table td strong{
display:block;
margin-top:8px;
}

.seo-case-table tr:last-child td,
.seo-case-table tr:last-child th{
border-bottom:none;
}

.icon {
    margin-bottom: 12px;
    color: var(--accent);
}

.card .icon svg {
    display: block;
    margin: 0 auto;
}

.section.light .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s ease;
}

.section.light .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}



.dark-mode .styled-form {
  background-color: #2c2c2c;
}

.styled-form .form-group {
  margin-bottom: 18px;
}

.styled-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.styled-form textarea {
  resize: vertical;
  min-height: 120px;
}

.styled-form button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #2f7d32;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.styled-form button:hover {
  background-color: #fff;
  color: #2f7d32;
  border: 2px solid #2f7d32;
}

#loadingMessage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  z-index: 1000;
}

#loadingMessage p {
  margin: 0 0 15px 0;
  font-weight: bold;
}

.blurred {
  filter: blur(5px);
  pointer-events: none;
  opacity: 0.5;
}

.contact-section {
  padding: 40px 20px;
  margin-bottom: 40px;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-details {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

.contact-details p {
  text-align: center;
}

.contact-details a {
  color: #2f7d32;
  text-decoration: none;
  font-weight: bold;
}

.contact-details a:hover {
  text-decoration: underline;
}

.section-title {
    text-align: left;
    margin-left: 40px;
}

.left-list {
    display: flex;
    justify-content: flex-start;
    margin:0 40px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}



.service-options input {
    width: auto;
}

.service-options label:hover {
    border-color: var(--accent);
    background: #f0fdf4;
}

.service-options input:checked + span {
    font-weight: 600;
    color: var(--accent-dark);
}

.styled-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.styled-form input:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}


.form-section {
    border: none;
    padding: 0;
    margin-top: 40px;
}

.form-section legend {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
    padding: 0;
    color: var(--text-primary);
}

.form-section:not(:first-child) {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.styled-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.styled-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-jade);
}

@media (max-width: 600px) {
    .styled-form {
        padding: 20px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.service-options label {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.service-options label:hover {
    border-color: var(--accent);
    background: #f0fdf4;
}

.service-options input {
    margin-bottom: 8px;
}


/* DROPDOWN FIXED VERTICAL */

.dropdown {
    position: absolute;
    top: 120%;
    left: 0;

    display: flex;
    flex-direction: column; /* 👈 forces vertical */

    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);

    padding: 8px 0;
    min-width: 260px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;

    z-index: 100;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    width: 100%;

    padding: 12px 18px;
    font-size: 14px;

    color: var(--text-secondary);
    transition: 0.2s;
}

.dropdown a:hover {
    background: #f0fdf4;
    color: var(--accent);
}

.dropdown {
    gap: 0 !important; /* kill inherited gap */
}

/* ===================================
   DROPDOWN NAV (COMPLETE)
   =================================== */

/* Parent */
.has-dropdown {
    position: relative;
}

/* Add arrow to Services */
.has-dropdown > a::after {
    content: "▾";
    margin-bottom: 23px;
    margin-left: 30px;
    font-size: 12px;
}

.has-dropdown a:hover::after {
    width: 0;
}

/* Prevent hover gap flicker */
.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Dropdown container */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 0 !important;

    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);

    padding: 8px 0;
    min-width: 260px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 100;
}

/* Show on hover */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointer */
.dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

/* Items */
.dropdown li {
    width: 100%;
}

/* Links */
.dropdown a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

/* Hover effect */
.dropdown a:hover {
    background: #f0fdf4;
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

/* Divider */
.dropdown .divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
    width: 100%;
}

/* ===================================
   MOBILE FIX
   =================================== */

@media (max-width: 900px) {

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
    }

    .dropdown::before {
        display: none;
    }

    .dropdown a {
        padding: 10px 0 10px 20px;
        font-size: 14px;
        border-left: none;
    }

    .dropdown a:hover {
        background: transparent;
        color: var(--accent);
        padding-left: 24px;
    }

    .has-dropdown > a::after {
        content: "";
    }
}

/* ===================================
   FOOTER GRID UPGRADE
   =================================== */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Columns */
.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

/* Links */
.footer-col a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

/* Left text */
.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-tagline {
    margin-top: 10px;
}

/* Remove old flex layout */
.footer-inner {
    display: none;
}


/* ===================================
   🌙 COMPLETE DARK MODE (JeiSEO Style)
   =================================== */

.dark-mode {

    /* Core palette */
    --primary: #020617;
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;

    --text-primary: #f1f5f9;
    --text-secondary: #d5feef;
    --text-muted: #94a3b8;

    --border: #1e293b;
    --border-hover: #10b981;

    --bg-white: #020617;
    --bg-light: #020617;
    --bg-lighter: #0f172a;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.6);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.6);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.7);
    --shadow-jade: 0 8px 30px rgba(16,185,129,0.25);
}

/* ===================================
   BASE
   =================================== */

.dark-mode body {
    background: radial-gradient(
        circle at 20% 20%,
        rgba(16,185,129,0.05),
        transparent 40%
    ), #020617;
    color: var(--text-primary);
}

/* ===================================
   HEADER
   =================================== */

.dark-mode .site-header {
    background: rgb(245 255 255);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}



/* ===================================
   HERO / BACKGROUNDS
   =================================== */

.dark-mode .home-hero,
.dark-mode .sydney,
.dark-mode .tokyo,
.dark-mode .about,
.dark-mode .web-design,
.dark-mode .seo-web-optimization,
.dark-mode .seo-consulting,
.dark-mode .seo-audit,
.dark-mode .section.services,
.dark-mode .section.light,
.dark-mode .section.portfolio,
.dark-mode .section.about-split {
    background:
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.85) 0%,
            rgba(2, 6, 23, 0.95) 50%,
            rgba(2, 6, 23, 1) 100%
        ),
        inherit;
}


/* ===================================
   DROPDOWN
   =================================== */

.dark-mode .dropdown {
    background: #020617;
    border: 1px solid var(--border);
}

.dark-mode .dropdown::before {
    background: #020617;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.dark-mode .dropdown a:hover {
    background: rgba(16,185,129,0.08);
}

/* ===================================
   CARDS / UI
   =================================== */

.dark-mode .card,
.dark-mode .twocard,
.dark-mode .case-card,
.dark-mode .icon-card,
.dark-mode .styled-form,
.dark-mode .case-study {
    background: #020617;
    border: 1px solid var(--border);
}

.dark-mode .card:hover {
    box-shadow:
        0 20px 60px rgba(0,0,0,0.8),
        0 0 40px rgba(16,185,129,0.2);
}

/* ===================================
   BUTTONS (minor polish)
   =================================== */

.dark-mode .btn-secondary {
    background: transparent;
    color: var(--accent);
}

/* ===================================
   FOOTER
   =================================== */

.dark-mode .site-footer {
    background: #020617;
}

/* ===================================
   TABLES (CASE STUDY)
   =================================== */

.dark-mode .seo-case-table th {
    background: #020617;
}

.dark-mode .seo-case-table td {
    background: #020617;
}

/* ===================================
   FORMS
   =================================== */

.dark-mode .styled-form input,
.dark-mode .styled-form textarea,
.dark-mode .styled-form select {
    background: #020617;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.dark-mode .styled-form input::placeholder,
.dark-mode .styled-form textarea::placeholder {
    color: var(--text-muted);
}

/* ===================================
   LOADING MODAL
   =================================== */

.dark-mode #loadingMessage {
    background-color: rgba(2, 6, 23, 0.95);
    color: var(--text-primary);
}

/* ===================================
   CONTACT LINKS
   =================================== */

.dark-mode .contact-details a {
    color: var(--accent-light);
}

/* ===================================
   SERVICE OPTIONS (checkbox cards)
   =================================== */

.dark-mode .service-options label:hover {
    background: rgba(16,185,129,0.08);
}

/* ===================================
   ICON CARDS
   =================================== */

.dark-mode .icon-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ===================================
   MOBILE MENU BACKDROP
   =================================== */

.dark-mode .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

/* ===================================
   🌙 REMOVE ALL BACKGROUND IMAGES (DARK MODE)
   =================================== */

.dark-mode .hero,
.dark-mode .home-hero,
.dark-mode .sydney,
.dark-mode .tokyo,
.dark-mode .about,
.dark-mode .web-design,
.dark-mode .seo-web-optimization,
.dark-mode .seo-consulting,
.dark-mode .seo-audit,
.dark-mode .section.services,
.dark-mode .section.light,
.dark-mode .section.portfolio,
.dark-mode .section.about-split {
    background-image: none !important;
    background: linear-gradient(
        180deg,
        #020617 0%,
        #020617 60%,
        #000000 100%
    ) !important;
}

/* ── Dark mode toggle ────────────────────────────────── */

.dark-mode-toggle {
    border: none;
  background-color: transparent;
  color: black;
  cursor: pointer;
  font-size: 1.2rem;
  width: 20px;
position: absolute;
    right: 1.5vw;
    top: 1vw;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    background: transparent;

    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Hover = premium feel */
.dark-mode-toggle:hover {
    box-shadow: var(--shadow-jade);
    transform: scale(1.05);
}

/* ===================================
   🌙 DARK MODE PATCH FIXES (MISSING PIECES)
   =================================== */

/* -----------------------------------
   HARD-CODED BACKGROUNDS FIX
----------------------------------- */

.dark-mode .icon-card,
.dark-mode .case-card,
.dark-mode .case-study {
    background: #020617;
    border: 1px solid var(--border);
}

/* Table header contrast */
.dark-mode .seo-case-table th {
    background: #020617;
    color: var(--text-primary);
}

/* -----------------------------------
   CURRENCY TOGGLE (BIG FIX)
----------------------------------- */

.dark-mode .currency-toggle button {
    background: #020617;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.dark-mode .currency-toggle button.active {
    background: var(--accent);
    color: #020617;
}

/* -----------------------------------
   CONTACT + TEXT FIXES
----------------------------------- */

.dark-mode .contact-details {
    color: var(--text-secondary);
}

/* Portfolio heading (was hardcoded dark) */
.dark-mode .portfolio-group h3 {
    color: var(--text-primary);
}

/* -----------------------------------
   DROP SHADOW CLEANUP
----------------------------------- */

.dark-mode .hero-sub,
.dark-mode .section-intro {
    filter: none;
}

/* -----------------------------------
   MOBILE NAV SHADOW FIX
----------------------------------- */

.dark-mode .main-nav a {
    color: #333;
}

.dark-mode .main-nav .cta, .dark-mode .dropdown a {
    color: #fff;
}

/* -----------------------------------
   SERVICE BLOCK BORDER
----------------------------------- */

.dark-mode .service-block {
    border-top: 1px solid var(--border);
}

/* -----------------------------------
   FORM BUTTON CONSISTENCY
----------------------------------- */

.dark-mode .styled-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

/* -----------------------------------
   LOADING MODAL SHADOW
----------------------------------- */

.dark-mode #loadingMessage {
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* -----------------------------------
   GLOBAL TEXT SAFETY NET
----------------------------------- */

.dark-mode p,
.dark-mode li,
.dark-mode span {
    color: var(--text-secondary);
}

/* -----------------------------------
   FINAL CLEAN CARD HOVER POLISH
----------------------------------- */

.dark-mode .case-card:hover,
.dark-mode .icon-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* Fix section.light cards in dark mode */
.dark-mode .section.light .card {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

/* ===================================
   📱 MOBILE FORM ACCORDIONS
   =================================== */

.form-accordion {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.form-accordion summary {
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

/* Remove default arrow */
.form-accordion summary::-webkit-details-marker {
    display: none;
}

/* Custom arrow */
.form-accordion summary::after {
    content: "▾";
    position: absolute;
    right: 16px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.form-accordion[open] summary::after {
    transform: rotate(180deg);
}

/* Content */
.form-content {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* ===================================
   ONLY APPLY ON MOBILE
   =================================== */

@media (min-width: 901px) {

.services h2, .services h3, .light h2, .light h3 {
    color: #fff;
}

    .form-accordion {
        border: none;
        background: transparent;
        margin-bottom: 30px;

        /* 🔥 Force open behavior */
        display: block;
    }

    /* 🔥 THIS is the real fix */
    .form-accordion:not([open]) {
        open: true;
    }

    .form-accordion summary {
        cursor: default;
        padding: 0;
        font-size: 18px;
        margin-bottom: 12px;
        list-style: none;
        pointer-events: none; /* disables clicking */
    }

    .form-accordion summary::after {
        display: none;
    }

    .form-content {
        display: block !important;
        padding: 0;
        border: none;
    }
}

.dark-mode .section-heading-box {
    background: #020617;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.dark-mode .section-heading-box h2 {
    color: var(--text-primary);
}

.home-hero {
    /* Dark mode variables */
    --primary: #020617;
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;

    --text-primary: #f1f5f9;
    --text-secondary: #d5feef;
    --text-muted: #94a3b8;

    --border: #1e293b;
    --border-hover: #10b981;

    --bg-white: #020617;
    --bg-light: #020617;
    --bg-lighter: #0f172a;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.6);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.6);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.7);
    --shadow-jade: 0 8px 30px rgba(16,185,129,0.25);
}


.about-two h2 {
    color: #fbf8d0;
}


/* ===================================
   WAVY SECTION DIVIDERS
   =================================== */

.wave-divider {
    position: relative;
    z-index: 10;
    margin: -30px 0;
    line-height: 0;
    pointer-events: none;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Ensure sections stack correctly with waves */
.hero,
.section.services,
.section.light,
.section.about-split,
.section.portfolio {
    position: relative;
    z-index: 3;
}

@media (max-width: 900px) {
    .wave-divider svg {
        height: 35px;
    }
    
    .dark-mode .section-heading-box {
        background: #7200d7;
    }

    .wave-divider {
        margin: -17.5px 0;
    }
    .section-intro {
        color: #fff;
    }
    .about-block p, .about-two p, .about-two h2, .about-two h3 {
        color: black!important;
        filter: none;
    }
    .about-block .section-intro {
        color: black;
    }
    .portfolio-group h4 {
        color: #fff;
    }
}


/* Remove background from the element itself on mobile */
@media (max-width: 900px) {

    .sydney,
    .tokyo,
    .about,
    .web-design,
    .seo-web-optimization,
    .seo-consulting,
    .seo-audit {
        background-image: none !important;
        isolation: isolate;
        position: relative;
        background: #ffffff7d;
    }
    
    
    .sydney .container,
    .tokyo .container,
    .about .container,
    .web-design .container,
    .seo-web-optimization .container,
    .seo-consulting .container,
    .seo-audit .container {
        background: #ffffff7d;
    border-radius: 20px;        /* ← adjust to taste */
    overflow: hidden;           /* ← clips content to the rounded corners */
    padding: 40px;              /* ← add padding so text doesn't hug the edges */
    }
    
    .sydney .section-intro,
    .tokyo .section-intro,
    .about .section-intro,
    .web-design .section-intro,
    .seo-web-optimization .section-intro,
    .seo-consulting .section-intro,
    .seo-audit .section-intro {
        color: #000;
    }
    .sydney .hero-sub,
    .tokyo .hero-sub,
    .about .hero-sub,
    .web-design .hero-sub,
    .seo-web-optimization .hero-sub,
    .seo-consulting .hero-sub,
    .seo-audit .hero-sub {
        color: #000;
        filter: none;
    }
    
    .dark-mode .sydney .container,
    .dark-mode .tokyo .container,
    .dark-mode .about .container,
    .dark-mode .web-design .container,
    .dark-mode .seo-web-optimization .container,
    .dark-mode .seo-consulting .container,
    .dark-mode .seo-audit .container {
        background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;        /* ← adjust to taste */
    overflow: hidden;           /* ← clips content to the rounded corners */
    padding: 40px;              /* ← add padding so text doesn't hug the edges */
    }
    
    .dark-mode .sydney .section-intro,
    .dark-mode .tokyo .section-intro,
    .dark-mode .about .section-intro,
    .dark-mode .web-design .section-intro,
    .dark-mode .seo-web-optimization .section-intro,
    .dark-mode .seo-consulting .section-intro,
    .dark-mode .seo-audit .section-intro {
        color: #fff;
    }
    .dark-mode .sydney .hero-sub,
    .dark-mode .tokyo .hero-sub,
    .dark-mode .about .hero-sub,
    .dark-mode .web-design .hero-sub,
    .dark-mode .seo-web-optimization .hero-sub,
    .dark-mode .seo-consulting .hero-sub,
    .dark-mode .seo-audit .hero-sub {
        color: #d5feef;
        filter: none;
    }
    
    .dark-mode .about-grid h2 {
        color: #fff!important;
    }
    
    .dark-mode .about-grid p {
        color: #d5feef!important;
    }

    /* Fixed pseudo-element acts as the background */
    .sydney::before      { background-image: url(/assets/images/sydney-local-seo-bg.webp); }
    .tokyo::before       { background-image: url(/assets/images/tokyo.webp); }
    .about::before       { background-image: url(/assets/images/Global--SEO.webp); }
    .web-design::before  { background-image: url(/assets/images/portfolio-flipped.webp); }
    .seo-web-optimization::before { background-image: url(/assets/images/growth-chart.webp); }
    .seo-consulting::before { background-image: url(/assets/images/typing-laptop.webp); }
    .seo-audit::before   { background-image: url(/assets/images/seo-audit.webp); }

    .sydney::before,
    .tokyo::before,
    .about::before,
    .web-design::before,
    .seo-web-optimization::before,
    .seo-consulting::before,
    .seo-audit::before {
        content: '';
        position: fixed;        /* ← this is what fakes the parallax */
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 0.35;          /* adjust to taste */
    }
    .site-footer {
        position: relative;
    }
    
    .section-heading-box h2 {
        font-size: 120%;
    }
    
}

.contact {
    background: #ffffff24;
}

.contact .section-intro {
    color: #000;
}

.dark-mode .contact .section-intro {
    color: #fff;
}

/* ===================================
   CARD IMAGE LAYOUT (services + case cards)
   =================================== */

.jeiseo .card,
.jeiseo .case-card,
.jeiseo .section-light .card {
    padding: 0;
}

.card,
.case-card,
.section-light .card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: black!important;
    color: #fff!important;
}

.card p,
.case-card p,
.case-highlights li {
    color: #fff;
}

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
}

.case-card .card-image {
    border-radius: 18px 18px 0 0;
}

.card-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    filter: brightness(0.65);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.case-card .card-image img {
    object-fit: contain;
}

/* Brighten on hover */
.card:hover .card-image img,
.case-card:hover .card-image img {
    filter: brightness(1.15);
}

.card-image h4,
.card-image h5 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 24px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
}

.jeiseo .section.light .card {
    padding: 0px;
}

.card-image h4 a,
.card-image h5 a {
    color: #fff;
    text-decoration: none;
}

.card > p {
    margin: 0;
    padding: 16px 20px;
    font-size: 14px;
}

.card > .card-link {
    position: absolute;
    padding: 1px 16px!important;
    display: block;
    bottom: 0;
}

.case-highlights {
    padding: 16px 20px 20px !important;
}

.dark-mode .card-image h4,
.dark-mode .card-image h5 {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

@media (max-width: 900px) {
    .card-image {
        height: 130px;
    }

    .card-image h4,
    .card-image h5 {
        font-size: 13px;
        padding: 16px 10px 8px;
    }

    .card > p,
    .card > .card-link {
        padding: 10px 12px 20px;
    }
}

.card-image::after,
.case-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .card-image::after,
.case-card:hover .card-image::after {
    opacity: 1;
}

.section-heading-box.black h2 {
    color: #000!important;
}

.section-intro.black {
    color: #000!important;
}

.dark-mode .section-heading-box.black, .dark-mode .black h2 {
    color: #fff!important;
}

.dark-mode .section-intro.black, .dark-mode .black p, .dark-mode .black h3 {
    color: #d5feef!important;
}

.footer-jeiseo-logo {
    width: 90px;
    height: 50px;
    vertical-align: middle;
    margin-bottom: 4px;
    margin-left: -5px;
}

.jei-seo {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.badge-base, .LI-profile-badge {
    transform:scale(0.6)!important;
    margin-top:-10vh!important;
    margin-left:11vw!important;
}

@media (max-width: 1200px) {
.footer-jeiseo-logo {
    width: 50px;
    height: 30px;
    margin-bottom: 3px;
}

.badge-base, .LI-profile-badge {
    margin-left:11vw!important;
}

}

@media (max-width: 1400px) {
.service-grid {
    width: 100%!important;
}

}

@media (max-width: 1400px) and (min-width: 1200px) {
.badge-base, .LI-profile-badge {
    margin-left:0!important;
}
}

.service-grid {
    width: 120%;
}

.footer-full {
  grid-column: 1 / -1;
}