/* ==================== CSS VARIABLES ==================== */


:root {
    /* Dark luxury palette */
    --primary-bg: #0a0a0f;
    --secondary-bg: #12121a;
    --card-bg: #1a1a24;
    
    /* Brand accents from logo */
    --accent-cyan: #1EABCF;
    --accent-purple: #6B2C9E;
    --accent-blue: #00D4FF;
    
    /* Luxury neutrals */
    --text-primary: #e8e8f0;
    --text-secondary: #9696a8;
    --text-muted: #606070;
    
    /* Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /*floating card*/
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --text-dark: #2d3748;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    height: 80px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: logoFadeIn 1s ease 0.3s forwards;
    object-fit: contain;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
    }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transform: translateX(-100%);
    animation: loadingBar 2s ease forwards;
}

@keyframes loadingBar {
    to {
        transform: translateX(0);
    }
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease;
    left: 0;
    top: 0;
    box-shadow: 0 0 10px rgba(30, 171, 207, 0.6);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(30, 171, 207, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.2s ease;
    left: 0;
    top: 0;
    box-shadow: 0 0 15px rgba(30, 171, 207, 0.3);
}

/* Optional: hide default cursor on desktop when custom cursor works (uncomment if desired)
@media (min-width: 1025px) {
    body { cursor: none; }
}
*/

/* ==================== NAVIGATION ==================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.main-nav .nav-container {
    pointer-events: none;
}

.main-nav .nav-logo,
.main-nav .nav-menu,
.main-nav .nav-toggle {
    pointer-events: auto;
}

.main-nav.scrolled {
    padding: 1rem 0;
    background: transparent;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* ==================== HERO LOGO ==================== */
.hero-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    pointer-events: none;
}

