/* =====================================================
   I.SURGI MART - Professional Ophthalmic Solutions
   Minimalistic & Elegant Design System
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Medical/Professional Palette */
    --primary: #0A4D68;
    --primary-light: #088395;
    --primary-dark: #05BFDB;
    --accent: #00FFCA;
    
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6b6b7b;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-soft: #f0f4f6;
    
    --border-light: rgba(10, 77, 104, 0.1);
    --border-medium: rgba(10, 77, 104, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 77, 104, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 77, 104, 0.08);
    --shadow-lg: 0 8px 40px rgba(10, 77, 104, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 77, 104, 0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #05BFDB;
    --primary-light: #00FFCA;
    --primary-dark: #088395;
    
    --text-dark: #f0f4f6;
    --text-medium: #c5c9cd;
    --text-light: #9ca3af;
    
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-soft: #334155;
    
    --border-light: rgba(5, 191, 219, 0.15);
    --border-medium: rgba(5, 191, 219, 0.25);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary) !important;
    color: var(--bg-white) !important;
    padding: 12px 24px !important;
    border-radius: 8px;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    margin-left: 16px;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.theme-toggle:hover svg {
    stroke: var(--bg-white);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    transition: all var(--transition-medium);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-light) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-light) 50%);
}

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

.hero-content {
    max-width: 580px;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(8, 131, 149, 0.15);
    z-index: -1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eye-graphic {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.eye-svg {
    width: 100%;
    height: auto;
}

.eye-outline {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawEye 2s ease forwards 0.5s;
}

.iris {
    opacity: 0;
    transform-origin: center;
    animation: fadeIn 1s ease forwards 1.5s;
}

.pupil {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 2s;
}

.reflection {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 2.3s;
}

@keyframes drawEye {
    to { stroke-dashoffset: 0; }
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    margin-bottom: 60px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

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

.about-main {
    padding-right: 40px;
}

.about-lead {
    font-size: 1.35rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-main p {
    color: var(--text-medium);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mission-card,
.vision-card {
    padding: 36px;
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.mission-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
}

.mission-card h3 {
    color: #ffffff;
}

.mission-card p {
    color: rgba(255, 255, 255, 0.9);
}

.vision-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.mission-card .card-icon svg {
    stroke: rgba(255, 255, 255, 0.9);
}

.vision-card .card-icon svg {
    stroke: var(--primary);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

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

.product-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-card > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.product-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

/* =====================================================
   VALUES SECTION
   ===================================================== */
.values {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.value-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.value-item:hover {
    background: var(--bg-soft);
}

.value-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-soft);
    line-height: 1;
    transition: color var(--transition-medium);
}

.value-item:hover .value-number {
    color: var(--primary);
}

.value-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.value-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--bg-white);
}

.contact-details h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-details a,
.contact-details p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-details a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-cta-wrapper {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-cta-content {
    max-width: 400px;
}

.contact-cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-cta-content > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
    gap: 10px;
}

.btn-lg svg {
    flex-shrink: 0;
}

.contact-cta-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-cta-note a {
    color: var(--primary);
    font-weight: 500;
}

.contact-cta-note a:hover {
    text-decoration: underline;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

[data-theme="dark"] .footer {
    background: #020617;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo span {
    color: var(--bg-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .value-item {
        padding: 24px;
    }
}

@media (max-width: 900px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 40px;
    }
    
    .eye-graphic {
        max-width: 250px;
    }
    
    .hero-bg {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 80%);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-main {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-medium);
    }
    
    .nav-links.active {
        right: 0;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-light);
    }
    
    .nav-links a::after {
        display: none;
    }

    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 70px;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .value-item {
        flex-direction: column;
        gap: 16px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Intersection Observer Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.2s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.4s; }

.value-item:nth-child(1) { transition-delay: 0.1s; }
.value-item:nth-child(2) { transition-delay: 0.2s; }
.value-item:nth-child(3) { transition-delay: 0.3s; }
