
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 75px;
}

:root {
    --hero-light: url('light-hero.jpg');
    --hero-dark: url('dark-hero.jpg');
    --primary-color: #00d4aa;
    --secondary-color: #0066cc;
    --accent-color: #ff6b35;
    --gradient-1: linear-gradient(135deg, #00d4aa, #0066cc);
    --gradient-2: linear-gradient(135deg, #ff6b35, #ff8e53);
}

/* Default to dark mode */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
    --card-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a, #3a3a3a);
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --navbar-bg-scroll: rgba(10, 10, 10, 0.98);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
    --card-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a, #3a3a3a);
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --navbar-bg-scroll: rgba(10, 10, 10, 0.98);
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --card-bg: linear-gradient(135deg, #ffffff, #f8f9fa, #e9ecef);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scroll: rgba(255, 255, 255, 0.98);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Theme Toggle Button */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 34px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid var(--border-color);
    margin-left: 0.8rem;
  }

[data-theme="light"] .theme-toggle::before {
  transform: translateX(20px);
}

/* Icons */
.theme-toggle-icon {
  position: absolute;
  font-size: 20px;
  transition: opacity 0.3s ease;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.theme-toggle .sun-icon {
  right: 8px;
  opacity: 0;
}

.theme-toggle .moon-icon {
  left: 8px;
  opacity: 1;
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 0;
}

/* Navigation */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  
.navbar.scrolled {
    background: var(--navbar-bg-scroll);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    margin: 0 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Default toggle icon (light mode) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Dark mode toggle icon */
[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-color: transparent;
}

/* Center menu items in collapsed view */
@media (max-width: 991.98px) {
  .navbar-collapse {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }

  .navbar-nav {
    margin: 0 auto;
    gap: 1rem;
  }

  /* Right-align CTA or theme toggle */
  .navbar .theme-toggle,
  .navbar .btn,
  .navbar .cta-wrapper {
    margin-left: auto;
    margin-right: 0;
    display: block;
    text-align: right;
  }

  .navbar-nav .nav-item .theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 8px;
  }

}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #f5f5f5;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

[data-theme="light"] .hero::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

  /* Button Styling */
  .btn-primary-custom,
  .btn-outline-custom {
    display: inline-block;
    padding: 12px 24px;
    margin-right: 15px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
  }  

.btn-primary-custom {
    background: var(--gradient-1);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 1rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.3);
    color: white;
    background-color: #3730a3;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Image Wrapper */
.hero-image-wrapper {
  max-width: 320px;
  position: relative;
}

.gradient-circle {
  background: radial-gradient(circle at center, #4f46e5 0%, #1a1a1a 100%);
  padding: 20px;
  border-radius: 50%;
  overflow: hidden;
}

.gradient-circle {
    padding: 10px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);

    /* Control size */
    max-width: 400px;   /* smaller circle */
    margin: 0 auto;     /* center align */
}

.gradient-circle img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p.lead {
    font-size: 1.1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    text-align: center;
  }
}


/* Stats Section */

.stat-card {
    background: var(--card-bg, linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.05)));
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  
  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #00d4aa);
    margin-bottom: 10px;
    display: block;
  }
  
  .stat-label {
    font-size: 1rem;
    color: var(--text-muted, #ccc);
    letter-spacing: 0.5px;
  }

.stats-section {
    background: var(--dark-secondary);
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}


.card {
    background: var(--dark-secondary);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--dark-tertiary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.card-hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.strategy-card.hover-active {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.strategy-card.animate-hover,
.feature-card.animate-hover,
.impact-item.animate-hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}


/* Features Section */
.features-section {
    padding: 2rem 0;
    background: var(--dark-bg);
}

.feature-card {
    min-height: 320px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    justify-content: center;
    background: var(--dark-secondary);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--dark-tertiary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    background: var(--dark-secondary);
    padding: 4rem 0;
    position: relative;
}

.mission-content {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;

}

/* Impact Areas */
.impact-section {
    padding: 2rem 0;
    background: var(--dark-bg);
}

.impact-item {
    background: var(--dark-secondary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: border 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-item:hover::before {
    opacity: 2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.impact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: linear-gradient(
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05)
    ), var(--dark-secondary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.2);
}


.impact-icon {
    font-size: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.impact-item h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.impact-item p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Team Section */
.team-section {
    background: var(--dark-secondary);
    padding: 2rem 0;
}

.team-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.company-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.company-stat {
    text-align: center;
    margin: 1rem;
}

.company-stat .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.company-stat .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Contributors Section */
.contributors-section {
  color: #e2e8f0;
}

.contrib-item {
  border: 1px solid #334155;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.contrib-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: #38bdf8; /* accent on hover */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.contrib-icon {
  font-size: 2.5rem;
  color: #38bdf8; /* accent color (cyan/light blue) */
  margin-bottom: 15px;
}

.contrib-list {
  text-align: left;
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.btn-main {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-main:hover {
  background: #0ea5e9;
  color: #fff;
}


/* CTA Section */
.cta-section {
    background: var(--dark-bg);
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

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

/* Footer */
.footer {
    background: var(--dark-secondary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--dark-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

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

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-tertiary);
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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


/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .company-info {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin: 1rem 0;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--dark-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}