/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - HSL (Curated & Harmonious) */
    --color-bg: 222 47% 11%;          /* Sleek Deep Slate Blue/Dark */
    --color-bg-alt: 222 47% 7%;      /* Even Deeper Dark */
    --color-surface: 217 33% 17%;     /* Glassmorphism Surface Base */
    --color-border: 217 32% 25%;      /* Subtle Borders */
    
    --color-text-main: 210 40% 98%;   /* Soft Off-White */
    --color-text-muted: 215 20% 75%;  /* Calm Grey */
    
    /* Accents */
    --color-psych: 199 89% 48%;       /* Bright Sky Blue (Psychology / CBT) */
    --color-psych-rgb: 2, 132, 199;
    --color-nutri: 161 94% 30%;       /* Emerald Green (Nutrition / Health) */
    --color-nutri-rgb: 5, 150, 105;
    --color-tech: 262 83% 58%;        /* Indigo/Violet (Technology) */
    --color-tech-rgb: 99, 102, 241;
    --color-accent-warm: 38 92% 50%;  /* Warm Amber/Gold (Trust / Alert) */
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout & Utilities */
    --container-max: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(2, 6, 23, 0.7);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: hsl(var(--color-bg));
    color: hsl(var(--color-text-main));
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

a {
    color: hsl(var(--color-psych));
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Badge Utility */
.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(var(--color-psych-rgb), 0.1);
    border: 1px solid rgba(var(--color-psych-rgb), 0.3);
    color: hsl(var(--color-psych));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: hsl(var(--color-accent-warm));
}

.badge-tech {
    background: rgba(var(--color-tech-rgb), 0.1);
    border-color: rgba(var(--color-tech-rgb), 0.3);
    color: hsl(var(--color-tech));
}

/* ==========================================================================
   SKELETON LOADER & TIMEOUT (Doherty Threshold)
   ========================================================================== */
.skeleton-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: hsl(var(--color-bg));
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(var(--color-psych-rgb), 0.1);
    border-top: 4px solid hsl(var(--color-psych));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 500;
    color: hsl(var(--color-text-muted));
    letter-spacing: 0.05em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   HEADER NAVIGATION (Glassmorphism & Fitts's Law)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(var(--color-bg), 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: hsl(var(--color-text-muted));
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation Links (Fitts's Law targets) */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--color-text-muted));
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    /* Large enough tap target for Fitts's Law */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.contact-btn-nav {
    background: linear-gradient(135deg, hsl(var(--color-psych)) 0%, rgba(var(--color-tech-rgb), 1) 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(var(--color-psych-rgb), 0.3);
}

.contact-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-psych-rgb), 0.4);
}

/* Mobile Menu Toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Text Gradients (Aesthetic-Usability Effect) */
.text-gradient-psych {
    background: linear-gradient(to right, hsl(var(--color-psych)), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-nutri {
    background: linear-gradient(to right, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-tech {
    background: linear-gradient(to right, #6366f1, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: hsl(var(--color-text-muted));
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-description strong {
    color: #ffffff;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 48px; /* Fitts's Law minimum */
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--color-psych)) 0%, rgba(var(--color-tech-rgb), 1) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(var(--color-psych-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--color-psych-rgb), 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Portrait Image styling (Weinschenk face direction law) */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-backdrop {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-psych-rgb), 0.2) 0%, rgba(var(--color-nutri-rgb), 0.1) 70%, transparent 100%);
    filter: blur(40px);
    z-index: 1;
}

.portrait-container {
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    aspect-ratio: 4 / 5;
    background-color: hsl(var(--color-surface));
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition-smooth);
}

.hero-portrait-img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   SECTION HEADER COMMON
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.1rem;
    color: hsl(var(--color-text-muted));
}

/* ==========================================================================
   ABOUT / TRUST INTROS SECTION
   ========================================================================== */
.about-section {
    padding: 6rem 0;
    background-color: hsl(var(--color-bg-alt));
}

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

.about-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: var(--shadow-premium);
}