.hero-logo video {
    display: block;
    height: 420px;
    width: auto;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    object-fit: contain;
    /* Mask centred over the logo so all sides fade evenly — no box visible */
    -webkit-mask-image: radial-gradient(
        ellipse 70% 70% at 50% 50%,
        black 30%,
        rgba(0,0,0,0.65) 52%,
        rgba(0,0,0,0.2) 68%,
        transparent 82%
    );
    mask-image: radial-gradient(
        ellipse 70% 70% at 50% 50%,
        black 30%,
        rgba(0,0,0,0.65) 52%,
        rgba(0,0,0,0.2) 68%,
        transparent 82%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    z-index: 1001;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: transparent;
}

.nav-menu a:hover::after {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==================== SECTION SCROLL ANCHORS ==================== */
/* Nav is transparent so sections can scroll flush to the top of the viewport */
.hero, .about, .services, .portfolio, .reviews, .contact, .reviews-page {
    scroll-margin-top: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 3rem 3rem;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-label {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.line-reveal {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.line-reveal:nth-child(1) {
    animation: fadeInUp 1s ease 0.5s forwards;
}

.line-reveal:nth-child(2) {
    animation: fadeInUp 1s ease 0.7s forwards;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.scroll-prompt {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    margin: 1rem auto 0;
    animation: scrollLineGrow 2s ease-in-out infinite;
}

@keyframes scrollLineGrow {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ==================== BUTTONS ==================== */
.cta-button {
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cta-button.primary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button.primary:hover::before,
.cta-button.primary:active::before,
.cta-button.primary:focus::before,
.cta-button.primary:focus-visible::before {
    left: 0;
}

.cta-button.primary:hover,
.cta-button.primary:active,
.cta-button.primary:focus,
.cta-button.primary:focus-visible {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(30, 171, 207, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button.secondary:hover::before,
.cta-button.secondary:active::before,
.cta-button.secondary:focus::before,
.cta-button.secondary:focus-visible::before {
    left: 0;
}

.cta-button.secondary:hover,
.cta-button.secondary:active,
.cta-button.secondary:focus,
.cta-button.secondary:focus-visible {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(107, 44, 158, 0.3);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    min-height: 100vh;
    padding: 6rem 3rem 6rem;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.82), rgba(18, 18, 26, 0.85)),
        url('../images/backgrounds/4k-programming-background.jpg') center / cover no-repeat;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content {
    padding-top: 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.typing-text-wrapper {
    display: inline-block;
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--accent-cyan);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.about-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--accent-cyan);
    margin-top: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    min-height: 100vh;
    padding: 2.5rem 13rem 3rem 3rem;
    position: relative;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop: vertical "OUR SERVICES" label running down the left */
.services .section-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
}

.services .section-header {
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.25rem;
    align-self: stretch;
}

.services .section-header .section-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0;
    user-select: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0.85rem;
}

.services-body {
    flex: 1;
    min-width: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.about .section-label {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    font-weight: 700;
}

.services .section-header .section-label {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    margin-bottom: 0;
}

/* Pricing Cards (Services) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
    max-width: 960px;
    margin: 0;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 500px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 171, 207, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.pricing-card--featured {
    background: var(--secondary-bg);
    border-color: rgba(30, 171, 207, 0.35);
    box-shadow: 0 8px 40px rgba(30, 171, 207, 0.12);
}

.pricing-card--featured:hover {
    border-color: rgba(30, 171, 207, 0.6);
    box-shadow: 0 16px 60px rgba(30, 171, 207, 0.2);
}

.pricing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

.pricing-card--featured .pricing-price {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.pricing-popular {
    font-weight: 700;
    color: var(--accent-purple);
}

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

.pricing-card--care {
    background: var(--secondary-bg);
    border-color: rgba(30, 171, 207, 0.35);
    box-shadow: 0 8px 40px rgba(30, 171, 207, 0.12);
}

.pricing-card--care:hover {
    border-color: rgba(30, 171, 207, 0.6);
    box-shadow: 0 16px 60px rgba(30, 171, 207, 0.2);
}

.pricing-description {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pricing-timeline {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: 0.02em;
}

/* Carousel nav hidden on desktop — shown via media query only */
.pricing-carousel-nav {
    display: none;
}

/* Care Plan Card */
.care-plan-card {
    flex-shrink: 0;
    width: 170px;
    height: 500px;
    margin-top: 0;
    max-width: none;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.care-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.care-plan-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.care-plan-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
}

.care-plan-left {
    flex-shrink: 0;
}

.care-plan-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.care-plan-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 0.6rem;
    white-space: nowrap;
}

.care-plan-period {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.care-plan-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 100%;
    line-height: 1.5;
}

.care-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-content: start;
}

.care-plan-features li {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding-left: 1.1rem;
    position: relative;
}

.care-plan-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.7rem;
    top: 1px;
}

.pricing-features-wrap {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(255, 255, 255, 0.05);
    /* Fade bottom edge so partial text doesn't hard-clip */
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 2rem), transparent 100%);
}

.pricing-features-wrap::-webkit-scrollbar {
    width: 4px;
}

.pricing-features-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.pricing-features-wrap::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

.pricing-card--featured .pricing-features-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.8rem;
}

.pricing-card--featured .pricing-features li::before {
    color: var(--accent-cyan);
}

/* Service Detail Modal (popup) */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.service-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.service-modal.active .service-modal-content {
    transform: scale(1) translateY(0);
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-modal-close:hover {
    color: var(--accent-cyan);
}

.service-modal-body .service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.service-modal-body .service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.service-modal-body .service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-modal-body .service-features li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.service-modal-body .service-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}


/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    min-height: 100vh;
    padding: 2.5rem 13rem 2.5rem 3rem;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
}

.portfolio .section-header {
    margin-bottom: 1.5rem;
}

.portfolio .section-label {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    font-weight: 700;
}

.portfolio .section-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.portfolio .section-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Grid ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ---- Card shell ---- */
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
    border-color: rgba(30, 171, 207, 0.4);
    box-shadow: 0 16px 48px rgba(30, 171, 207, 0.12);
    transform: translateY(-4px);
}

/* ---- Screenshot area ---- */
.portfolio-screenshot {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--primary-bg);
}

.portfolio-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-screenshot-img {
    transform: scale(1.03);
}

/* Placeholder shown until real screenshot is added */
.portfolio-screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 171, 207, 0.06), rgba(139, 92, 246, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-screenshot-placeholder--dark {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 45, 0.9));
}

.portfolio-placeholder-logo {
    width: 55%;
    max-width: 150px;
    opacity: 0.45;
    object-fit: contain;
    filter: grayscale(20%);
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-placeholder-logo {
    opacity: 0.65;
}

/* ---- Card body ---- */
.portfolio-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.portfolio-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.portfolio-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Status badges */
.portfolio-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.3rem;
}

