/* ===================================
   ROBOTICS CLUB WEBSITE - MAIN STYLES
   Global styles, typography, and colors
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS VARIABLES - Color Palette
   =================================== */
:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --accent-blue: #0f4c75;
    --action-blue: #3282b8;
    --success-cyan: #00d9ff;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --card-border: rgba(0, 217, 255, 0.3);
    --shadow-glow: rgba(0, 217, 255, 0.4);
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: pulseHeadingGlow 4s ease-in-out infinite;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

@keyframes pulseHeadingGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 40px rgba(0, 217, 255, 0.4);
    }
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1rem;
}

a {
    color: var(--action-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--success-cyan);
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 217, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--success-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--text-white);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a.active {
    color: var(--success-cyan);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--success-cyan);
    transition: all 0.3s ease;
}

/* ===================================
   MAIN CONTENT CONTAINER
   =================================== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    /* Inherits pulseHeadingGlow from h2 */
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--action-blue), var(--success-cyan));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--secondary-bg);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-blue);
}

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

.footer-section h3 {
    color: var(--success-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--success-cyan);
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Contact Page Hero */
.contact-hero {
    background-image: linear-gradient(rgba(11, 15, 26, 0.8), rgba(11, 15, 26, 0.8)), url('../images/background/lab-equipment.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--success-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-blue);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-cyan {
    color: var(--success-cyan);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--action-blue);
}

/* ===================================
   BACKGROUND ROBOTS ANIMATION
   =================================== */
.bg-robots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Brought forward slightly but still behind content if content has z-index */
    overflow: hidden;
    pointer-events: none;
}

.bg-robot {
    position: absolute;
    opacity: 0.15;
    /* Adjusted for icons */
    animation: floatTrophy 8s infinite ease-in-out;
    /* Updated to new flow animation */
    color: var(--success-cyan);
    /* Icon color */
    font-size: 150px;
    /* Base icon size */
    text-shadow: 0 0 20px var(--success-cyan), 0 0 40px var(--accent-blue);
    /* Glowing effect */
}

@keyframes floatRobot {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(40px, -60px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) rotate(-5deg) scale(0.95);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Robot Variations */
/* Robot Variations */
.robot-1 {
    top: 12%;
    left: 5%;
    font-size: 140px;
    animation-duration: 9s;
}

.robot-2 {
    top: 20%;
    right: 8%;
    font-size: 180px;
    opacity: 0.1;
    animation-duration: 11s;
    animation-delay: -2s;
    animation-direction: reverse;
}

.robot-3 {
    bottom: 25%;
    left: 10%;
    font-size: 160px;
    animation-duration: 10s;
    animation-delay: -4s;
}

.robot-4 {
    top: 60%;
    right: 5%;
    font-size: 130px;
    animation-duration: 7s;
    animation-delay: -1s;
}

.robot-5 {
    bottom: 5%;
    right: 25%;
    font-size: 200px;
    opacity: 0.1;
    animation-duration: 12s;
    animation-delay: -5s;
    animation-direction: reverse;
}

/* ===================================
   BACKGROUND TROPHIES (Override)
   =================================== */
.bg-trophy {
    color: var(--success-cyan);
    /* Changed to Blue/Cyan */
    text-shadow: 0 0 20px var(--success-cyan), 0 0 40px var(--accent-blue);
    /* Blue glow */
    opacity: 0.15;
    /* Restored opacity to match robots */
    animation: floatTrophy 8s ease-in-out infinite;
    /* Distinct floating animation */
}

@keyframes floatTrophy {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

/* ===================================
   BACKGROUND NEWSPAPER (Override)
   =================================== */
.bg-newspaper {
    background-color: var(--success-cyan);
    width: 220px;
    height: 160px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM11 17H4v-2h7v2zM11 13H4v-2h7v2zM11 9H4V7h7v2zM20 17h-7v-2h7v2zM20 13h-7v-2h7v2zM20 9h-7V7h7v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM11 17H4v-2h7v2zM11 13H4v-2h7v2zM11 9H4V7h7v2zM20 17h-7v-2h7v2zM20 13h-7v-2h7v2zM20 9h-7V7h7v2z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    filter: drop-shadow(0 0 10px var(--success-cyan));
    opacity: 0.15;
    animation: floatTrophy 10s ease-in-out infinite;
}