.about-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
}

.psych-icon-bg {
    background: rgba(var(--color-psych-rgb), 0.15);
    color: hsl(var(--color-psych));
}

.nutrition-icon-bg {
    background: rgba(var(--color-nutri-rgb), 0.15);
    color: #10b981;
}

.tech-icon-bg {
    background: rgba(var(--color-tech-rgb), 0.15);
    color: #818cf8;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: hsl(var(--color-text-muted));
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   SYNERGY SECTION (Mind & Body visual intersection)
   ========================================================================== */
.synergy-section {
    padding: 6rem 0;
}

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

.synergy-content-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.synergy-text {
    font-size: 1.05rem;
    color: hsl(var(--color-text-muted));
    margin-bottom: 1.5rem;
}

.synergy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.synergy-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: hsl(var(--color-text-muted));
}

.synergy-list li strong {
    color: #ffffff;
}

.list-bullet {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--color-psych-rgb), 0.2);
    border: 2px solid hsl(var(--color-psych));
    margin-top: 3px;
}

/* Visual intersection circles representing CBT + Nutrition + Tech */
.synergy-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 400px;
    margin: 0 auto;
}

.circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.circle-psych {
    top: 20px;
    left: 40px;
    background: rgba(var(--color-psych-rgb), 0.25);
    border: 2px solid rgba(var(--color-psych-rgb), 0.5);
    box-shadow: 0 0 30px rgba(var(--color-psych-rgb), 0.2);
}

.circle-nutrition {
    top: 20px;
    right: 40px;
    background: rgba(var(--color-nutri-rgb), 0.25);
    border: 2px solid rgba(var(--color-nutri-rgb), 0.5);
    box-shadow: 0 0 30px rgba(var(--color-nutri-rgb), 0.2);
}

.circle-tech {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--color-tech-rgb), 0.25);
    border: 2px solid rgba(var(--color-tech-rgb), 0.5);
    box-shadow: 0 0 30px rgba(var(--color-tech-rgb), 0.2);
}

.center-core {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, hsl(var(--color-accent-warm)) 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
    z-index: 10;
    border: 2px solid #ffffff;
}

.synergy-visual:hover .circle-psych {
    transform: translate(-10px, -5px);
}
.synergy-visual:hover .circle-nutrition {
    transform: translate(10px, -5px);
}
.synergy-visual:hover .circle-tech {
    transform: translate(-50%, 10px);
}

/* ==========================================================================
   SERVICES / CLINICAL SPECIALTIES
   ========================================================================== */
.services-section {
    padding: 6rem 0;
    background-color: hsl(var(--color-bg-alt));
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.service-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--color-psych-rgb), 0.3);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: var(--shadow-premium);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(var(--color-psych-rgb), 0.4);
    padding-bottom: 2px;
}

.service-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
}

.service-card-body p {
    color: hsl(var(--color-text-muted));
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.service-tags li {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--color-text-main));
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

/* ==========================================================================
   IT ENGINEERING & APPLICATIONS SECTION
   ========================================================================== */
