/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a87;
    --accent-color: #f39c12;
    --accent-secondary: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
#mainNav {
    background: rgba(30, 58, 95, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#mainNav.scrolled {
    background: rgba(30, 58, 95, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    transition: all 0.3s ease;
    /* Remove filter - keep original logo colors */
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 1) !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1) !important;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

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

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    background: var(--gradient-primary);
    position: relative;
}

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

.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.parallax-img-fg {
     position: absolute;
    width: 100%;
    height: 100%;
     left: -25%;
     object-fit: cover;   /* Prevents stretching, preserves aspect ratio */
    object-position: center;
    will-change: transform;
}

.parallax-img-bg {
     position: absolute;
     bottom: 0px;
    width: 100%;
     left: -10%;
          object-fit: cover;   /* Prevents stretching, preserves aspect ratio */
    object-position: bottom;
    will-change: transform;
}

.layer {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ===== ORGANIC BUBBLES ===== */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(75, 0, 130, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 20, 147, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(0, 191, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 30% 10%, rgba(255, 105, 180, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 90%, rgba(72, 61, 139, 0.4) 0%, transparent 50%);
    filter: blur(40px);
    animation: organicFloat 20s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes organicFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: blur(40px) hue-rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
        filter: blur(35px) hue-rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg) scale(0.95);
        filter: blur(45px) hue-rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(7deg) scale(1.1);
        filter: blur(30px) hue-rotate(270deg);
    }
}

/* ===== POLLEN PARTICLES ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0.7;
    animation: pollenFloat linear infinite;
}

@keyframes pollenFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--random-x, 0px)) rotate(360deg);
        opacity: 0;
    }
}

.scroll-indicator {
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

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

/* ===== SECTIONS ===== */
section {
    position: relative;
    z-index: 10;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

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

/* ===== METHODOLOGY CARDS ===== */
.methodology-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

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

.methodology-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== IMPACT SECTION ===== */
.impact-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== TEAM SECTION ===== */
.team-avatar i {
    font-size: 5rem;
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links-large a {
    transition: all 0.3s ease;
}

.social-links-large a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-5px);
}

/* ===== CONTACT FORM ===== */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.btn-warning {
    background: var(--gradient-accent);
    border: none;
    transition: all 0.3s ease;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        position: relative;
    }
    
    .hero-section .container-fluid {
        height: 100vh;
        position: relative;
    }
    
    .hero-section .row {
        height: 100vh;
        position: relative;
    }
    
    /* Make parallax full screen on mobile */
    .hero-section .col-lg-8 {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        z-index: 1;
        padding: 0 !important;
    }
    
    /* Make content an overlay on mobile */
    .hero-section .col-lg-4 {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        z-index: 3;
        background: rgba(30, 58, 95, 0.85);
        backdrop-filter: blur(15px);
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 2rem !important;
        text-align: center;
        width: 100%;
        max-width: 400px;
    }
    
    .hero-logo {
        max-width: 120px;
    }
    
    .parallax-container {
        width: 100% !important;
        height: 100vh !important;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .bubbles-container {
        display: none; /* Hide bubbles on mobile for performance */
    }
    
    .particles-container {
        display: none; /* Hide particles on mobile for performance */
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .methodology-icon i {
        font-size: 2.5rem;
    }
    
    .impact-icon i {
        font-size: 3rem;
    }
    
    .team-avatar i {
        font-size: 4rem;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        max-width: 120px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg,
    .parallax-fg {
        transform: none !important;
    }
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== LOADING ANIMATIONS ===== */
@media (min-width: 769px) {
    .fade-in-up {
        animation-delay: 0.1s;
    }
    
    .fade-in-up:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .fade-in-up:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .fade-in-up:nth-child(4) {
        animation-delay: 0.4s;
    }
}

/* ===== UTILITIES ===== */
.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-accent) 1;
}
