/* assets/css/style.css */
:root {
    --primary: #6c63ff;
    --primary-dark: #4a44c0;
    --secondary: #ff6584;
    --accent: #36d1dc;
    --accent2: #ffb347;
    --light: #f9f9ff;
    --dark: #2a2a3c;
    --white: #ffffff;
    --gray: #8c8ca1;
    --success: #4ade80;
    --whatsapp: #25D366;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #0a0a1a;
    position: relative;
}

/* Background image with overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -2;
}

/* Dark overlay for better readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.85), rgba(42, 42, 60, 0.9));
    z-index: -1;
}

/* Particle animation background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.15);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation Menu */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    padding: 20px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.nav-menu li a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-menu li.admin-login a {
    background: var(--secondary);
}

.nav-menu li.admin-login a:hover {
    background: #ff476e;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128C7E;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.8);
}

.whatsapp-float i {
    font-size: 36px;
    color: white;
}

.whatsapp-text {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--whatsapp);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateY(0);
}

/* Header with animated gradient and physics elements */
header {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(54, 209, 220, 0.9), rgba(255, 179, 71, 0.9));
    background-size: 400% 400%;
    color: var(--white);
    padding: 60px 20px 100px;
    text-align: center;
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

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

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo styling */
.logo-container {
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: morphing 15s infinite;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 69% 30% 70% 31%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.logo-inner {
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    line-height: 1;
}

.logo-inner span {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo img {
    max-width: 120px;
    height: auto;
}

header h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 800;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s ease forwards;
    text-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #ffffff, #e6e6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

header p {
    font-size: 1.6rem;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s ease 0.4s forwards;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

/* Physics illustrations in header */
.physics-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.atom {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotateAtom 20s linear infinite;
}

.atom:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: -5s;
}

.atom:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    animation-delay: -10s;
}

.atom:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    animation-delay: -15s;
}

.atom::before, .atom::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.atom::after {
    width: 10px;
    height: 10px;
    background: rgba(255, 101, 132, 0.8);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotateOrbit 15s linear infinite;
}

.orbit:nth-child(4) {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    animation-delay: -2s;
}

.orbit:nth-child(5) {
    top: 60%;
    right: 15%;
    width: 160px;
    height: 160px;
    animation-delay: -8s;
}

.orbit:nth-child(6) {
    bottom: 20%;
    left: 20%;
    width: 90px;
    height: 90px;
    animation-delay: -12s;
}

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

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

/* Floating arrow */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 10;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Section styling */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* About box with animation */
.about-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
    transition: transform 0.5s, box-shadow 0.5s;
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.about-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.about-box h2 {
    margin-top: 0;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    margin-bottom: 25px;
}

.about-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 20px;
}

/* Grid and cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    border-top: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card:nth-child(1) { animation: fadeUp 0.8s ease 0.9s forwards; border-color: var(--primary); }
.card:nth-child(2) { animation: fadeUp 0.8s ease 1s forwards; border-color: var(--secondary); }
.card:nth-child(3) { animation: fadeUp 0.8s ease 1.1s forwards; border-color: var(--accent); }
.card:nth-child(4) { animation: fadeUp 0.8s ease 1.2s forwards; border-color: var(--accent2); }

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.card h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 15px;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Faculty Section */
.faculty-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.faculty-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 500px;
    transform: translateY(50px);
    opacity: 0;
    animation: fadeUp 1s ease 1.3s forwards;
    transition: transform 0.5s;
    position: relative;
    backdrop-filter: blur(10px);
}

.faculty-card:hover {
    transform: translateY(-15px);
}

.faculty-img {
    height: 300px;
    width: 100%;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    position: relative;
}

.faculty-info {
    padding: 35px;
}

.faculty-info h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.faculty-role {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    font-size: 1.2rem;
    padding: 8px 20px;
    background: rgba(255, 101, 132, 0.1);
    border-radius: 50px;
    display: inline-block;
}

/* Video Section - Actual YouTube Embeds */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(50px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.video-card:nth-child(1) { animation: fadeUp 0.8s ease 1.4s forwards; }
.video-card:nth-child(2) { animation: fadeUp 0.8s ease 1.5s forwards; }
.video-card:nth-child(3) { animation: fadeUp 0.8s ease 1.6s forwards; }

.video-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.video-embed {
    width: 100%;
    height: 220px;
    border: none;
}

.video-title {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
}

.video-title h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.video-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.video-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(50px);
    opacity: 0;
    animation: fadeUp 1s ease 1.7s forwards;
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(54, 209, 220, 0.05));
    border-radius: 0 0 0 100%;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* CTA Button */
.cta {
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(54, 209, 220, 0.9));
    clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
    z-index: -1;
}

.cta a {
    background: var(--white);
    color: var(--primary);
    padding: 22px 50px;
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 60px;
    font-weight: 700;
    transition: all 0.5s;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta a:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    color: var(--primary-dark);
}

.cta a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.cta a:hover::before {
    left: 100%;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 60px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    display: block;
    width: 100%;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-dark), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.submit-btn:hover::before {
    opacity: 1;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(42, 42, 60, 0.95), rgba(26, 26, 46, 0.98));
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Form success/error messages */
.success-message {
    background: linear-gradient(to right, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
    color: var(--success);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid var(--success);
    font-weight: 600;
    font-size: 1.1rem;
}

.error-message {
    background: linear-gradient(to right, rgba(255, 101, 132, 0.1), rgba(255, 71, 110, 0.1));
    color: var(--secondary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Floating animation for elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    header h1 {
        font-size: 3rem;
    }
    
    header p {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-box, .contact-form {
        padding: 40px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
    
    .logo-inner {
        font-size: 2rem;
    }
    
    .video-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-box, .contact-form {
        padding: 30px;
    }
    
    .faculty-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card, .faculty-card {
        padding: 25px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .logo-inner {
        font-size: 1.6rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 30px;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu li a {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .main-nav {
        padding: 10px;
    }
}