/* =========================================
   KARTHICK SCANNING CENTER - STYLES
========================================= */

:root {
    /* Color Palette */
    --primary: #004b8d; /* Trust Blue */
    --primary-light: #4dabf7;
    --primary-dark: #003666;
    --secondary: #00b4d8; /* Medical Teal */
    --secondary-light: #90e0ef;
    --accent: #f4a261; /* Warm Accent */
    --accent-hover: #e76f51;
    
    /* Neutrals */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --text-main: #2b2b2b;
    --text-muted: #666666;
    --border: #dee2e6;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0, 75, 141, 0.1);
    --shadow-accent: 0 10px 20px rgba(244, 162, 97, 0.25);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASE STYLES
========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Utilities */
.text-highlight { color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: #fff; }
.text-gray { color: #adb5bd; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 75, 141, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-white:hover {
    background: var(--bg-white);
    color: var(--primary);
}

/* =========================================
   NAVIGATION BAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--secondary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,180,216,0.1) 0%, rgba(0,75,141,0.05) 100%);
    border-radius: 50% 0 0 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 550px;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 600px;
}

.highlight-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.highlight-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(244, 162, 97, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.highlight-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.highlight-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   SERVICES SECTION
========================================= */
.section-subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--bg-white);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-text {
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover {
    color: var(--secondary);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.w-100 { width: 100%; }
.object-cover { object-fit: cover; }
.border-radius-lg { border-radius: 20px; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-white);
}

.exp-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list i {
    font-size: 1.8rem;
    margin-top: 5px;
}

.features-list h5 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.features-list p {
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================
   CALL TO ACTION
========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    color: var(--bg-white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stars {
    color: #ffd166;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.bg-teal { background: var(--secondary); }
.bg-accent { background: var(--accent); }

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.reviewer-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 75, 141, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.form-status {
    height: 20px;
    font-weight: 500;
}

.form-status.success { color: #2a9d8f; }
.form-status.error { color: #e76f51; }

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: #0b1c2c;
    color: #adb5bd;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: var(--bg-white);
    outline: none;
    min-width: 0;
}

.newsletter-form button {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--secondary);
}

.footer-bottom {
    background-color: #081521;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================
   ANIMATIONS & REVEAL EFFECTS
========================================= */
/* Setup defaults for reveal logic triggered by JS */
.reveal, .fade-in-up, .fade-in {
    opacity: 0;
}

.fade-in-up {
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    transition: opacity 1s ease;
}

/* Active states toggled by JS IntersectionObserver */
.reveal.active, .fade-in-up.active, .fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .about-container, .contact-container {
        gap: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.4s ease-in-out;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-actions .btn {
        display: none; /* Hide button on very small screens in header */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        padding-right: 0;
    }

    .hero-bg-overlay {
        border-radius: 0 0 50% 50%;
        width: 100%;
        height: 60%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .highlight-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%) !important;
        animation: none; /* Disable float animation to prevent overflow */
        width: 90%;
    }

    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        right: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}
