/* IEEE Branding Colors - Enhanced */
:root {
    --ieee-blue: #00629B;
    --ieee-blue-light: #0088CC;
    --ieee-blue-dark: #004A7C;
    --ieee-dark-gray: #424242;
    --ieee-light-gray: #F5F5F5;
    --ieee-black: #000000;
    --ieee-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #00629B 0%, #0088CC 100%);
    --gradient-secondary: linear-gradient(135deg, #003366 0%, #00629B 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ieee-black);
    background-color: var(--ieee-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--ieee-blue);
}

/* Page Headers - Override for visibility */
header.bg-ieee-blue h1,
header.bg-ieee-blue p {
    color: var(--ieee-white) !important;
}

/* Navigation - Enhanced */
.navbar {
    background-color: var(--ieee-white);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.navbar-brand,
.nav-link {
    color: var(--ieee-blue) !important;
    font-weight: 500;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--ieee-blue-light) !important;
}

/* Footer - Enhanced */
footer {
    background: var(--gradient-secondary);
    color: var(--ieee-white);
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: var(--ieee-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Buttons - Enhanced */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 32px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--ieee-dark-gray);
    border: none;
    padding: 12px 32px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #2e2e2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards - Enhanced */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.card-title {
    color: var(--ieee-blue);
    font-weight: 600;
}

/* Utilities */
.bg-ieee-blue {
    background: var(--gradient-primary) !important;
}

.text-ieee-blue {
    color: var(--ieee-blue) !important;
}

.section-padding {
    padding: 60px 0;
}

/* Hero Section - Enhanced */
.hero-section {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #001a33 0%, #003d66 50%, #00629B 100%);
    min-height: 600px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-section h1 {
    color: var(--ieee-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: var(--ieee-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    font-weight: 300;
}

.hero-section h1::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Section Enhancements */
section {
    position: relative;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Accessibility Focus - Enhanced */
a:focus,
button:focus {
    outline: 3px solid var(--ieee-blue-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.2);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }
}