@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #ffc3c3;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

.font-display {
    font-family: 'Syne', sans-serif;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 180, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Parallax Background */
.parallax-bg {
    background: linear-gradient(135deg, #dacbcb 0%, #bb8585 50%, #532f2f 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Hero Image Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 0.3;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 181, 181, 0.7) 0%, rgba(132, 216, 253, 0.88) 50%, rgba(0,0,0,0.7) 100%);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-shape:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-shape:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-shape:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.floating-shape:nth-child(4) { top: 60%; right: 25%; animation-delay: 1s; }
.floating-shape:nth-child(5) { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Animated Text Reveal */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
    animation: textReveal 1s ease forwards;
}

.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.nav-sticky {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 180, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Course Cards */
.course-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(0, 180, 255, 0.1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    min-height: 500px;
}

.course-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
    border-color: rgba(0, 180, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 180, 255, 0.1);
}

/* Flash Card System */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.course-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.card-front {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-back h3 {
    color: #00B4FF;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.curriculum-section {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 280px;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.curriculum-item {
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.curriculum-item h4 {
    color: #00B4FF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.curriculum-item ul {
    list-style: none;
    padding: 0;
}

.curriculum-item li {
    color: #e5e5e5;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.career-tag {
    background: #00B4FF;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
}

.flip-back-btn {
    background: transparent;
    border: 2px solid #00B4FF;
    color: #00B4FF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: auto;
}

.flip-back-btn:hover {
    background: #00B4FF;
    color: #000;
}

/* Custom scrollbar for curriculum section */
.curriculum-section::-webkit-scrollbar {
    width: 4px;
}

.curriculum-section::-webkit-scrollbar-track {
    background: rgba(0, 180, 255, 0.1);
    border-radius: 2px;
}

.curriculum-section::-webkit-scrollbar-thumb {
    background: #00B4FF;
    border-radius: 2px;
}

/* Custom scrollbar for card content */
.card-front::-webkit-scrollbar,
.card-back::-webkit-scrollbar {
    width: 4px;
}

.card-front::-webkit-scrollbar-track,
.card-back::-webkit-scrollbar-track {
    background: rgba(0, 180, 255, 0.1);
    border-radius: 2px;
}

.card-front::-webkit-scrollbar-thumb,
.card-back::-webkit-scrollbar-thumb {
    background: #00B4FF;
    border-radius: 2px;
}

/* Portfolio Carousel */
.portfolio-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
}

.portfolio-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portfolio-item {
    min-width: 300px;
    margin-right: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.2), transparent);
    transition: left 0.5s;
}

.portfolio-item:hover::before {
    left: 100%;
}

/* Faculty Cards */
.faculty-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(0, 180, 255, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.faculty-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 180, 255, 0.1);
}

/* Glowing Button */
.glow-btn {
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    border: none;
    color: #000;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.4);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Logo */
.logo {
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
}

/* Interactive Elements */
.interactive-element {
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.02);
}

/* Page System */
.page {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.page.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Filter */
.portfolio-filter.active {
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    color: #000;
    border-color: transparent;
}

.portfolio-item-grid {
    transition: all 0.3s ease;
}

.portfolio-item-grid.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Tab System */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.user-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    .text-reveal span {
        font-size: 3rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00B4FF, #00FF94);
    border-radius: 4px;
}