.portfolio-badge--live {
    color: var(--accent-cyan);
    border: 1px solid rgba(30, 171, 207, 0.4);
    background: rgba(30, 171, 207, 0.06);
}

.portfolio-badge--soon {
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

/* Category tags */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.portfolio-tag {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
}

/* Link */
.portfolio-link {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(30, 171, 207, 0.75);
    transition: color 0.3s ease;
    margin-top: auto;
    padding-top: 0.25rem;
}

.portfolio-card:hover .portfolio-link {
    color: rgba(30, 171, 207, 1);
}

/* ==================== REVIEWS SECTION ==================== */
.reviews-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
    position: relative;
    z-index: 10;
}

.reviews {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 2rem;
    min-height: auto;
}

.reviews-page .footer {
    flex-shrink: 0;
}

.reviews-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.reviews-section-header .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.reviews-section-header .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.reviews-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Reviews Modal */
.reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.reviews-modal.active {
    opacity: 1;
    visibility: visible;
}

.reviews-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.reviews-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.reviews-modal.active .reviews-modal-content {
    transform: scale(1) translateY(0);
}

.reviews-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.reviews-modal-close:hover {
    color: var(--accent-cyan);
}

.reviews-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

#reviews-submit-modal .reviews-modal-content {
    max-width: 520px;
}

#reviews-see-modal .reviews-modal-content {
    max-width: 700px;
}

.reviews-form-container,
.reviews-list-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.reviews-form-container:hover,
.reviews-list-container:hover {
    border-color: rgba(30, 171, 207, 0.2);
}

.reviews-form-title,
.reviews-list-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.review-form .form-group {
    margin-bottom: 1.75rem;
}

.review-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

.rating-field .rating-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: var(--accent-cyan);
}

.star-btn:hover {
    transform: scale(1.15);
}

.char-count {
    position: absolute;
    right: 0;
    bottom: -1.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: rgba(30, 171, 207, 0.2);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
}

