:root {
    --primary: #1e81b0;
    --primary-dark: #155d82;
    --secondary: #4caf50;
    --secondary-dark: #388e3c;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2a9df4 100%);
    --gradient-sec: linear-gradient(135deg, var(--secondary) 0%, #66bb6a 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(30, 129, 176, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
}

.text-white {
    color: var(--white) !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-gray {
    color: var(--gray);
}

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

.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 129, 176, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 129, 176, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--dark);
    border-radius: 30px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* Header & Top Bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.scrolled {
    transform: translateY(-28px);
}

.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 0;
    font-size: 0.85rem;
    height: 28px;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled .navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,129,176,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--secondary-dark);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px 120px 30px 120px;
    box-shadow: 0 20px 40px rgba(30, 129, 176, 0.25);
    position: relative;
    z-index: 1;
    border: 8px solid var(--white);
}

/* Sections */
.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    padding-right: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 420px; /* Allow height for the image to break out */
}

.circle-bg {
    position: absolute;
    bottom: 20px;
    left: calc(50% - 15px); /* adjusting for padding-right */
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 6px solid var(--secondary);
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: transparent;
}

.founder-image-bottom {
    position: absolute;
    bottom: -6px; /* offset for border */
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.5s ease;
    transform-origin: bottom center;
}

.founder-image-top {
    position: absolute;
    bottom: 20px; /* Aligns exactly with founder-image-bottom which is at 20px absolute */
    left: calc(50% - 15px);
    transform: translateX(-50%);
    width: 350px;
    height: auto;
    object-fit: contain;
    z-index: 2;
    clip-path: inset(0 0 50% 0); /* only show top half */
    transition: transform 0.5s ease;
    transform-origin: bottom center;
}

.about-image:hover .founder-image-bottom,
.about-image:hover .founder-image-top {
    transform: translateX(-50%) scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.experience-badge .number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.about-content h3 span {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 500;
}

.about-content .subtitle {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.features-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Treatments */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .treatments-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
}

.treatment-card {
    height: 330px;
    perspective: 1000px;
    position: relative;
    cursor: pointer;
    min-width: 220px;
    scroll-snap-align: center;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.treatment-card:hover .flip-card-inner {
    transform: rotateY(180deg) translateY(-15px);
    box-shadow: 0 20px 40px rgba(30, 129, 176, 0.2);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flip-card-front h3 {
    font-size: 1.1rem !important;
    padding: 15px 10px 2px !important;
    text-align: center;
    color: var(--primary) !important;
    margin: 0;
}

.view-details-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: normal;
    margin: 2px 0 10px 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.treatment-card:hover .view-details-hint {
    opacity: 1;
}

.treatment-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.flip-card-back {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Custom Scrollbar for Webkit */
.flip-card-back::-webkit-scrollbar {
    width: 4px;
}
.flip-card-back::-webkit-scrollbar-track {
    background: transparent;
}
.flip-card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.flip-card-back::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.flip-card-back .small-title {
    color: var(--white) !important;
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    text-align: center;
}

.flip-card-back ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flip-card-back li {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 20px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 0 !important;
}

.flip-card-back li:last-child {
    border-bottom: none;
}

.flip-card-back li::before {
    content: '✓' !important;
    position: absolute;
    left: 0;
    color: var(--secondary) !important;
    font-weight: bold;
}

.treatment-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(30, 129, 176, 0.15);
}

.treatment-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-img {
    transform: scale(1.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 129, 176, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.treatment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
    padding: 0 30px;
}

.condition-list {
    list-style: none;
}

.condition-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray);
    padding-right: 30px;
}

.condition-list {
    padding-left: 30px;
    list-style: none;
}

.condition-list li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Reviews */
.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.google-rating .stars {
    color: #FFB400;
    font-size: 1.2rem;
    margin: 10px 0;
}

.reviews-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.reviews-carousel {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scrollReviews 40s linear infinite;
}

.reviews-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.reviewer-info .stars {
    color: #FFB400;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 0;
}

.google-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #4285F4;
    font-size: 1.5rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.info-content h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.info-content p {
    color: rgba(255,255,255,0.7);
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.appointment-form h3 {
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 129, 176, 0.1);
}

.disclaimer {
    color: var(--gray);
    font-style: italic;
}

/* Footer */
.footer {
    background: #111;
    padding: 30px 0;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-container, .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper { height: 400px; display: none; }
    .hero { padding-top: 100px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-btns { flex-direction: column; }
    .hero-stats { justify-content: center; }
    .about-image { padding-right: 0; margin-bottom: 40px; }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--white);
    opacity: 1;
}

.location-btn {
    background-color: #EA4335;
}
.location-btn:hover {
    background-color: #d33c2e;
}

.call-btn {
    background-color: var(--primary);
}
.call-btn:hover {
    background-color: #0b69b3;
}

.whatsapp-btn {
    background-color: #25D366;
}
.whatsapp-btn:hover {
    background-color: #20bd5a;
}

/* Nerve System Scroll Tracker */
.nerve-tracker {
    position: fixed;
    top: 80px;
    left: 10px;
    width: 80px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}

.nerve-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@media (min-width: 1200px) {
    .nerve-tracker {
        left: calc(50% - 580px); /* align exactly with logo in container */
    }
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    opacity: 0.8;
}
.cursor-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
