:root {
    --primary: #565acf; /* MediTro Navy Blue */
    --secondary: #1f2278; /* Darker Navy */
    --accent: #f47621; /* MediTro Orange */
    --bg-light: #f5f6ff;
    --white: #ffffff;
    --text-main: #1f2278;
    --text-muted: #64748b;
    --radius-lg: 30px;
    --radius-md: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(31, 34, 120, 0.1);
    --shadow-xl: 0 25px 60px -12px rgba(31, 34, 120, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Abstract Background Shapes */
.shape { position: absolute; z-index: -1; opacity: 0.5; }
.shape-1 { top: 10%; left: 5%; width: 50px; height: 50px; border: 5px solid var(--primary); border-radius: 50%; }
.shape-2 { top: 20%; right: 10%; width: 40px; height: 40px; background: var(--accent); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.shape-3 { bottom: 15%; left: 10%; width: 60px; height: 60px; background: rgba(86, 90, 207, 0.1); border-radius: 10px; transform: rotate(45deg); }
.shape-cross { position: absolute; width: 20px; height: 20px; color: var(--accent); font-weight: bold; }


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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Abstract Background Blobs */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: blob-float 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; }
.blob-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%); }

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Modern Nav */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
}

nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container img { height: 40px; }
.logo-text h1 { font-size: 1.2rem; font-weight: 800; color: var(--secondary); letter-spacing: 1px; }
.logo-text h1 span { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 600; font-size: 0.95rem; transition: var(--transition-smooth); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition-smooth); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* 3D Utility Classes */
.depth-1 { box-shadow: var(--shadow-md); transform: translateZ(10px); }
.depth-2 { box-shadow: var(--shadow-xl); transform: translateZ(30px); }
.floating { animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Hero Section */
.hero {
    padding: 220px 2rem 120px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: clamp(3rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-weight: 800;
}

.hero h2 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h2 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(44, 204, 255, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(244, 118, 33, 0.3);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--secondary);
    box-shadow: 0 15px 30px rgba(31, 34, 120, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 100px;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.process-card {
    background: var(--white);
    padding: 5rem 2.5rem;
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.process-card span {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(86, 90, 207, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.process-card.active {
    background: linear-gradient(135deg, var(--accent), #ff9a5a);
    color: var(--white);
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(244, 118, 33, 0.3);
}

.process-card.active h3, .process-card.active p { color: var(--white); }
.process-card.active span { color: rgba(255, 255, 255, 0.15); }

/* Appointment Section */
.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
    align-items: center;
}

.appointment-card {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Service Strip */
.service-strip {
    background: var(--primary);
    padding: 12rem 2rem 6rem;
    margin-top: 6rem;
}

.service-strip-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.service-strip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-mini-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-smooth);
}

.service-mini-card:hover { transform: translateY(-10px); }
.service-mini-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }


.btn-white {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-5px);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.bento-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-item:hover {
    transform: scale(1.02);
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.item-large { grid-column: span 2; grid-row: span 2; }
.item-medium { grid-column: span 2; }

.bento-item h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--secondary); font-weight: 700; }
.bento-item img.icon-3d { width: 80px; height: 80px; margin-bottom: 1.5rem; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); transition: var(--transition-smooth); }
.bento-item:hover img.icon-3d { transform: translateY(-10px) rotate(5deg) scale(1.1); }
.bento-item i { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; color: var(--primary); opacity: 0.8; }

/* 3D Image Container */
.modern-image-stack {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.stack-img {
    position: absolute;
    width: 80%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
}

.img-1 { top: 0; left: 0; z-index: 3; transform: translateZ(50px); }
.img-2 { top: 20%; left: 15%; z-index: 2; transform: translateZ(20px) rotate(5deg); opacity: 0.8; }
.img-3 { top: 40%; left: 30%; z-index: 1; transform: translateZ(0) rotate(-5deg); opacity: 0.5; }

.modern-image-stack:hover .stack-img {
    transform: translateZ(0) rotate(0) scale(1.05);
    opacity: 1;
}

/* Stats */
.stats-container {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2a4a 100%);
    color: var(--white);
    padding: 8rem 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1200px;
    margin: 6rem auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
}

.stats-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 204, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-item { position: relative; z-index: 1; }
.stat-val { font-size: 3.5rem; font-weight: 800; display: block; margin-bottom: 0.5rem; color: var(--primary); }
.stat-label { font-size: 1.1rem; font-weight: 500; opacity: 0.8; letter-spacing: 1px; }

/* Split Sections */
.modern-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
    align-items: center;
}

.split-content h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.split-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 3rem 2rem;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Icon Boxes & Circles */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #7a7fe0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(86, 90, 207, 0.2);
    transition: var(--transition-smooth);
}

.news-card:hover .icon-box, .bento-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box.orange {
    background: linear-gradient(135deg, var(--accent), #ff9a5a);
    box-shadow: 0 10px 20px rgba(244, 118, 33, 0.2);
}

.hero-icon-box {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), #7a7fe0);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 10rem;
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.hero-icon-box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-icon-box.orange {
    background: linear-gradient(135deg, var(--accent), #ff9a5a);
}

/* Contact Section */
.modern-contact {
    max-width: 1200px;
    margin: 8rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    box-shadow: var(--shadow-xl);
}

/* Modern Form Design */
.contact-form-side {
    padding: 5rem;
    background: var(--white);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    opacity: 0.8;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    color: var(--text-main);
    box-shadow: var(--shadow-inner);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 1.3rem;
    border-radius: 100px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -10px rgba(79, 70, 229, 0.5);
    background: #4338ca;
}

/* Alignments & Spacings */
section {
    padding: 12rem 2rem;
}

.hero {
    padding: 240px 2rem 140px;
}

.bento-grid {
    gap: 3rem;
    margin: 8rem auto;
}

.bento-item {
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.bento-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px) scale(1.02);
}

.stats-container {
    padding: 8rem 4rem;
    gap: 5rem;
    box-shadow: 0 40px 80px rgba(33, 51, 96, 0.3);
    position: relative;
    z-index: 5;
}

.wave-divider {
    position: relative;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    margin-top: -100px;
    z-index: 1;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

.modern-split {
    gap: 10rem;
    align-items: center;
}

.modern-image-stack {
    height: 500px;
}

.stack-img {
    border: 10px solid var(--white);
    box-shadow: var(--shadow-xl);
}

/* Footer */
footer {
    padding: 10rem 2rem 2rem;
    background: var(--secondary);
    color: var(--white);
    position: relative;
}

footer h2, footer h4 { color: var(--white); }
footer a { color: rgba(255, 255, 255, 0.7); transition: var(--transition-smooth); }
footer a:hover { color: var(--accent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background: var(--accent);
}


/* Responsiveness */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: min-content; }
    .item-large, .item-medium { grid-column: span 2; }
    .modern-split { grid-template-columns: 1fr; text-align: center; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .modern-contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .item-large, .item-medium { grid-column: span 1; }
    .hero h2 { font-size: 3rem; }
    .nav-links { display: none; }
}