.apps-section {
    padding: 6rem 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.apps-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.apps-desc {
    font-size: 1.1rem;
    color: hsl(var(--color-text-muted));
    margin-bottom: 2.5rem;
}

.app-showcase-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.app-showcase-item:hover {
    border-color: rgba(var(--color-tech-rgb), 0.2);
    background: rgba(30, 41, 59, 0.4);
}

.app-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: rgba(var(--color-tech-rgb), 0.15);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon svg {
    width: 22px;
    height: 22px;
}

.app-showcase-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.app-showcase-item p {
    color: hsl(var(--color-text-muted));
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CSS Phone Mockup */
.apps-visual-content {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 290px;
    height: 580px;
    background: #0f172a;
    border: 8px solid #334155;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-header {
    height: 35px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090d16;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.phone-notch {
    width: 110px;
    height: 16px;
    background: #334155;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.app-screen-content {
    flex: 1;
    background: #0b0f19;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.app-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title-bar h5 {
    font-size: 1rem;
    color: #ffffff;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.chart-container {
    background: #1e293b;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-chart {
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-bottom: 1px solid #334155;
    padding-bottom: 5px;
}

.mock-chart-bar {
    width: 40px;
    background: hsl(var(--color-psych));
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(var(--color-psych-rgb), 0.2);
}

.font-bar-1 {
    background: linear-gradient(to top, rgba(var(--color-tech-rgb), 1), #818cf8);
    box-shadow: 0 0 10px rgba(var(--color-tech-rgb), 0.3);
}

.font-bar-2 {
    background: linear-gradient(to top, #10b981, #34d399);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.log-alert {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.alert-pulse {
    width: 6px;
    height: 6px;
    background-color: hsl(var(--color-accent-warm));
    border-radius: 50%;
    margin-top: 4px;
    animation: pulse 1.5s infinite;
}

.log-alert p {
    font-size: 0.75rem;
    color: #fca5a5;
    line-height: 1.4;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.mock-app-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, hsl(var(--color-psych)) 0%, rgba(var(--color-tech-rgb), 1) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: auto;
}

/* ==========================================================================
   BIOGRAPHY SECTION
   ========================================================================== */
.bio-section {
    padding: 6rem 0;
    background-color: hsl(var(--color-bg-alt));
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.bio-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bio-paragraph {
    font-size: 1.05rem;
    color: hsl(var(--color-text-muted));
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bio-paragraph strong {
    color: #ffffff;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
    width: 100%;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: hsl(var(--color-text-main));
}

.cred-icon {
    color: #10b981;
    font-weight: bold;
}

.bio-quotes {
    display: flex;
    justify-content: center;
}

.quote-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: var(--shadow-premium);
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: rgba(var(--color-psych-rgb), 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: hsl(var(--color-text-main));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.quote-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: hsl(var(--color-psych));
}

/* ==========================================================================
   CONTACT SECTION (Postel's Law applied)
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

.contact-info-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-intro-text {
    color: hsl(var(--color-text-muted));
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--color-psych-rgb), 0.1);
    border: 1px solid rgba(var(--color-psych-rgb), 0.2);
    color: hsl(var(--color-psych));
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 22px;
    height: 22px;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

/* Form Styles */
.contact-form-panel {
    position: relative;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--color-text-muted));
}

.required {
    color: #f87171;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: hsl(var(--color-psych));
    box-shadow: 0 0 10px rgba(var(--color-psych-rgb), 0.15);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2394a3b8' stroke-width='1.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

/* Form Validation styling */
.error-msg {
    display: none;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.2rem;
}

input.invalid,
textarea.invalid {
    border-color: #f87171;
}

input.invalid + .error-msg,
textarea.invalid + .error-msg {
    display: block;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Success Message Box */
.form-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-md);
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #10b981;
    color: #ffffff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.form-success-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #10b981;
}

.form-success-box p {
    color: hsl(var(--color-text-muted));
}

/* Error Message Box */
.form-error-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-md);
    animation: fadeIn 0.5s ease forwards;
}

.error-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.form-error-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ef4444;
}

.form-error-box p {
    color: hsl(var(--color-text-muted));
    margin-bottom: 1.5rem;
}

.form-error-box .btn-retry {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: hsl(var(--color-bg-alt));
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: hsl(var(--color-text-muted));
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: hsl(var(--color-text-muted));
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-legal p {
    color: hsl(var(--color-text-muted));
    font-size: 0.85rem;
}

.accreditations {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .synergy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Navigation toggle menu mobile */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: hsl(var(--color-bg));
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        transition: var(--transition-smooth);
        padding: 3rem 2rem;
        align-items: flex-start;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .nav-link {
        width: 100%;
        font-size: 1.15rem;
    }
    
    .contact-btn-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Animation mobile menu toggled */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
