/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-container {
    background: white;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* =========
   CSS Variables
   ========= */
:root{
    --bg-dark: #0a0a14;
    --panel-bg: rgba(255,255,255,0.02);
    --text: #ffffff;
    --muted: rgba(255,255,255,0.6);
    --muted-2: rgba(255,255,255,0.3);
    --accent-1: #7c3aed;
    --accent-2: #06b6d4;
    --header-height: 72px;
    --page-gutter: 152px;
    --container-max: 1280px;
    --card-radius: 14px;
}

/* Smooth scrolling and offset for anchored sections so headings aren't hidden
   behind the sticky header. `--header-height` is updated from JS on load/resize. */
html { scroll-behavior: smooth; }
section { scroll-margin-top: calc(var(--header-height) + 12px); }

.app-wrapper {
    background: var(--bg-dark);
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
}

/* Header / Navigation */

.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10,10,20,0.6), rgba(10,10,20,0.3));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-inner{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo{
    font-weight: 800;
    font-size: 18px;
    color: white;
    text-decoration: none;
}

.nav{
    display: block;
}

.nav ul{
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav a{
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover{ background: rgba(255,255,255,0.03); }

.nav a.active{ background: linear-gradient(90deg,var(--accent-1),var(--accent-2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

.btn.small.call{
    padding: 8px 14px;
    font-size: 14px;
}

/* Mobile menu */
.nav-toggle{
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger{
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    position: relative;
}
.hamburger::before,
.hamburger::after{
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: white;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

@media (max-width: 768px){
    .nav ul{ flex-direction: column; gap: 0; }
    .nav{ display: none; position: absolute; right: 16px; top: var(--header-height); background: rgba(10,10,20,0.95); border-radius: 12px; padding: 12px; min-width: 160px; box-shadow: 0 8px 30px rgba(0,0,0,0.6); }
    .nav.open{ display: block; }
    .nav a{ display: block; padding: 10px 12px; }
    .nav-toggle{ display: flex; }
}

/* Tweak header/button alignment on Nest Hub / Nest Hub Max (approx. 1024x600 / 1280x800) */
@media (max-width: 1100px) and (max-height: 700px), (max-width: 1400px) and (max-height: 900px) {
    :root { --header-height: 64px; }
    .header-inner {
        height: var(--header-height);
        padding: 0 20px;
        align-items: center;
    }
    /* make the header badge sit vertically centered and slightly smaller for these screens */
    .badge.nest-only.show {
            display: inline-flex;
            align-self: center;
            margin-left: 12px;
        }

    /* Header-specific badge adjustments to avoid vertical offset caused by global .badge spacing */
    .site-header .badge {
        margin-bottom: 0;
    }

    /* Nest-specific header layout tweaks: center nav and ensure call button vertically aligned */
    .is-nest .header-inner {
        align-items: center;
    }
    .is-nest .nav {
        flex: 1 1 auto;
    }
    .is-nest .nav ul {
        justify-content: center;
    }
    .is-nest .badge.nest-only.show {
        margin-bottom: 0;
        align-self: center;
    }
    .btn.small.call {
        padding: 6px 12px;
        font-size: 13px;
    }
    /* Ensure nav doesn't overlap badge on narrow casts */
    .nav { min-width: 120px; }
}

/* Optionally target when JS confirmed Nest device */
.is-nest .header-inner { align-items: center; }

/* Hero Section */
.hero-section {
    background: #0a0a14;
    /* scale hero between a sensible min and max */
    min-height: clamp(520px, 70vh, 862px);
    position: relative;
    overflow: hidden;
    padding: 96px var(--page-gutter);
}

.canvas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
}

.gradient-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.gradient-blur-1 {
    width: 384px;
    height: 384px;
    top: 215.5px;
    left: 384px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(62, 29, 119, 0.075) 35%, transparent 70%);
}

.gradient-blur-2 {
    width: 320px;
    height: 320px;
    top: 326.5px;
    left: 832px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    /* align items to the start so the right profile card sits to the right (not lower) */
    align-items: flex-start;
    gap: 64px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Left column (hero content) - occupy half the hero */
.hero-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    padding: 8px 16px;
    margin-bottom: 40px;
}

/* Show this badge only on Nest Hub / Nest Hub Max devices.
   Hidden by default; JS will add `.show` when a Nest device is detected. */
.badge.nest-only {
    display: none;
}
.badge.nest-only.show {
    display: inline-flex;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
    opacity: 0.98;
}

.badge-text {
    color: #a78bfa;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 19.2px;
}

/* Title (left column) */
.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 70.4px;
    margin-bottom: 24px;
}

.title-line-1 {
    display: block;
    color: white;
}

.title-gradient {
    display: block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Right column (hero image) - occupy half the hero */
.hero-section .hero-right {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-section .profile-card {
    position: relative;
    width: 360px;
    height: 360px;
    max-width: 100%;
}
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.subtitle-text {
    color: #06b6d4;
    font-size: 21.6px;
    line-height: 32.4px;
}

.divider {
    width: 2px;
    height: 24px;
    background: #7c3aed;
    opacity: 0.98;
}

.hero-description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 29.6px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15.2px;
    font-weight: 600;
    line-height: 22.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(169.372deg, #7c3aed 0%, #5b21b6 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0px 0px 25px 0px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 35px 0px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-label {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12.8px;
    line-height: 19.2px;
}


.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

/* ensure the image fully fills the circular frame with no extra spacing */
.profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    padding: 0;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 50%;
}

.stat-badge {
    position: absolute;
    background: rgba(10, 10, 20, 0.9);
    border-radius: 14px;
    padding: 9px 17px;
    backdrop-filter: blur(10px);
}

.stat-badge-1 {
    top: calc(100% - 56px);
    left: -32px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.stat-badge-2 {
    top: -18px;
    right: -32px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 4px;
}

.stat-badge-2 .stat-label {
    color: #06b6d4;
}

.stat-value {
    font-size: 19.2px;
    font-weight: 800;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11.2px;
    letter-spacing: 1.68px;
}

.scroll-indicator svg {
    width: 16px;
    height: 16px;
}

/* About Section */
.about-section {
    background: #0d0d1a;
    padding: 96px 152px;
    /* -----------------------------
       Custom responsive rules for About section
       - Phones & tablets: stack image (top) and text (bottom), center-aligned
       - Nest Hub / Nest Hub Max (mid-width, short height): two-column left/right layout
       - Large screens: keep existing two-column but ensure consistent alignment
       ----------------------------- */

    /* Phones & small tablets: top (image) / bottom (text) stacking */
    @media (max-width: 1024px) {
        .about-section {
            padding: 48px 20px;
        }

        .about-content {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .about-image {
            order: 1;
            width: 100%;
            max-width: 920px;
            justify-self: center;
        }

        .about-text {
            order: 2;
            width: 100%;
            max-width: 920px;
            text-align: center;
            padding-inline: 12px;
        }

        /* make the philosophy card flow below the image on stacked layout */
        .philosophy-card {
            position: relative;
            bottom: 0;
            right: 0;
            left: 0;
            margin-top: 12px;
            max-width: none;
        }
    }

    /* Nest Hub / Nest Hub Max and similar smart displays: keep two-column left/right alignment
       Target mid-large widths with limited height to catch smart displays (e.g. 1024x600, 1280x800) */
    @media (min-width: 900px) and (max-width: 1280px) and (max-height: 900px) {
        .about-section {
            padding: 56px 48px;
        }

        .about-content {
            display: grid !important;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            align-items: center;
        }

        /* ensure explicit left (image) and right (text) placement */
        .about-image { grid-column: 1; justify-self: start; }
        .about-text  { grid-column: 2; text-align: left; }

        /* keep the philosophy card anchored inside image area */
        .philosophy-card {
            position: absolute;
            bottom: 24px;
            right: 24px;
            max-width: 320px;
        }
    }

    /* Large screens: ensure two-column layout stays horizontally aligned */
    @media (min-width: 1281px) {
        .about-content { display: grid !important; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
        .about-image { justify-self: start; }
        .about-text { text-align: left; }
    }
}

.section-header {
    text-align: center;
    margin-bottom: 34px;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    padding: 4px 16px;
    font-size: 12.8px;
    color: #a78bfa;
    letter-spacing: 1.28px;
    margin-bottom: 24px;
}

.section-badge.cyan {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.section-title {
    font-size: 44.8px;
    font-weight: 800;
    line-height: 53.76px;
    color: white;
}

.gradient-text {
    background: linear-gradient(166.446deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    /* line-height: 29.6px; */
    margin-top: 10px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Ensure About section mirrors hero: left text, right image for mid/large widths */
.about-section .about-content {
    /* keep two-column layout but explicitly place image on the right */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.about-section .about-image {
    /* place image on the left for About section */
    grid-column: 1;
    justify-self: start;
}

.about-section .about-text {
    grid-column: 2;
    text-align: left;
}

@media (max-width: 1280px) {
    /* reduce paddings and keep image right on Nest Hub Max */
    .about-section { padding: 64px 48px; }
    .about-section .about-content { gap: 32px; }
    .about-section .about-text { text-align: left; }
    .about-section .about-image { grid-column: 1; justify-self: start; width: 100%; }
}

@media (max-width: 600px) {
    /* stack for small screens */
    .about-section { padding: 48px 24px; }
    .about-section .about-content { grid-template-columns: 1fr; gap: 20px; }
    .about-section .about-image { grid-column: auto; justify-self: center; }
    .about-section .about-text { grid-column: auto; text-align: center; }
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 584px;
    aspect-ratio: 584 / 322;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 0px 60px 0px rgba(124, 58, 237, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.philosophy-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(13, 13, 26, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 21px;
    max-width: 320px;
    box-shadow: 0px 0px 30px 0px rgba(124, 58, 237, 0.1);
}

.philosophy-label {
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 8px;
}

.philosophy-quote {
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    line-height: 22.4px;
    color: white;
}

.decorative-dots {
    position: absolute;
    top: -32px;
    left: -32px;
    width: 62px;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    opacity: 0.3;
}

.decorative-dots::before {
    content: '';
    background: #7c3aed;
    border-radius: 50%;
}

.about-text {
    max-width: none;
}

.about-paragraph {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 30.4px;
    margin-bottom: 24px;
    text-align: justify;
}

/* Responsive: tablet and phone for About section (stack only on smaller screens) */
@media (max-width: 768px) {
    /* remove horizontal side padding on tablet/phone so the image can span the viewport */
    /* keep a small horizontal gutter on mobile so content doesn't touch edges */
    .about-section {
        padding: 64px 24px;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .about-image {
        width: 100%;
        height: auto;
        min-height: 220px;
        border-radius: 12px;
        /* allow the philosophy card to appear outside the visual image area on small screens */
        overflow: visible;
    }

    /* ensure image keeps a small horizontal gutter on narrow screens */
    .about-image { padding-inline: 12px; box-sizing: border-box; }

    .about-image img {
        width: 100%;
        /* allow natural height so the parent can size responsively */
        height: 72%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    .philosophy-card {
        position: relative;
        bottom: 0;
        right: 0;
        left: 0;
        margin-top: 12px;
        max-width: none;
        z-index: 5;
    }

    .about-text { max-width: 100%; }

    /* keep a small inner gutter so paragraphs and lists don't touch the viewport edge */
    .about-text { padding-inline: 12px; }

    .work-list { padding-left: 0; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    /* Remove horizontal side padding on very small screens so content uses full width */
    /* keep minimal left/right padding to prevent content touching screen edges */
    .about-section { padding: 48px 16px; }

    .section-title { font-size: 28px; line-height: 36px; }

    .about-paragraph { font-size: 15px; line-height: 24px; }

    .philosophy-card { padding: 12px 14px; border-radius: 10px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .work-list .work-item { font-size: 13px; }

    /* ensure the about text keeps a small horizontal margin on very small screens */
    .about-text { padding-inline: 12px; }
}

.highlight {
    font-weight: 700;
    color: #a78bfa;
}

.work-spans-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.8px;
    letter-spacing: 1.024px;
    margin-bottom: 16px;
}

.work-list {
    list-style: none;
    margin-bottom: 48px;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15.2px;
    line-height: 22.8px;
    margin-bottom: 12px;
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Tablet: show two stat-cards per row inside About section */
@media (max-width: 1024px) {
    .about-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile: single column on small screens */
@media (max-width: 600px) {
    .about-section .stats-grid {
        /* show two cards per row on phone view as requested */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Ensure the stats cards keep a small horizontal gutter on narrow screens */
@media (max-width: 600px) {
    .about-section .stats-grid { padding-inline: 12px; }
}

@media (max-width: 480px) {
    .about-section .stats-grid { padding-inline: 12px; }
}

/* Desktop / laptop: ensure four cards in a single row */
@media (min-width: 900px) {
    .about-section .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
}

.stat-icon {
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 22.4px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.stat-description {
    font-size: 12.48px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 18.72px;
}

/* Skills Section */
.skills-section {
    background: #0a0a14;
    padding: 96px 152px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1232px;
    margin: 0 auto;
}

/* Expertise / large cards layout */
.expertise-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1232px;
    margin: 0 auto;
}

.expertise-card{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transition: transform .18s ease, box-shadow .18s ease;
}
.expertise-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 60px rgba(0,0,0,0.6); }

.expertise-icon{
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    color: white;
}
.expertise-icon.purple{ background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.expertise-icon.cyan{ background: linear-gradient(135deg,#06b6d4,#0ea5a4); }
.expertise-icon.pink{ background: linear-gradient(135deg,#f472b6,#fb7185); }
.expertise-icon.orange{ background: linear-gradient(135deg,#fb923c,#f97316); }

.expertise-title{ font-size: 20px; font-weight:700; color: white; margin-bottom: 12px; }
.expertise-desc{ color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 16px; }

.expertise-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.pill{ font-size:12px; padding:6px 12px; border-radius:999px; display:inline-block; border:1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); }
.pill.purple{ background: rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.12); color:#a78bfa; }
.pill.cyan{ background: rgba(6,182,212,0.06); border-color: rgba(6,182,212,0.12); color:#06b6d4; }
.pill.pink{ background: rgba(244,114,182,0.06); border-color: rgba(244,114,182,0.12); color:#f472b6; }
.pill.orange{ background: rgba(251,146,60,0.06); border-color: rgba(251,146,60,0.12); color:#fb923c; }

/* Services Section (How I Work With Organizations) */
.services-section{
    background: #0d0d16;
    padding: 96px 152px;
}

.services-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1232px;
    margin: 0 auto;
}

.service-card{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 60px rgba(0,0,0,0.6); }

.service-card.is-hovered{ transform: translateY(-6px) !important; box-shadow: 0 22px 72px rgba(0,0,0,0.65) !important; }

.service-accent{
    width: 44px;
    height: 6px;
    border-radius: 4px;
    margin-bottom: 18px;
}

/* Responsive adjustments for mid-size displays (Nest Hub / Nest Hub Max, small-height smart displays) */
@media (max-width: 1280px) {
    /* reduce large horizontal gutters so content fits on smart displays */
    .hero-section { padding: 80px 48px; }
    .hero-section .hero-title { font-size: 48px; line-height: 56px; }
    .hero-section .profile-card { width: 420px; height: 420px; }
    .hero-section .gradient-blur-1 { left: 260px; top: 180px; }
    .hero-section .gradient-blur-2 { left: 640px; top: 260px; }
}

/* Narrow, short displays (typical smart displays: 1024×600, Nest Hub Max range) */
@media (max-width: 1100px) {
    .hero-section {
        /* reduce vertical footprint and horizontal padding */
        padding: 56px 32px;
        min-height: clamp(420px, 55vh, 650px);
    }

    /* Keep a two-column layout on these mid/narrow widths so the image stays on the right.
       Reduce the image size and constrain left column width so it doesn't wrap below. */
    .hero-section .hero-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .hero-section .hero-left { order: 2; flex: 1 1 auto; max-width: calc(100% - 300px); text-align: left; }
    .hero-section .hero-right { order: 2; flex: 0 0 260px; display: flex; justify-content: center; align-items: center; }

    .hero-section .hero-title {
        font-size: 30px;
        line-height: 40px;
        margin-bottom: 16px;
    }

    .hero-section .subtitle-text { font-size: 18px; }
    .hero-section .hero-description { font-size: 15px; line-height: 24px; }

    /* Make the circular profile smaller so it fits beside the text */
    .hero-section .profile-card { width: 360px; height: 360px; }
    .hero-section .profile-image img { object-position: center top; }

    /* reposition stat badges so they remain visible on smaller circles */
    .hero-section .stat-badge-1 { top: calc(100% - 48px); left: -14px; }
    .hero-section .stat-badge-2 { top: -14px; right: -14px; }

    /* hide heavy background blurs that cause overflow on embedded displays */
    .hero-section .gradient-blur { display: none; }

    .hero-section .scroll-indicator { bottom: 28px; }
}

/* Specific fix for Nest Hub Max / mid-width displays that were wrapping */
@media (min-width: 1101px) and (max-width: 1280px) {
    .hero-section .hero-content {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 24px;
    }

    .hero-section .hero-left {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-width: 0;
        text-align: left !important;
    }

    .hero-section .hero-right {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .hero-section .profile-card {
        width: 450px !important;
        height: 450px !important;
        align-self: flex-start;
        margin-top: 0;
    }

    /* Ensure headings and descriptive text align left on Nest Hub Max */
    .hero-section .hero-title,
    .hero-section .subtitle-text,
    .hero-section .hero-description,
    .hero-section .cta-buttons,
    .hero-section .social-links {
        text-align: left !important;
        margin-left: 0;
    }

    .hero-section .hero-left, .hero-section .hero-right { box-sizing: border-box; }
}

/* Ensure hero keeps text-left / image-right ordering by default */
@media (max-width: 1100px) {
    .hero-section .hero-left { order: 1 !important; }
    .hero-section .hero-right { order: 2 !important; }
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .hero-section .hero-left { order: 1 !important; }
    .hero-section .hero-right { order: 2 !important; justify-content: flex-end !important; }
}

/* For very small screens (phones / very narrow smart displays) allow stacking */
@media (max-width: 600px) {
    /* Phones: stack top (hero-left) then bottom (hero-right) */
    .hero-section .hero-content { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .hero-section .hero-left { order: 1; max-width: 100%; width: 100%; }
    .hero-section .hero-right { order: 2; flex: 0 0 auto; width: 100%; display: flex; justify-content: center; }
    .hero-section .profile-card { margin-top: 8px; }
}

/* Tablets (portrait & landscape) — enforce top / bottom stacking so content aligns vertically */
@media (min-width: 601px) and (max-width: 1024px) {
    .hero-section {
        padding: 64px 20px;
    }
    .hero-section .hero-content { flex-direction: column; align-items: stretch; text-align: center; gap: 28px; }
    .hero-section .hero-left { order: 1; width: 100%; max-width: 100%; padding-inline: 12px; box-sizing: border-box; }
    .hero-section .hero-right { order: 2; width: 100%; max-width: 640px; margin: 0 auto; display: flex; justify-content: center; }
    .hero-section .profile-card { width: 320px; height: 320px; }
    .hero-section .hero-title { font-size: 36px; line-height: 44px; }
}

/* Devices with limited vertical space (smart displays are often short) */
@media (max-height: 700px) {
    .hero-section { min-height: 380px; padding-top: 40px; padding-bottom: 40px; }
    .hero-section .hero-title { font-size: 30px; line-height: 36px; }
    .hero-section .profile-card { transform: scale(0.92); }
    .hero-section .scroll-indicator { display: none; }
}
.service-accent.purple{ background: linear-gradient(90deg,#7c3aed,#9f7aea); }
.service-accent.cyan{ background: linear-gradient(90deg,#06b6d4,#34d4e6); }
.service-accent.pink{ background: linear-gradient(90deg,#f472b6,#ffa3c4); }
.service-accent.orange{ background: linear-gradient(90deg,#fb923c,#ffb86b); }

.service-title{ font-size:18px; font-weight:700; color:white; margin-bottom:10px; }
.service-desc{ color: rgba(255,255,255,0.6); font-size:14px; line-height:1.6; }

@media (max-width: 1280px){
    .services-section{ padding: 64px 80px; }
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
    .services-section{ padding: 48px 24px; }
    .services-grid{ grid-template-columns: 1fr; }
}

/* Tablet-specific: ensure services and media grids show 2 boxes per row with equal heights */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-section, .media-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .services-grid, .media-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        align-items: stretch;
        grid-auto-rows: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .services-grid .service-card, .media-grid .service-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        box-sizing: border-box;
    }

    /* make badges and year sit at the top and content flow naturally */
    .media-card .media-badge, .media-card .media-year { z-index: 2; }

    /* ensure consistent inner spacing on tablet */
    .service-card, .media-card { padding: 20px; }

    /* ensure media-card content stretches so titles/descriptions align across rows */
    .media-card { display: flex; flex-direction: column; justify-content: space-between; }
    .media-card .service-title, .media-card .service-desc { margin-bottom: 0; }
}

/* Speaking & Media Section */
.speaking-section{
    background: #0a0a14;
    padding: 96px 152px;
}

.speaking-subheading{
    text-align: center;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
    margin: 8px 0 28px;
}

.speaking-grid{
    display: grid;
    /* two cards per row on desktop / laptop / tablet */
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1232px;
    margin: 0 auto;
}

.speaking-card{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.speaking-card.is-hovered{ transform: translateY(-6px) !important; box-shadow: 0 22px 72px rgba(0,0,0,0.65) !important; }

.speaking-icon{
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}
.speaking-icon.purple{ background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.speaking-icon.cyan{ background: linear-gradient(135deg,#06b6d4,#0ea5a4); }
.speaking-icon.pink{ background: linear-gradient(135deg,#f472b6,#fb7185); }
.speaking-icon.orange{ background: linear-gradient(135deg,#fb923c,#f97316); }

.speaking-body{ flex:1; }
.speaking-title{ font-size:18px; font-weight:800; margin-bottom:8px; color:white; }
.speaking-desc{ color: rgba(255,255,255,0.55); line-height:1.7; }

@media (max-width: 1280px){
    .speaking-section{ padding: 64px 80px; }
    /* keep two columns for large tablets and smaller laptops */
    .speaking-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Phones: single-column stack for narrow viewports */
@media (max-width: 480px) {
    .speaking-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px){
    .speaking-section{ padding: 48px 24px; }
}

/* Tablet-specific: show one speaking card per row (stacked) on tablets for clearer reading */
@media (min-width: 768px) and (max-width: 1024px) {
    .speaking-section { padding-left: 32px; padding-right: 32px; }
    .speaking-grid { grid-template-columns: 1fr !important; gap: 20px; max-width: 100%; }
    .speaking-card { width: 100%; }
}

/* Media & Recognition (reuse services styles + small tweaks) */
.media-section{
    background: #0d0d16;
    padding: 96px 152px;
}

.media-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1232px;
    margin: 0 auto;
}

.media-card{ position: relative; padding-top: 56px; }
.media-badge{ position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; }
.media-badge .pill{ display: inline-flex; align-items: center; }
.media-year{ position: absolute; top: 16px; right: 16px; color: rgba(255,255,255,0.35); font-size: 13px; z-index: 2; }

@media (max-width: 1280px){
    .media-section{ padding: 64px 80px; }
    .media-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
    .media-section{ padding: 48px 24px; }
    .media-grid{ grid-template-columns: 1fr; }
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.skill-icon.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
}

.skill-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #06b6d4 100%);
}

.skill-icon.pink {
    background: linear-gradient(135deg, #f472b6 0%, #f472b6 100%);
}

.skill-icon.orange {
    background: linear-gradient(135deg, #fb923c 0%, #fb923c 100%);
}

.skill-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.skill-description {
    font-size: 14px;
    line-height: 22.4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 11.52px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    line-height: 17.28px;
}

.tag.purple {
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #7c3aed;
}

.tag.cyan {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.14);
    color: #06b6d4;
}

.tag.pink {
    background: rgba(244, 114, 182, 0.06);
    border: 1px solid rgba(244, 114, 182, 0.14);
    color: #f472b6;
}

.tag.orange {
    background: rgba(251, 146, 60, 0.06);
    border: 1px solid rgba(251, 146, 60, 0.14);
    color: #fb923c;
}

/* Responsive Design */
@media (max-width: 1280px) {
    /* reduce horizontal gutter on narrower screens */
    :root{ --page-gutter: 80px; }
    .hero-section,
    .about-section,
    .skills-section {
        padding: 34px var(--page-gutter);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional breakpoints for common laptop/desktop widths */
@media (max-width: 1440px) {
    :root{ --page-gutter: 96px; }
    .hero-title { font-size: 56px; line-height: 62px; }
}

@media (max-width: 1366px) {
    :root{ --page-gutter: 72px; }
}

@media (max-width: 768px) {
    .expertise-grid{ grid-template-columns: 1fr; }
    .expertise-card{ padding: 20px; }
}

@media (max-width: 768px) {
    .hero-section,
    .about-section,
    .skills-section {
        padding: 24px 24px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .section-title {
        font-size: 22px;
        line-height: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer styles */
.site-footer{
    background: linear-gradient(180deg, #09090d 0%, #0c0c12 100%);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 32px;
    margin-top: 48px;
}

.footer-inner{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid{
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-logo{
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-desc{
    color: rgba(255,255,255,0.45);
    max-width: 320px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-socials{
    display: flex;
    gap: 12px;
}

.footer-col h4{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: 12px; }
.footer-col a{ color: rgba(255,255,255,0.35); text-decoration: none; transition: color .15s ease; }
.footer-col a:hover{ color: rgba(255,255,255,0.85); }



.footer-divider{ height:1px; background: rgba(255,255,255,0.03); margin:28px 0; }

.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.copyright{ color: rgba(255,255,255,0.35); font-size:14px; }

.back-to-top{ background: transparent; border:1px solid rgba(124,58,237,0.25); color: #a78bfa; padding: 10px 16px; border-radius: 12px; cursor:pointer; font-weight:700; }
.back-to-top:hover{ background: rgba(124,58,237,0.06); }

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

@media (max-width: 640px){
    .footer-grid{ grid-template-columns: 1fr; }
    .footer-bottom{ flex-direction: column; align-items:flex-start; gap:12px; }
    .back-to-top{ align-self:flex-end; }
}

/* Invite CTA Section - centered rounded rectangle + pill CTA */
.invite-section {
    padding: 72px 120px;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34,11,55,0.5), rgba(5,10,20,0.6));
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(2,6,23,0.7), inset 0 1px 0 rgba(255,255,255,0.02);
    position: relative;
    margin: 40px 24px;
}
.invite-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.invite-icon {
    font-size: 26px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(99,102,241,0.06));
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(124,58,237,0.12);
}
.invite-title { font-size: 22px; font-weight:700; color: #fff; margin: 0; }
.invite-desc { max-width: 880px; color: rgba(255,255,255,0.68); margin: 0; }
.invite-actions { width: 100%; display:flex; justify-content:center; }
.invite-actions .btn.btn-primary {
    display: inline-flex; align-items:center; justify-content:center;
    padding: 14px 34px; border-radius: 999px;
    background: linear-gradient(90deg,#7C3AED 0%, #8B5CF6 100%);
    color: #fff; box-shadow: 0 12px 30px rgba(124,58,237,0.24);
    text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease;
}
.invite-actions .btn.btn-primary:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(124,58,237,0.3); }

@media (max-width: 960px){
    .invite-section{ padding: 36px 28px; border-radius: 14px; }
    .invite-title{ font-size:18px; }
    .invite-desc{ font-size:14px; }
}

/* Testimonials / Client Voices */
.testimonials-section {
    padding: 96px 120px;
    background: transparent;
}
.testimonials-section .section-header { margin-bottom: 48px; }
.testimonials-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1320px;
    margin: 0 auto;
}
.testimonials-carousel{ display:flex; align-items:center; gap:20px; max-width:1320px; margin:0 auto; }
.carousel-viewport{ overflow:hidden; width:100%; }
.testimonials-grid{ display:flex; gap:28px; align-items:stretch; padding:12px 8px; scroll-behavior:smooth; scroll-snap-type:x mandatory; }
.testimonial-card{ scroll-snap-align:center; min-width:320px; flex:0 0 33.333%; }
.carousel-btn{ background:transparent; border:1px solid rgba(255,255,255,0.06); color: #d5c7ff; width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; transition:transform .12s ease, background .12s ease; }
.carousel-btn:hover{ transform: translateY(-3px); background: rgba(255,255,255,0.02); }
.carousel-prev{ order: 0; }
.carousel-next{ order: 2; }

/* Make sure earlier grid-based rules don't conflict */
@media (min-width: 1232px){
    .testimonials-grid{ padding:16px 0; }
}
.testimonial-card{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 28px 24px 36px 24px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.testimonial-card{
    transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}
.testimonial-card:hover,
.testimonial-card.is-hovered,
.testimonial-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 26px 90px rgba(0,0,0,0.65);
    border-color: rgba(124,58,237,0.16);
}
.testimonial-card .card-accent{ transition: transform 220ms ease, opacity 220ms ease; transform: translateY(6px); opacity:0.9; }
.testimonial-card:hover .card-accent,
.testimonial-card.is-hovered .card-accent,
.testimonial-card:focus-within .card-accent { transform: translateY(0); opacity:1; }
.testimonial-stars{ color: #fbbf24; letter-spacing: 4px; font-size: 14px; }
.testimonial-quote{ color: rgba(255,255,255,0.68); line-height: 1.8; font-size: 15px; }
.testimonial-footer{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.avatar{ width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:white; font-weight:700; }
.avatar.purple{ background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.avatar.cyan{ background: linear-gradient(135deg,#06b6d4,#0ea5a4); }
.avatar.pink{ background: linear-gradient(135deg,#f472b6,#fb7185); }
.author-name{ font-weight:700; color:white; margin:0; }
.author-role{ color: rgba(255,255,255,0.45); font-size:13px; margin:0; }
.card-accent{ position:absolute; left:24px; right:24px; bottom:14px; height:4px; border-radius:999px; opacity:0.95; }
.card-accent.purple{ background: linear-gradient(90deg,#7c3aed,#9f7aea); }
.card-accent.cyan{ background: linear-gradient(90deg,#06b6d4,#34d4e6); }
.card-accent.pink{ background: linear-gradient(90deg,#f472b6,#ffa3c4); }

@media (max-width: 1280px){
    .testimonials-section{ padding: 64px 80px; }
    .testimonials-grid{ flex-wrap: nowrap; }
}

@media (max-width: 768px){
    .testimonials-section{ padding: 48px 24px; }
    .testimonials-grid{ grid-template-columns: 1fr; }
}

/* Contact / Get In Touch */
.contact-section{
    padding: 96px 120px;
    background: transparent;
}
.contact-grid{
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    max-width: 1320px;
    margin: 0 auto;
    align-items: start;
}
.contact-left{ display:flex; flex-direction:column; gap:18px; }
.contact-card{
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px 16px;
    display:flex; gap:12px; align-items:center;
}
.contact-icon{ width:48px; height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background: rgba(255,255,255,0.03); }
.contact-body a{ color: rgba(255,255,255,0.85); text-decoration:none; font-weight:600; }
.contact-label{ color: rgba(255,255,255,0.45); font-size:13px; margin:0; }
.contact-note{ background: linear-gradient(90deg, rgba(124,58,237,0.04), rgba(6,182,212,0.02)); border-radius:12px; padding:14px; border:1px solid rgba(124,58,237,0.06); color: rgba(255,255,255,0.8); }

.contact-form{ background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); border-radius:14px; padding:28px; display:flex; flex-direction:column; gap:14px; }
.contact-form-title{ margin:0 0 6px 0; font-size:18px; }

/* Mobile override: ensure hero content stacks with text above image on phones */
@media (max-width: 600px) {
    .hero-section .hero-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-section .hero-left { order: 1 !important; }
    .hero-section .hero-right { order: 2 !important; }
}
.form-row{ display:flex; gap:12px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea{
    background: rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.9); padding:12px 14px; border-radius:10px; width:100%; font-size:14px;
}
.contact-form textarea{ resize:vertical; }
.form-checkbox{ color: rgba(255,255,255,0.7); font-size:13px; display:flex; gap:8px; align-items:center; }
.form-actions{ margin-top:8px; display:flex; justify-content:flex-end; }
.form-actions .btn.btn-primary{ width:100%; padding:14px 22px; border-radius:12px; }
.form-success{ margin-top:12px; color: rgba(124,58,237,0.95); font-weight:700; }

@media (max-width: 960px){
    .contact-section{ padding: 64px 36px; }
    .contact-grid{ grid-template-columns: 1fr; }
    .form-actions .btn.btn-primary{ width:100%; }
    .form-row{ flex-direction:column; }
}

/* Phone-specific (small) responsive rules */
@media (max-width: 480px) {
    /* Reduce paddings and center section headers. Remove horizontal gutters for About so image can be full-bleed */
    .hero-section,
    .skills-section,
    .services-section,
    .speaking-section,
    .media-section,
    .invite-section,
    .testimonials-section,
    .contact-section {
        padding: 28px 16px;
    }

    /* Make About section use no side padding and allow the image to span the viewport */
    .about-section { padding: 28px 0; }
    .about-image {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
    }
    .about-image img { width: 100%; height: auto; display:block; }

    /* Invite CTA: make rectangle tighter and centered */
    .invite-section { padding: 20px 12px; border-radius: 12px; margin: 18px 12px; }
    .invite-card { padding: 12px 8px; }

    /* Testimonials carousel: each card full width and snap to start */
    .carousel-btn { display: none; }
    .carousel-viewport { -webkit-overflow-scrolling: touch; }
    .testimonials-grid { gap: 16px; padding: 8px 0; }
    .testimonial-card { flex: 0 0 100% !important; min-width: 100% !important; scroll-snap-align: start; padding: 20px; }
    .testimonial-quote { font-size: 15px; }

    /* Contact: stack columns, full-width inputs and cards */
    .contact-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-left { order: 2; }
    .contact-form { order: 1; }
    .contact-card { width: 100%; }
    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { font-size: 15px; }
    .form-actions .btn.btn-primary { width: 100%; }

    /* Make service/speaking/media grids stack single column */
    .services-grid, .speaking-grid, .media-grid, .skills-grid { grid-template-columns: 2fr !important; }

    /* Buttons and pills should remain usable */
    .btn { width: 100%; justify-content: center; }

    /* Tighten footer spacing for small screens */
    .site-footer { padding: 28px 16px 20px; }
}
