/* Global Styles */
:root {
    --primary-color: #0a2463;
    --secondary-color: #3e92cc;
    --accent-color: #2dc7ff;
    --dark-color: #1e1b18;
    --light-color: #fffaff;
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

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

/* Animated Background and Particles */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--gradient-bg);
    border-radius: 50%;
    opacity: 0.5;
    animation-name: float, pulse;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.particle.circle {
    border-radius: 50%;
}

.particle.triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--accent-color);
}

.particle.square {
    border-radius: 0;
}

.particle.diamond {
    transform: rotate(45deg);
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(calc(var(--direction, 1) * -100px)) translateX(calc(var(--direction, 1) * 50px)); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

/* Header Styles */
header {
    background: var(--gradient-bg);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s;
    z-index: -1;
}

nav ul li a:hover:before {
    height: 100%;
}

nav ul li a:hover, nav ul li a.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

nav ul li a.active {
    background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/earth.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent, rgba(0,0,0,0.5));
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: glow 3s ease-in-out infinite alternate;
    position: relative;
    display: inline-block;
}

.hero h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    animation: lineExpand 1.5s 1s forwards;
}

@keyframes lineExpand {
    to { width: 100%; }
}

@keyframes glow {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color); }
    to { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--accent-color), 0 0 40px var(--accent-color); }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeIn 1.5s 1.2s forwards;
}

.hero-cta {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1.5s 1.5s forwards;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 50px;
    background: white;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.tab-link {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 25px;
    background: transparent;
    color: #555;
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tab-link:hover {
    transform: translateY(-2px);
}

.tab-link.active {
    background: var(--gradient-bg);
    color: white;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.4);
}

.tab-content {
    display: none;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform-origin: top center;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

.tab-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-bg);
    border-radius: 15px 15px 0 0;
}

.tab-content.active {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: var(--gradient-bg);
    border-radius: 10px;
}

.section-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Science-themed decorative elements */
.atom-orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(62, 146, 204, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.atom-orbit:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-color);
}

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

/* Cards for event sections */
.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-bg);
    transition: all 0.3s ease;
}

.card:hover:before {
    width: 100%;
    opacity: 0.05;
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card ul {
    padding-left: 1.5rem;
}

.card ul li {
    margin-bottom: 0.8rem;
    position: relative;
}

.card ul li:before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Button */
.btn {
    display: inline-block;
    background: var(--gradient-bg);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(10, 36, 99, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 36, 99, 0.4);
}

.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: all 0.6s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

/* Footer */
footer {
    background: var(--gradient-bg);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--accent-color));
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateY(20px);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-bg);
    opacity: 0.05;
    z-index: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .tabs {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .tab-link {
        margin-bottom: 5px;
    }
}

/* Department hero sections */
.dept-hero {
    height: 60vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
} 