/* ===================================
   Landing Page Specific Styles
   =================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Animated Background */
.hero-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f 0%, #1d3557 25%, #457b9d 50%, #1d3557 75%, #0a192f 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

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

/* Grid Lines */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(69, 123, 157, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 123, 157, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Particles Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
    animation: float calc(12s + var(--i) * 0.5s) linear infinite;
    bottom: -20px;
    left: calc(var(--i) * 2%);
    animation-delay: calc(var(--i) * -0.3s);
}

.particles span:nth-child(even) {
    background: rgba(100, 200, 255, 0.9);
    box-shadow: 0 0 25px rgba(100, 200, 255, 0.7), 0 0 50px rgba(100, 200, 255, 0.5);
    animation-duration: calc(15s + var(--i) * 0.4s);
    width: 6px;
    height: 6px;
}

.particles span:nth-child(3n) {
    background: rgba(150, 220, 255, 0.7);
    box-shadow: 0 0 15px rgba(150, 220, 255, 0.5), 0 0 30px rgba(150, 220, 255, 0.3);
    width: 5px;
    height: 5px;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) translateX(calc(var(--i) * 15px - 150px)) scale(1.2);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 16px; }
}

/* Team Section */
.team {
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.team-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-image svg {
    width: 100%;
    height: 100%;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 32px;
}

.team-card-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.position {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.institution {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.research-area {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.team-card-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

/* About Animated Background */
.about-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

/* Gradient Layer with Wave Effect */
.about-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(69, 123, 157, 0.1) 0%,
        rgba(168, 218, 220, 0.15) 25%,
        rgba(241, 250, 238, 0.2) 50%,
        rgba(168, 218, 220, 0.15) 75%,
        rgba(69, 123, 157, 0.1) 100%);
    background-size: 300% 300%;
    animation: waveGradient 20s ease-in-out infinite;
}

@keyframes waveGradient {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

/* Floating Geometric Shapes */
.about-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a8dada, #69b2b8);
    top: 10%;
    left: 10%;
    animation: morphFloat1 25s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #457b9d, #1d3557);
    top: 60%;
    right: 15%;
    animation: morphFloat2 30s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f1faee, #a8dadc);
    bottom: 20%;
    left: 20%;
    animation: morphFloat3 22s ease-in-out infinite;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #457b9d, #a8dadc);
    top: 30%;
    right: 30%;
    animation: morphFloat4 28s ease-in-out infinite;
}

.shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #69b2b8, #f1faee);
    bottom: 15%;
    right: 10%;
    animation: morphFloat5 26s ease-in-out infinite;
}

@keyframes morphFloat1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    75% {
        transform: translate(30px, 30px) rotate(270deg);
        border-radius: 30% 70% 30% 70% / 30% 70% 30% 70%;
    }
}

@keyframes morphFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    33% {
        transform: translate(-40px, 40px) rotate(120deg);
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }
    66% {
        transform: translate(40px, -40px) rotate(240deg);
        border-radius: 70% 30% 40% 60% / 30% 40% 60% 70%;
    }
}

@keyframes morphFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }
    50% {
        transform: translate(60px, -60px) scale(1.2) rotate(180deg);
        border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
    }
}

@keyframes morphFloat4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
    }
    50% {
        transform: translate(-50px, 50px) rotate(180deg);
        border-radius: 30% 70% 50% 50% / 70% 50% 50% 30%;
    }
}

@keyframes morphFloat5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    }
    50% {
        transform: translate(40px, 40px) scale(0.8);
        border-radius: 50% 50% 70% 30% / 50% 50% 30% 70%;
    }
}

/* Small Dots Animation */
.about-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.about-dots span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(69, 123, 157, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(69, 123, 157, 0.4);
    animation: dotsFloat calc(10s + var(--i) * 0.8s) ease-in-out infinite;
    top: calc(var(--i) * 5%);
    left: calc(var(--i) * 5%);
    animation-delay: calc(var(--i) * -0.5s);
}

.about-dots span:nth-child(odd) {
    background: rgba(168, 218, 220, 0.5);
    box-shadow: 0 0 12px rgba(168, 218, 220, 0.3);
    width: 3px;
    height: 3px;
}

@keyframes dotsFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -20px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 20px);
        opacity: 0.5;
    }
    75% {
        transform: translate(20px, 20px);
        opacity: 0.7;
    }
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    gap: 64px;
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
}

.lead-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 100px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-stats {
        flex-direction: column;
        gap: 12px;
    }
}
