:root {
    --primary: #1a365d;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --secondary: #4fd1c5;
    --accent: #fbbf24;
    --background: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 20px;
    --glass: rgba(255, 255, 255, 0.7);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(2deg);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

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

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 90px;
    flex-wrap: wrap;
    /* Allow wrapping but manage it better */
    gap: 15px;
}

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

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

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-button {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(30, 58, 138, 0.3);
    display: inline-block;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(30, 58, 138, 0.4);
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    padding: 220px 0 100px;
    /* Increased padding top to clear header */
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('assets/background.png') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--secondary);
    opacity: 0.1;
    border-radius: 50%;
}

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

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--white);
    transform: rotate(2deg);
}

/* Specialties Section */
.specialties {
    padding: 100px 0;
    background-color: var(--white);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

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

.specialty-card {
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 35px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.specialty-card:hover {
    transform: translateY(-15px) scale(1.02);
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.specialty-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Academic Section */
.academic {
    padding: 100px 0;
    background: linear-gradient(rgba(26, 54, 93, 0.05), rgba(26, 54, 93, 0.05)), url('assets/background.png');
}

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

.academic-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.academic-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}

/* Photo compositions */
.hero-image img {
    animation: float 6s ease-in-out infinite;
    max-width: 550px;
    border-radius: 40px;
    border-bottom-right-radius: 150px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background);
}

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

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-content span {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.about-feature i {
    color: var(--secondary);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--white);
}

/* Lead Capture Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background-color: var(--background);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-light);
}

/* Footer */
footer {
    background-color: #1a202c;
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    color: var(--text-muted);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--background);
}

.gallery-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item-new {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item-new:hover img {
    transform: scale(1.08);
}

.lightbox-trigger {
    transition: all 0.4s ease !important;
}

.lightbox-trigger:hover {
    filter: brightness(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--white);
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .flyer-grid-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .gallery-grid-clean {
        grid-template-columns: 1fr !important;
    }
}

.schedule-alert {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-left: 6px solid var(--secondary);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.schedule-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.schedule-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    background: rgba(79, 209, 197, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.schedule-text {
    flex-grow: 1;
    font-size: 1.15rem;
    color: var(--text-main);
}

.schedule-text strong {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-image {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Fix for mid-sized screens where header was overlapping */
@media (max-width: 1150px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .logo span {
        font-size: 1.1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {

    .hero-grid,
    .about-grid,
    .contact-container,
    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large, .gallery-item.wide {
        grid-column: span 1;
    }

    .schedule-alert {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* CV Section */
.cv-section {
    position: relative;
    z-index: 1;
}

.cv-grid {
    transition: all 0.3s ease;
}

.cv-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.cv-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cv-block h3 i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.cv-block ul li strong {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

@media (max-width: 992px) {
    .cv-grid {
        grid-template-columns: 1fr !important;
    }
}