/* ============================================================================
   AVL WEBSITE STYLES
   Brand Colors: Deep Blue (#1a0dab), Cyber Blue (#0066ff), White
   ============================================================================ */

/* CSS Variables */
:root {
    /* Brand Colors - extracted from AVL logos */
    --avl-deep-blue: #1a0dab;
    --avl-royal-blue: #2819c9;
    --avl-cyber-blue: #0066ff;
    --avl-accent-cyan: #00d4ff;
    --avl-dark: #0a0520;
    --avl-darker: #050210;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9ff;
    --light-gray: #e8eaff;
    --medium-gray: #8892b0;
    --dark-gray: #1a1a2e;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--avl-darker) 0%, var(--avl-deep-blue) 50%, #2d1b69 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 13, 171, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    --gradient-accent: linear-gradient(90deg, var(--avl-cyber-blue), var(--avl-accent-cyan));
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-width: 1400px;
    
    /* Effects */
    --glow-blue: 0 0 30px rgba(0, 102, 255, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--avl-darker);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    color: var(--light-gray);
    max-width: 65ch;
}

a {
    color: var(--avl-accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* Section Base */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header p {
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 2, 16, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--light-gray);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url('../images/Rocky_AVL_background.jpg');
    background-size: cover;
    background-position: center;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-logo {
    max-width: 280px;  /* Reduced from 400px */
    width: 60%;        /* Reduced from 80% */
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-university {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--avl-accent-cyan);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-university a {
    color: var(--avl-accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-university a:hover {
    color: var(--white);
    text-decoration: underline;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--avl-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
    color: var(--avl-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--avl-cyber-blue);
}

.btn-secondary:hover {
    background: var(--avl-cyber-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--avl-accent-cyan);
}

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

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

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */

.about {
    background: var(--avl-darker);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--avl-cyber-blue), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.about-card {
    background: linear-gradient(145deg, rgba(26, 13, 171, 0.15), rgba(5, 2, 16, 0.8));
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--avl-cyber-blue);
    box-shadow: var(--glow-blue);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card h3 {
    color: var(--avl-accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Equipment Grid */
.equipment-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 102, 255, 0.2);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.equipment-item {
    background: rgba(26, 13, 171, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: var(--avl-accent-cyan);
    transform: translateY(-3px);
}

.equipment-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.equipment-item p {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* ============================================================================
   IMPACT SECTION
   ============================================================================ */

.impact {
    background: linear-gradient(180deg, var(--avl-dark) 0%, var(--avl-darker) 100%);
    position: relative;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 13, 171, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--avl-accent-cyan);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-gray);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: linear-gradient(145deg, rgba(26, 13, 171, 0.15), transparent);
    border-left: 4px solid var(--avl-cyber-blue);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: linear-gradient(145deg, rgba(26, 13, 171, 0.25), transparent);
    transform: translateX(10px);
}

.achievement-year {
    font-family: var(--font-display);
    color: var(--avl-accent-cyan);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.achievement-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    font-size: 0.95rem;
}

/* ============================================================================
   TEAM SECTION
   ============================================================================ */

.team {
    background: var(--avl-darker);
}

.team-category {
    margin-bottom: 4rem;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category h3 {
    color: var(--avl-accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: linear-gradient(145deg, rgba(26, 13, 171, 0.1), rgba(5, 2, 16, 0.5));
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--avl-cyber-blue);
    box-shadow: var(--glow-blue);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--avl-deep-blue) 0%, var(--avl-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.team-card-image .placeholder-avatar {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--avl-accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.team-card-content {
    padding: 1.5rem;
}

.team-card-content h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-card-role {
    color: var(--avl-accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-card-bio {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.team-card-links {
    display: flex;
    gap: 1rem;
}

.team-card-links a {
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.team-card-links a:hover {
    color: var(--avl-accent-cyan);
}

.team-card-links svg {
    width: 20px;
    height: 20px;
}

/* ============================================================================
   RESEARCH SECTION
   ============================================================================ */

.research {
    background: linear-gradient(180deg, var(--avl-dark) 0%, var(--avl-darker) 100%);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.research-card {
    background: rgba(5, 2, 16, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    border-color: var(--avl-cyber-blue);
    box-shadow: var(--glow-blue);
}

.research-card:hover::before {
    opacity: 1;
}

.research-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.research-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.research-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.research-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-projects span {
    background: rgba(0, 102, 255, 0.15);
    color: var(--avl-accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

/* ============================================================================
   HIRING SECTION
   ============================================================================ */

.hiring {
    background: var(--avl-darker);
    position: relative;
}

.hiring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--avl-accent-cyan), transparent);
}

.hiring-banner {
    background: linear-gradient(135deg, var(--avl-deep-blue) 0%, var(--avl-dark) 100%);
    border: 1px solid var(--avl-cyber-blue);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hiring-banner::before {
    content: '🚀';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
}

.hiring-banner h3 {
    color: var(--avl-accent-cyan);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.hiring-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.position-card {
    background: rgba(26, 13, 171, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.position-card:hover {
    border-color: var(--avl-accent-cyan);
    transform: translateY(-5px);
}

.position-type {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--avl-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.position-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.position-card > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.position-requirements {
    margin-bottom: 1.5rem;
}

.position-requirements h4 {
    color: var(--avl-accent-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.position-requirements ul {
    list-style: none;
}

.position-requirements li {
    color: var(--medium-gray);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.position-requirements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--avl-cyber-blue);
}

/* ============================================================================
   LEARN BY DOING SECTION
   ============================================================================ */

.learn {
    background: linear-gradient(180deg, var(--avl-dark) 0%, var(--avl-darker) 100%);
}

.learn-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.learn-intro .cal-poly-motto {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--avl-accent-cyan);
    margin-bottom: 1rem;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.workshop-card {
    background: rgba(5, 2, 16, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.workshop-card:hover {
    border-color: var(--avl-cyber-blue);
    transform: translateY(-5px);
}

.workshop-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workshop-level.beginner {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.workshop-level.intermediate {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.workshop-level.advanced {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.workshop-type {
    color: var(--medium-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.workshop-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.workshop-card p {
    font-size: 0.95rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: var(--avl-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 102, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--avl-accent-cyan);
    color: var(--avl-accent-cyan);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--medium-gray);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--avl-accent-cyan);
}

.footer-contact p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin: 0 auto;
}

/* ============================================================================
   ANIMATIONS & EFFECTS
   ============================================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle effect for hero */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--avl-accent-cyan);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-logo {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(5, 2, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-grid,
    .research-grid,
    .positions-grid,
    .workshops-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ============================================================================
   NAVBAR SOCIAL ICONS
   ============================================================================ */

.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--avl-accent-cyan);
    transition: all 0.3s ease;
}

.nav-social a:hover {
    background: var(--avl-cyber-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.nav-social svg {
    width: 20px;
    height: 20px;
}

/* ============================================================================
   HERO LOGO - Smaller
   ============================================================================ */

.hero-logo {
    max-width: 450px;
    width: 80%;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================================================
   PHOTO GALLERY / SLIDESHOW
   ============================================================================ */

.gallery {
    background: linear-gradient(180deg, var(--avl-dark) 0%, var(--avl-darker) 100%);
}

.gallery-slideshow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--avl-dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 102, 255, 0.7);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-nav:hover {
    background: var(--avl-cyber-blue);
}

.slide-nav.prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.slide-nav.next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.slide-dots {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background: var(--avl-accent-cyan);
    transform: scale(1.2);
}

/* ============================================================================
   RESEARCH CARDS - Clickable
   ============================================================================ */

.research-hint {
    color: var(--avl-accent-cyan);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.research-card {
    cursor: pointer;
    position: relative;
}

.research-card::after {
    content: '→ Click to learn more';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.8rem;
    color: var(--avl-accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover::after {
    opacity: 1;
}

.research-card.clickable {
    cursor: pointer;
}

.research-card .click-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--avl-accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover .click-hint {
    opacity: 1;
}

/* Clickable equipment items */
.equipment-item.clickable {
    cursor: pointer;
}

.equipment-item .click-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--avl-accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-item:hover .click-hint {
    opacity: 1;
}

/* Clickable achievement cards */
.achievement-card.clickable {
    cursor: pointer;
}

.achievement-card .click-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--avl-accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover .click-hint {
    opacity: 1;
}

/* ============================================================================
   FOOTER - Larger Logo and Social Icons
   ============================================================================ */

.footer-logo-large {
    height: 80px !important;
    width: auto !important;
    margin-bottom: 1.5rem;
}

.footer-social-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-large a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    color: var(--light-gray);
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social-large a:hover {
    background: var(--avl-cyber-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.footer-social-large svg {
    flex-shrink: 0;
}

/* ============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================ */

/* Remove heavy particle animations */
.particles {
    display: block;
}

/* Reduce animation complexity */
.hero-grid {
    animation: none;
    opacity: 0.3;
}

/* Use GPU acceleration for smooth scrolling */
.fade-in {
    will-change: opacity, transform;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   RESPONSIVE UPDATES
   ============================================================================ */

@media (max-width: 1024px) {
    .nav-social {
        gap: 0.5rem;
    }
    
    .nav-social a {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .nav-social {
        display: none;  /* Hide in mobile, show in menu */
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .slide-nav {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }
    
    .slide-caption {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .footer-social-large {
        justify-content: center;
    }
    
    .footer-social-large a span {
        display: none;  /* Hide text on mobile, show only icons */
    }
    
    .footer-social-large a {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        aspect-ratio: 4/3;
    }
    
    .slide-dots {
        bottom: 50px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-bg,
    .hero-grid,
    .particles,
    .scroll-indicator,
    .gallery-slideshow {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}


/* ============================================================================
   ENHANCED ANIMATIONS
   ============================================================================ */

/* Glowing effect on hero buttons */
.btn-primary {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.8), 0 0 40px rgba(0, 102, 255, 0.5);
    }
}

/* Subtle float animation for cards on hover */
.research-card:hover,
.achievement-card:hover,
.equipment-item:hover,
.team-card:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease;
}

/* Animated gradient border for section headers */
.section-header h2::after {
    background: linear-gradient(90deg, var(--avl-cyber-blue), var(--avl-accent-cyan), var(--avl-cyber-blue));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

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

/* Smooth scroll indicator bounce */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

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

/* Nav social icons hover effect */
.nav-social a:hover {
    animation: iconPop 0.3s ease;
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}



/* Hero grid subtle animation */
.hero-grid {
    animation: gridPulse 8s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}
