/* Custom CSS for Airboard Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=Poppins:wght@800&display=swap');

/* CSS Variables for Colors */
:root {
    --primary-blue: #030E2E;
    --secondary-blue: #000080;
    --neutral-white: #F7F9FA;
    --pure-white: #FFFFFF;
    --text-grey: #676767;
    --panel-bg: #FAFAFB;
    --header-bg: #2B2B2B;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--pure-white);
    max-width: 400px;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.preloader-logo {
    height: 80px;
    margin-bottom: 1rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.preloader-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-animation {
    margin: 2rem 0;
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--pure-white);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--pure-white);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

.loading-message {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pure-white), rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-out forwards;
}

/* Preloader Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    30% { width: 30%; }
    60% { width: 60%; }
    90% { width: 85%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Optimizations */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.loaded {
    opacity: 1;
}

/* GPU acceleration for better performance */
.tech-box,
.member-card,
.social-icon,
.hero-content,
.navbar-custom,
.back-to-top {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* Reduce layout thrashing */
.hero-section {
    contain: layout style paint;
}

.tech-section,
.impact-section,
.leadership-section {
    contain: layout style;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'PT Sans', sans-serif;
    background: var(--neutral-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-white);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Header Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(3, 14, 46, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: rgba(3, 14, 46, 0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--pure-white) !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--pure-white) !important;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--pure-white);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
    border: 2px solid var(--pure-white) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.7rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--pure-white) !important;
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    border-color: var(--pure-white) !important;
}

.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px !important;
    height: 24px !important;
}

.navbar-collapse {
    background: rgba(3, 14, 46, 0.98) !important;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    height: 160vh;
    background: linear-gradient(rgba(249, 249, 249, 0.3), rgba(3, 14, 46, 0.3)), 
                url('../Airboard_Assets/Airboard_Assets/Mainpage_Scrollable BG.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20vh; /* Extend background to cover CO2 heading area */
    left: 0;
    right: 0;
    height: 40vh; /* Height to reach CO2 heading */
    background: linear-gradient(rgba(3, 14, 46, 0.25), rgba(3, 14, 46, 0.15)), 
                url('../Airboard_Assets/Airboard_Assets/Mainpage_Scrollable BG.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 80%);
}

.hero-content {
    text-align: center;
    color: var(--pure-white);
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
    background: var(--secondary-blue);
    color: var(--pure-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 128, 0.3);
    color: var(--pure-white);
}

/* CO2 Capture Section with 25% Overlap */
.co2-capture-section {
    background: var(--neutral-white);
    position: relative;
    margin-top: -20vh; /* Reduced overlap to account for extended hero */
    padding-top: 20vh; /* Compensate for overlap */
    padding-bottom: 3rem;
    z-index: 2;
}

.co2-info-box-overlap {
    background: rgba(3, 14, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    color: var(--pure-white);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
    top: -35vh;
}

.co2-info-box-overlap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
}

.co2-info-box-overlap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* CO2 Info Box */
.co2-info-box {
    background: rgba(3, 14, 46, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    margin: -8rem 0 3rem 0; /* Increased negative margin for 25% overlap */
    color: var(--pure-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.co2-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
}

.co2-info-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.co2-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.co2-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Technology Section */
.tech-section {
    background: linear-gradient(135deg, rgba(3, 14, 46, 0.8) 0%, rgba(0, 0, 128, 0.6) 100%);
    padding: 5rem 0;
    position: relative;
}

/* Shimmer animation */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Airboard_Assets/Airboard_Assets/Tech Section Heading.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--pure-white);
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-blue);
    margin: 1rem auto;
    border-radius: 2px;
}

.tech-box {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.tech-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-box-header {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: var(--pure-white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tech-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--pure-white);
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.tech-body {
    padding: 2rem;
}

.tech-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-grey);
    margin: 0;
}

/* Impact Section */
.impact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../Airboard_Assets/Airboard_Assets/Impact BG.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    color: var(--pure-white);
    text-align: center;
}

.impact-stat {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.6;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vision-mission-container {
    margin: 4rem 0;
}

.vision-mission-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--pure-white);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.vision-mission-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
}

.vision-mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* UN SDG Section */
.un-sdg-section {
    padding: 3rem 0;
}

.un-sdg-title {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--pure-white);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-block;
    margin-bottom: 3rem;
}

.sdg-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sdg-image {
    width: 100px;
    height: 100px;
    border: 4px solid var(--pure-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sdg-image:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Leadership Section */
.leadership-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../Airboard_Assets/Airboard_Assets/Leadership BG.png');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: var(--pure-white);
}

.leadership-title-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--pure-white);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-block;
    margin-bottom: 3rem;
}

.member-card {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: url('../Airboard_Assets/Airboard_Assets/Member Grp.png');
    background-size: cover;
    background-position: center;
    border: 4px solid var(--secondary-blue);
}

.member-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
}

.linkedin-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.linkedin-icon:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--header-bg) 100%);
    color: var(--pure-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-content h6 {
    color: var(--pure-white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pure-white);
    opacity: 0.9;
}

.footer-contact a,
.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.hover-text-white:hover {
    color: var(--pure-white) !important;
    transform: translateX(5px);
}

.footer-location {
    color: var(--pure-white);
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.95rem;
    opacity: 0.8;
    color: var(--pure-white);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--pure-white);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.3);
    color: var(--pure-white);
}

.social-icon i {
    font-size: 1.1rem;
}

/* Newsletter Signup */
.newsletter-signup .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--pure-white);
    border-radius: 25px 0 0 25px;
}

.newsletter-signup .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-signup .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 128, 0.25);
    color: var(--pure-white);
}

.newsletter-signup .btn-outline-light {
    border-radius: 0 25px 25px 0;
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.newsletter-signup .btn-outline-light:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links ul li {
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--pure-white) !important;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-legal {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .newsletter-signup {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-logo-text {
        font-size: 1.3rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .social-icons {
        gap: 0.6rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-section::after {
        bottom: -12vh; /* Smaller extension on mobile */
        height: 15vh;
    }
    
    .co2-capture-section {
        margin-top: -15vh; /* Reduced overlap on mobile */
        padding-top: 15vh;
        padding-bottom: 2rem;
    }
    
    .co2-info-box-overlap {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .tech-section {
        padding: 3rem 0 4rem 0;
    }
    
    .navbar-toggler {
        border: 2px solid var(--pure-white) !important;
        background: rgba(255, 255, 255, 0.15) !important;
        padding: 0.6rem 0.8rem !important;
        margin-right: 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-radius: 12px;
        background: rgba(3, 14, 46, 0.98) !important;
        backdrop-filter: blur(15px);
        padding: 1.5rem !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.3rem 0;
        padding: 0.8rem 1.5rem !important;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .tech-box {
        margin-bottom: 1.5rem;
    }
    
    .tech-box-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-number {
        font-size: 2rem;
    }
    
    .tech-title {
        font-size: 1.3rem;
    }
    
    .sdg-images {
        gap: 0.5rem;
    }
    
    .sdg-image {
        width: 80px;
        height: 80px;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
    
    .privacy-terms {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .co2-info-box {
        padding: 1.5rem;
    }
    
    .tech-body {
        padding: 1.5rem;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
}

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}
