:root {
    --primary: #C00A27; /* Vinmec Red */
    --primary-dark: #9e0820;
    --secondary: #002D62; /* Navy Blue */
    --secondary-dark: #001a3b;
    --light: #F4F7F6;
    --dark: #2C3E50;
    --gray: #6C7A89;
    --white: #FFFFFF;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 45, 98, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
}

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

.bg-navy {
    background-color: var(--secondary);
    color: var(--white);
}

.relative {
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.bg-navy .section-header h2 {
    color: var(--white);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), #ff4d6d);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 10, 39, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 10, 39, 0.5);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo-vin {
    color: var(--primary);
}

.logo-mec {
    color: var(--secondary);
    margin-right: 10px;
}

.logo-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    border-left: 1px solid var(--gray);
    padding-left: 10px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.desktop-nav a:hover {
    color: var(--primary);
}

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

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,45,98,0.9) 0%, rgba(0,45,98,0.6) 50%, rgba(0,45,98,0.1) 100%);
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--primary);
}

.slogan {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(192, 10, 39, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.about-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--secondary);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.service-card:hover::before {
    width: 100%;
    background: var(--secondary);
    z-index: 0;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    z-index: 1;
}

.service-content {
    z-index: 1;
}

.service-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.service-content p {
    color: var(--gray);
    transition: var(--transition);
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .service-icon {
    color: var(--white);
}

/* Procedure Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(0, 45, 98, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--white);
    border: 4px solid var(--secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.doctor-img {
    height: 350px;
    overflow: hidden;
    background-color: var(--light);
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.doctor-info {
    padding: 25px;
}

.doctor-info h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.doctor-title {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.doctor-expertise {
    color: var(--gray);
    font-size: 0.95rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 5px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.news-more {
    display: inline-block;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.news-more:hover {
    color: var(--primary);
}

.news-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.news-more:hover i {
    transform: translateX(5px);
}

/* Stories */
.stories-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

.stories-carousel::-webkit-scrollbar {
    height: 8px;
}

.stories-carousel::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.stories-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.story-card {
    min-width: 800px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    overflow: hidden;
}

.story-img {
    width: 40%;
    position: relative;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(192, 10, 39, 0.2);
    margin-bottom: 15px;
}

.story-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.story-author {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.story-author strong {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
}

.story-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
}

.contact-details span {
    opacity: 0.8;
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--dark);
    box-shadow: var(--shadow-lg);
}

.booking-form h3 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 10, 39, 0.1);
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    text-align: center;
}

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .story-card {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .btn-booking {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-grid, .services-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-icon {
        left: 11px !important;
        right: auto !important;
    }
    
    .story-card {
        min-width: 100%;
        flex-direction: column;
    }
    
    .story-img, .story-content {
        width: 100%;
    }
    
    .story-img {
        height: 250px;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
}