.review-card-stars {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.review-card-project {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.review-card-message {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.review-card-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.reviews-empty {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
}

@media (max-width: 900px) {
    .reviews-list {
        max-height: 60vh;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    min-height: 100vh;
    padding: 6rem 3rem 5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.82), rgba(10, 10, 15, 0.85)),
        url('../images/backgrounds/coding wallpaper.png') center / cover no-repeat;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    text-align: left;
}

.contact-content .monitor-btn {
    justify-self: center;
    margin-top: -14rem;
    margin-left: 6rem;
}

/* Monitor-shaped contact button */
.monitor-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.monitor-btn:hover {
    transform: scale(1.05);
}

.monitor-screen {
    width: 220px;
    height: 140px;
    background: linear-gradient(145deg, #1a1a24 0%, #0f0f15 100%);
    border: 8px solid #2a2a35;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 30px rgba(30, 171, 207, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.monitor-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.monitor-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.monitor-stand {
    width: 12px;
    height: 50px;
    background: linear-gradient(to bottom, #2a2a35, #1a1a24);
    border-radius: 0 0 4px 4px;
}

.monitor-base {
    width: 100px;
    height: 12px;
    background: linear-gradient(to bottom, #2a2a35, #15151a);
    border-radius: 4px;
    margin-top: -2px;
}

/* Contact Form Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.contact-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.contact-modal.active .contact-modal-content {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-modal-close:hover {
    color: var(--accent-cyan);
}

.contact-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

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

.social-link {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--accent-cyan);
}

.social-link:hover::after {
    width: 100%;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.2rem;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    width: 100%;
    padding: 1rem 2rem;
    background: #0a0a0a;
    border-top: none;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    /* Restore pointer-events and raise nav above the slide-in menu
       so the hamburger is always tappable */
    .main-nav,
    .main-nav .nav-container {
        pointer-events: auto;
    }

    /* The nav bar must sit ABOVE the menu panel (9000) so the hamburger
       (which lives inside .main-nav's stacking context) is always tappable */
    .main-nav {
        z-index: 9100;
    }

    /* Dim overlay behind the open menu (below nav bar, above page) */
    body.nav-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 8999;
    }

    /* Lock scroll when nav is open */
    body.nav-open {
        overflow: hidden;
    }

    /* Nav */
    .nav-container {
        justify-content: flex-end;
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        right: 0;
        left: auto;
        top: 0;
        width: 55vw;
        max-width: 200px;
        height: 100vh;
        background: #0a0a0f;
        display: none;           /* hidden until JS shows it */
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        z-index: 9000;
        overflow-y: auto;
        box-shadow: -6px 0 40px rgba(0, 0, 0, 0.7);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Branding strip at the top of the slide-in menu */
    .nav-menu::before {
        content: 'J² DIGITAL';
        display: block;
        width: 100%;
        padding: 1.25rem 1.5rem 1rem;
        font-family: 'Raleway', sans-serif;
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 0.4em;
        color: var(--accent-cyan);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* JS drives show/hide and the slide animation via inline styles.
       .active is kept only so other CSS can scope to the open state. */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.65rem 1.5rem;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
        position: relative;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, #00d4ff, #a855f7);
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: #ffffff;
        padding-left: 2rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-menu a:hover::before,
    .nav-menu a:active::before {
        transform: scaleY(1);
    }

    /* Override desktop hover effect (color: transparent) on mobile */
    .nav-menu a:hover {
        color: #ffffff;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero logo — scale down and constrain width */
    .hero-logo video {
        height: 130px;
        max-width: 130px;
    }

    /* About — single column, remove excessive top padding */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding-top: 2rem;
    }

    /* Hide floating cards — they use absolute positioning inside a 400px box
       and look broken in single-column layout */
    .hero-visual {
        display: none;
    }

    /* Services — align content from top when stacked */
    .services {
        padding: 5rem 3rem 4rem;
        align-items: flex-start;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .care-plan-card {
        max-width: 400px;
        padding: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .care-plan-inner {
        flex-direction: column;
        gap: 1.25rem;
    }

    .care-plan-tagline {
        max-width: 100%;
    }

    .care-plan-features {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        height: auto;
        min-height: 380px;
    }

    .pricing-features-wrap {
        max-height: 240px;
    }

    /* Portfolio */
    .portfolio {
        padding: 6rem 3rem;
        align-items: flex-start;
    }

    .portfolio .section-container {
        max-width: none;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact — fix monitor button: reset the -14rem / 6rem desktop offsets */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        max-width: 100%;
    }

    .contact-content .monitor-btn {
        margin-top: 2rem;
        margin-left: 0;
        justify-self: start;
    }

    .monitor-screen {
        width: 180px;
        height: 115px;
    }

    .monitor-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Reset forced full-viewport heights so sections size to their content */
    .hero, .about, .services, .portfolio, .reviews, .contact {
        min-height: auto;
    }

    /* Nav is transparent on mobile so no clearance needed —
       sections have enough padding-top to sit below the hamburger */
    .hero, .about, .services, .portfolio, .reviews, .contact {
        scroll-margin-top: 0;
    }

    /* Hero still needs enough height to look balanced */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 4.5rem 1.5rem 2rem;
    }

    .hero-logo {
        top: 12px;
        left: 12px;
    }

    .hero-logo video {
        height: 90px;
        max-width: 90px;
    }

    .hero-label {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .scroll-prompt {
        margin-bottom: 0.5rem;
    }

    .scroll-line {
        height: 24px;
        margin-top: 0.4rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    /* About — push content below the fixed nav bar */
    .about {
        padding: 7rem 1.25rem 2rem;
        min-height: 100vh;
        min-height: 100svh;
    }

    .about-content {
        padding-top: 0;
    }

    .about-grid {
        gap: 0;
    }

    /* Thin cyan accent line to the left of the label — clean professional look */
    .about .section-label {
        font-size: 0.68rem;
        letter-spacing: 0.22em;
        margin-bottom: 0.6rem;
        padding-left: 0.75rem;
        border-left: 2px solid var(--accent-cyan);
    }

    .about .section-title {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 0.6rem;
    }

    /* Show only the first paragraph fully; second paragraph smaller & muted */
    .about .about-text {
        font-size: 0.85rem;
        line-height: 1.65;
        margin-bottom: 0.6rem;
        color: rgba(255, 255, 255, 0.75);
    }

    .about .about-text + .about-text {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 0.5rem;
    }

    /* Cards row — compact strip above the text */
    .about-grid .hero-visual {
        display: flex;
        order: -1;
        min-height: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
        justify-content: flex-start;
        align-items: center;
        padding: 0 0 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        margin-bottom: 1.25rem;
    }

    .hero-visual .Floating-card {
        position: static;
        flex: none;
        justify-content: center;
        padding: 0.4rem 0.6rem;
        animation: float 3s ease-in-out infinite;
        backdrop-filter: blur(8px);
    }

    .hero-visual .Floating-card .card-icon {
        font-size: 0.85rem;
    }

    .hero-visual .Floating-card p {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    /* Stats in a 3-column row on mobile */
    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .about-stats .stat-item {
        text-align: center;
        padding: 0.6rem 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }

    .about-stats .stat-number {
        font-size: 1.2rem;
    }

    .about-stats .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }

    /* Services */
    .services {
        padding: 3rem 0 2rem;
    }

    /* Reset the desktop flex-row layout back to stacked for mobile */
    .services .section-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .services .section-header {
        align-self: auto;
        padding: 0 1.25rem 0;
    }

    .services .section-header .section-label {
        writing-mode: horizontal-tb;
        transform: none;
        border-left: none;
        padding-left: 0;
        font-size: 0.62rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.5);
    }

    .services-body {
        width: 100%;
    }

    /* Carousel: plain block container, one card visible at a time */
    .pricing-grid {
        display: block;
        width: 100%;
        padding: 0 1.25rem 1.25rem;
        box-sizing: border-box;
    }

    /* All cards hidden by default — only .carousel-active shows */
    .pricing-card {
        display: none;
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 1.5rem;
        flex-direction: column;
        box-sizing: border-box;
    }

    .pricing-card.carousel-active {
        display: flex;
        animation: cardSlideIn 0.28s ease;
    }

    @keyframes cardSlideIn {
        from { opacity: 0; transform: translateX(16px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    .pricing-title {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .pricing-price {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .pricing-tagline {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .pricing-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .pricing-features-wrap {
        max-height: 160px;
        overflow-y: auto;
        flex: 1;
    }

    .pricing-features li {
        font-size: 0.72rem;
        padding: 0.3rem 0 0.3rem 1.5rem;
    }

    .pricing-timeline {
        font-size: 0.7rem;
        margin-top: 0.75rem;
        padding-top: 0.6rem;
    }

    /* Arrow nav — sits between heading and card, always on screen */
    .pricing-carousel-nav {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 1.25rem 0.75rem;
    }

    .pricing-prev,
    .pricing-next {
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 1.5rem;
        line-height: 1;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        appearance: none;
        -webkit-appearance: none;
    }

    .pricing-prev:active,
    .pricing-next:active {
        border-color: var(--accent-cyan);
        color: var(--accent-cyan);
    }

    .pricing-prev:disabled,
    .pricing-next:disabled {
        opacity: 0.25;
    }

    /* Plan name — grows to fill space between the two buttons */
    .pricing-nav-name {
        flex: 1;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pricing-counter {
        font-family: 'Raleway', sans-serif;
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    /* Care plan — full-width stacked layout on mobile */
    .care-plan-card {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        flex-shrink: unset;
        margin: 0 1.25rem;
        padding: 1.25rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .care-plan-label {
        font-size: 0.58rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.85rem;
    }

    /* Stack inner content vertically */
    .care-plan-inner {
        flex-direction: column !important;
        gap: 1rem;
        align-items: flex-start;
    }

    .care-plan-left {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        padding-right: 0;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgba(0, 245, 212, 0.15);
        display: flex;
        align-items: baseline;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .care-plan-title {
        font-size: 1.1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .care-plan-price {
        font-size: 1.6rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .care-plan-period {
        font-size: 0.8rem;
    }

    /* Tagline hidden on mobile — saves space */
    .care-plan-tagline {
        display: none;
    }

    /* Features as pill tags — wrapping 2 per row */
    .care-plan-features {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
        width: 100%;
    }

    .care-plan-features li {
        font-size: 0.68rem;
        padding: 0.35rem 0.6rem 0.35rem 1.1rem;
        background: rgba(0, 245, 212, 0.05);
        border: 1px solid rgba(0, 245, 212, 0.12);
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .care-plan-features li::before {
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.6rem;
    }

    /* Portfolio */
    .portfolio {
        padding: 3rem 1.25rem 2.5rem;
        align-items: flex-start;
        min-height: unset;
    }

    .portfolio .section-header {
        margin-bottom: 1.5rem;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Full-width stacked cards on mobile */
    .portfolio-card {
        transform: none !important;
    }

    .portfolio-screenshot {
        aspect-ratio: 16 / 9;
    }

    .portfolio-name {
        font-size: 1.2rem;
    }

    .portfolio-card-body {
        padding: 1rem;
        gap: 0.5rem;
    }

    /* Contact */
    .contact {
        padding: 3rem 1.25rem 2rem;
        min-height: 100svh;
        display: flex;
        align-items: center;
    }

    .contact .section-container {
        width: 100%;
    }

    .contact .section-label {
        font-size: 0.62rem;
        margin-bottom: 0.6rem;
    }

    /* Compact heading */
    .contact .section-title {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .contact-text {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        max-width: 100%;
        color: var(--text-secondary);
    }

    .contact-details {
        margin-bottom: 1.25rem;
    }

    .contact-item {
        gap: 0.2rem;
    }

    .contact-label {
        font-size: 0.58rem;
        letter-spacing: 0.15em;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.82rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.85rem;
    }

    /* Scale down the monitor — hide stand/base, shrink screen */
    .monitor-stand,
    .monitor-base {
        display: none;
    }

    .monitor-screen {
        width: 160px;
        height: 90px;
        border-width: 6px;
        border-radius: 8px;
    }

    .monitor-text {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    /* Centre the monitor below the text */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content .monitor-btn {
        margin-top: 0;
        margin-left: 0;
        justify-self: center;
        align-self: center;
    }

    /* Reviews page — full viewport like other sections */
    .reviews-page {
        min-height: 100vh;
        min-height: 100svh;
    }

    .reviews {
        padding: 4rem 1.25rem 3rem;
    }

    .reviews-section-header {
        margin-bottom: 1.5rem;
    }

    /* Modals — reduce padding on small screens */
    .reviews-modal,
    .contact-modal,
    .service-modal {
        padding: 0.75rem;
    }

    .reviews-modal-content,
    .contact-modal-content,
    .service-modal-content {
        padding: 2rem 1.25rem;
        max-height: 95vh;
    }

    .reviews-form-container,
    .reviews-list-container {
        padding: 1.5rem 1.25rem;
    }

    .contact-form {
        padding: 1.5rem 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 1rem 1.25rem;
    }
}

.typing-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cursor {
    color: var(--accent-purple);
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 40% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
/* Floating cards - right of Who We Are section */
.hero-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Floating-card {
    position: absolute;
    /* Glass / mirror effect */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.Floating-card .card-icon {
    font-size: 1.25rem;
    color: white;
}

.Floating-card p {
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    margin: 0;
}

.Floating-card.card-1 {
    top: 8%;
    right: 45%;
    animation-delay: 0s;
}

.Floating-card.card-2 {
    top: 42%;
    right: 35%;
    animation-delay: 1s;
}

.Floating-card.card-3 {
    bottom: 15%;
    right: 45%;
    animation-delay: 2s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==================== LARGE DESKTOP SCALING (1600px+) ==================== */
@media (min-width: 1600px) {
    .section-container {
        max-width: min(1500px, 88vw);
    }
    .nav-container {
        max-width: min(1500px, 88vw);
    }
    .footer-container {
        max-width: min(1500px, 88vw);
    }
    /* Services: reduce empty space, let grid expand */
    .services {
        padding: 2rem 10rem 2.5rem 2rem;
    }
    .services .section-container {
        gap: 1.5rem;
    }
    .services .pricing-grid {
        max-width: min(1200px, 75vw);
    }
}

@media (min-width: 1920px) {
    .services {
        padding: 2rem 10rem 2.5rem 2rem;
    }
    .services .section-container {
        gap: 1.25rem;
    }
    .services .pricing-grid {
        max-width: min(1400px, 80vw);
    }
}

/* ==================== SMALL PHONES (480px and below) ==================== */
@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 1rem 1.5rem;
    }
    .hero-logo video {
        height: 70px;
        max-width: 70px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-button {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.8rem;
    }
    .about, .services, .portfolio, .contact {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .reviews-page .footer,
    .footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .portfolio .section-label {
        font-size: 1.25rem;
    }
    .reviews-section-header .section-title {
        font-size: 1.75rem;
    }
}

/* ==================== TABLET LANDSCAPE (600px–768px) ==================== */
@media (min-width: 600px) and (max-width: 768px) {
    .nav-menu {
        max-width: 240px;
    }
}