:root {
    --primary-blue: #003366;
    --accent-blue: #0056b3;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-soft: #f4f7f9;
    --border-clean: #e1e8ed;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
}

.glass-effect {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-clean);
}

.section-padding {
    padding: 6rem 1.5rem;
}

@media (min-width: 640px) { .section-padding { padding: 6rem 3rem; } }
@media (min-width: 1024px) { .section-padding { padding: 8rem 6rem; } }

.clean-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-clean);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clean-card:hover {
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Refinements */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
}

.academic-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #002244 0%, #003366 50%, #004488 100%);
}

/* Navigation Links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}


/* Carousel Styles */
.portfolio-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 var(--bg-soft);
}

.portfolio-carousel::-webkit-scrollbar {
    height: 6px;
}

.portfolio-carousel::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

.portfolio-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.portfolio-carousel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .portfolio-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    .portfolio-card {
        flex: 0 0 calc(100% - 8px);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.modal-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.modal-link-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.modal-link-btn:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.carousel-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-nav button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-nav button:hover {
    background-color: var(--accent-blue);
    transform: scale(1.05);
}
