/* Main Stylesheet for HALTAI */

/* Import enhanced stylesheets */
@import 'variables.css';
@import 'animations.css';
@import 'loader.css';
@import 'glass-morphism.css';
@import '3d-effects.css';
@import 'interactive-ui.css';
@import 'components.css';
@import 'dark-theme.css';

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-time) ease,
                color var(--transition-time) ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Lead text style for hero section */
.lead-text {
    font-size: 1.5rem;
    font-weight: var(--weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.large-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Button states */
.copy-btn.copied {
    background: rgba(46, 204, 113, 0.3);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    opacity: 0;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Glow Effects */
.neon-text {
    text-shadow: 0 0 5px rgba(67, 97, 238, 0.7),
                 0 0 10px rgba(67, 97, 238, 0.5),
                 0 0 15px rgba(67, 97, 238, 0.3);
}

.neon-box {
    box-shadow: 0 0 5px rgba(67, 97, 238, 0.7),
                0 0 10px rgba(67, 97, 238, 0.5),
                0 0 15px rgba(67, 97, 238, 0.3);
}

/* Header & Navigation */
header {
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-theme="dark"] header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #151515 0%, #252525 100%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 5; /* Ensure content is above background elements */
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem; /* Add more bottom margin to prevent wave overlap */
    position: relative; 
    z-index: 5; /* Ensure buttons are clickable */
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2; /* Keep wave below content but above background */
}

/* Particles */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Ensure particles stay behind content */
}

/* Hero flex container */
.hero-flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.hero-flex-container .hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-flex-container .hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .feature-card {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-card {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    background-size: 200% 200%, 200% 200%;
    animation: shimmer-bg 6s infinite linear;
}

.project-image.code-background {
    background-color: #1e1e2e;
}

.project-image.tech-pattern {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
}

@keyframes shimmer-bg {
    0% { background-position: 0% 0%, 100% 100%; }
    100% { background-position: 100% 100%, 0% 0%; }
}

.project-card h3 {
    margin-bottom: 0.75rem;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.repo-stats {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: white;
}

[data-theme="dark"] .how-it-works {
    background-color: var(--bg-color);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

[data-theme="dark"] .step {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-connector {
    height: 4px;
    width: 50px;
    background-color: var(--primary-color);
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.cta-content {
    color: white;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Accordion */
.faq {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

[data-theme="dark"] .accordion-item {
    background-color: var(--bg-light);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.accordion-icon {
    font-weight: bold;
    font-size: 1.5rem;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background-color: #1a1a1a;
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.875rem;
}

.disclaimer-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

[data-theme="dark"] .cookie-consent {
    background-color: #222;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    padding: 0 20px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-light);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Switch - Toggle Control */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-option div {
    flex: 1;
}

.cookie-option h4 {
    margin-bottom: 0.5rem;
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Project Pages Styles */
.project-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.project-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/grid-pattern.svg');
    opacity: 0.1;
    z-index: -1;
}

.project-hero.alt-style {
    background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
}

.project-hero.alt-style:before {
    opacity: 0.15;
}

.project-hero-content {
    max-width: 600px;
}

.project-hero-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.project-overview {
    padding: 5rem 0;
}

.light-section {
    background-color: var(--bg-light);
}

.light-section-alt {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-pill {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Code snippet styles */
.code-snippet {
    position: relative;
    background-color: #1e1e2e;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.code-snippet pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-snippet code {
    color: #f8f8f2;
    font-size: 0.95rem;
    font-family: var(--font-mono, monospace);
    line-height: 1.5;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lighting Effects */
.glow-text {
    transition: text-shadow 0.3s ease;
}

.glow-text:hover {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5),
                 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.gradient-text-alt {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect:hover {
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5),
                0 0 30px rgba(var(--primary-rgb), 0.3);
}

.glow-effect:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.7s ease;
}

.glow-effect:hover:before {
    left: 100%;
}

/* Interactive Demos */
.interactive-demo {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.demo-preview {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .demo-preview {
    background-color: var(--bg-light);
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    z-index: 1100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Error page styling */
.error-page {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    margin-bottom: 2rem;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Scroll progress indicator */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 0%;
    z-index: 1010;
    transition: width 0.1s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
    }

    .cookie-buttons {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 4px;
        height: 40px;
    }

    .cta-buttons, 
    .project-links,
    .policy-buttons,
    .error-actions {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-flex-container {
        flex-direction: column;
    }
  
    .hero-image {
        width: 100%;
        max-width: none;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Replace images with CSS-based visual elements */
.hero-image {
    height: 350px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual {
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.2) 10px,
        rgba(255, 255, 255, 0.2) 20px
    );
}

.hero-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 15px 15px;
}

/* Code visualization */
.code-visual {
    height: 100%;
    background-color: #1e1e2e;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-mono, monospace);
    color: #f8f8f2;
}

.code-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.code-visual::after {
    content: '● ● ●';
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 14px;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.code-line {
    display: block;
    padding: 0 15px;
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

.code-line:nth-child(3n+1) {
    color: #ff79c6;
}

.code-line:nth-child(3n+2) {
    color: #8be9fd;
}

.code-line:nth-child(3n) {
    color: #50fa7b;
}

/* Geometric decorations */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    filter: blur(30px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 60%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Ensure animations work for reveals */
[data-delay="100"] {
    animation-delay: 100ms;
}

[data-delay="200"] {
    animation-delay: 200ms;
}

[data-delay="300"] {
    animation-delay: 300ms;
}

[data-delay="400"] {
    animation-delay: 400ms;
}
