@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
:root {
    --heading-font: 'Helvetica Neue', sans-serif;
    --body-font: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 65px; /* Add padding to account for fixed header */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #282828;
    height: 65px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100%;
    background-color: #282828;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: 'Roboto Mono', monospace;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.nav-links a::before,
.nav-links a::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a::before {
    left: 0;
    top: 40%;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
}

.nav-links a::after {
    right: 0;
    bottom: 40%;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    opacity: 1;
    width: 12px;
    height: 12px;
}

.nav-links a:hover::before {
    top: 35%;
}

.nav-links a:hover::after {
    bottom: 35%;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Active hamburger style */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #282828;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    height: calc(100vh - 65px);
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    font-family: 'Roboto Mono', monospace;
    padding: 1.5rem 5%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Hero section styles removed - will be added directly to each HTML file */

.dud {
    color: #757575;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.stats-section {
    padding: 8rem 5%;
    background: #1a1a1a;
    position: relative;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    max-width: 1400px;
    margin: 0 auto 6rem;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    flex: 1;
    max-width: 60%;
}

.stats-description {
    flex: 1;
    max-width: 40%;
}

.stats-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888;
}

.stats-description strong {
    color: #fff;
}

.stats-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    list-style: none;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-container {
    background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(42,42,42,0.4));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(60,86,255,0.1);
    transition: all 0.3s ease;
}

.stat-container:hover {
    border-color: rgba(60,86,255,0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fde933;
    margin-bottom: 1rem;
}

.percent {
    font-size: 2rem;
}

.source {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    font-family: 'Roboto Mono', monospace;
}

.challenges-container {
    background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(42,42,42,0.4));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(231,76,60,0.1);
}

.challenges-container h3 {
    color: #e74c3c;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.challenge-stat {
    margin-bottom: 1.5rem;
}

.challenge-number {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.solutions-section {
    padding: 8rem 5%;
    background: #282828; /* Same as header background */
    position: relative;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    max-width: 1400px;
    margin: 0 auto 6rem;
}

.solutions-title {
    font-size: 2.5rem;
    line-height: 1.3;
    flex: 1;
    max-width: 60%;
}

.solutions-description {
    flex: 1;
    max-width: 40%;
}

.solutions-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.solution-card {
    background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(42,42,42,0.4));
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(52,152,219,0.1);
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: rgba(52,152,219,0.3);
    transform: translateY(-5px);
}

.solution-card h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.solution-card p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-card ul {
    list-style: none;
    color: #aaa;
}

.solution-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.solution-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
}

.graphic-section {
    background: #1a1a1a;
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.graphic-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    height: 600px;
}

.graphic-left {
    position: relative;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    color: #3498db;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
}

.line-draw {
    position: absolute;
    left: 3rem;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, #3498db, transparent);
    animation: lineGrow 2s ease-out forwards;
}

.stats-highlight {
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
}

.highlight-number {
    font-size: 8rem;
    font-weight: 700;
    color: #3498db;
    display: block;
    line-height: 1;
}

.highlight-text {
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.circuit-grid {
    position: relative;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(52,152,219,0.05) 1px, transparent 1px),
        linear-gradient(rgba(52,152,219,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridFade 2s ease-out forwards;
}

.circuit-grid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(52,152,219,0.1) 0%, transparent 60%);
}

@keyframes lineGrow {
    to {
        height: 100%;
    }
}

@keyframes gridFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-heading {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.service-item {
    position: relative;
    padding-left: 2rem;
    max-width: 500px;
}

.service-item h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.service-item p {
    color: #888;
    line-height: 1.6;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db 0%, transparent 100%);
}

/* Active navigation styling */
.nav-links a.active {
    color: #3498db !important;
}

/* Footer styling consistency */
footer {
    background-color: #232323; /* Standardized to match algorithms.html */
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    transition: color 0.3s;
    position: relative;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: row;
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2.5rem;
    }
    
    .service-item {
        padding-left: 1.5rem;
    }
    
    .graphic-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 2rem;
    }
    
    .graphic-left {
        height: 300px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .solutions-grid,
    .stats-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 0 5%;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .footer-logo {
        font-size: 2rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 1200px) {
    .solutions-header,
    .stats-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .solutions-title,
    .solutions-description,
    .section-title,
    .stats-description {
        max-width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-features {
        grid-template-columns: repeat(2, 1fr);
    }
}