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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d5 50%, #d4c7b0 100%);
    color: #2a2520;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Enhanced DNA Background Canvas - Optimized */
#dna-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

/* Optimized DNA Particles - Reduced for mobile */
.dna-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(
        circle,
        rgba(255, 215, 170, 0.6) 0%,
        rgba(255, 228, 196, 0.4) 40%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: softParticleFloat 4s infinite ease-in-out;
    will-change: transform, opacity;
}

.dna-particle:nth-child(2n) {
    background: radial-gradient(
        circle,
        rgba(255, 228, 196, 0.6) 0%,
        rgba(245, 222, 179, 0.4) 40%,
        transparent 100%
    );
    animation-delay: -1s;
}

.dna-particle:nth-child(3n) {
    background: radial-gradient(
        circle,
        rgba(245, 222, 179, 0.6) 0%,
        rgba(222, 184, 135, 0.4) 40%,
        transparent 100%
    );
    animation-delay: -2s;
}

.dna-particle.enhanced-glow {
    width: 4px;
    height: 4px;
    background: radial-gradient(
        circle,
        rgba(255, 223, 186, 0.7) 0%,
        rgba(255, 235, 205, 0.5) 30%,
        transparent 100%
    );
    animation: elegantGlowFloat 3s infinite ease-in-out;
}

@keyframes softParticleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-4px) scale(1.05); 
        opacity: 0.7;
    }
}

@keyframes elegantGlowFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-6px) scale(1.1); 
        opacity: 0.8;
    }
}

.ripple {
    position: absolute;
    border: 2px solid rgba(139, 115, 85, 0.6);
    border-radius: 50%;
    transform: scale(0);
    animation: enhancedRippleEffect 1.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes enhancedRippleEffect {
    0% { 
        transform: scale(0); 
        opacity: 1;
    }
    100% { 
        transform: scale(6); 
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile Hamburger Menu - Now visible on all devices */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1001;
    background: rgba(248, 246, 240, 0.9);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 2px 10px rgba(139, 115, 85, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #8B7355;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(248, 246, 240, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    border-left: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: -5px 0 20px rgba(139, 115, 85, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 20px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    padding-bottom: 15px;
}

.mobile-menu ul li a {
    color: #5A4A3A;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: #8B7355;
}

.menu-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 115, 85, 0.2);
}

.menu-section h4 {
    font-family: 'Orbitron', sans-serif;
    color: #2a2520;
    margin-bottom: 15px;
    font-size: 16px;
}

.menu-section ul li a {
    font-size: 16px;
    color: #6B5B4F;
}

/* Header Styles */
header {
    padding: 20px 0;
    background: rgba(248, 246, 240, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 2px 20px rgba(139, 115, 85, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px rgba(139, 115, 85, 0.5));
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(90deg, #8B7355 0%, #A0895C 50%, #B89968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(139, 115, 85, 0.3);
}

/* Remove desktop nav - everything goes in hamburger */
nav {
    display: none;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #2a2520;
    text-shadow: 
        0 0 20px rgba(139, 115, 85, 0.3),
        0 0 40px rgba(139, 115, 85, 0.2);
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #5A4A3A;
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B7355 0%, #A0895C 50%, #B89968 100%);
    color: #f8f6f0;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(139, 115, 85, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 45px rgba(139, 115, 85, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(248, 246, 240, 0.5);
    position: relative;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 60px;
    color: #2a2520;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8B7355 0%, #B89968 100%);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 115, 85, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(248, 246, 240, 0.9) 0%, rgba(232, 226, 213, 0.8) 100%);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(139, 115, 85, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(139, 115, 85, 0.4);
    box-shadow: 
        0 15px 45px rgba(139, 115, 85, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #8B7355;
    filter: drop-shadow(0 0 15px rgba(139, 115, 85, 0.3));
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #2a2520;
}

.feature-card p {
    color: #5A4A3A;
    opacity: 0.9;
}

/* Use Case Cards - Optimized */
.use-case-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.95), rgba(107, 91, 79, 0.95));
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.feature-card:hover .use-case-card {
    opacity: 1;
    transform: translateY(0);
}

.use-case-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.use-case-list {
    list-style-type: none;
    padding: 0;
}

.use-case-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.use-case-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #A0895C;
    font-weight: bold;
}

.feature-content {
    transition: opacity 0.2s ease;
}

.feature-card:hover .feature-content {
    opacity: 0.1;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    text-align: center;
    width: 250px;
    margin: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B7355 0%, #B89968 100%);
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    color: #f8f6f0;
    box-shadow: 
        0 0 30px rgba(139, 115, 85, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.step h3 {
    font-family: 'Orbitron', sans-serif;
    color: #2a2520;
    margin-bottom: 10px;
}

.step p {
    color: #5A4A3A;
    opacity: 0.9;
}

/* Emergency Types */
.emergency-types {
    padding: 100px 0;
    background: rgba(248, 246, 240, 0.5);
}

.emergency-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.emergency-card {
    background: linear-gradient(145deg, rgba(248, 246, 240, 0.9) 0%, rgba(232, 226, 213, 0.8) 100%);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 40px rgba(139, 115, 85, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.emergency-card:hover {
    transform: scale(1.02) translateY(-3px);
    border-color: rgba(139, 115, 85, 0.4);
    box-shadow: 
        0 15px 45px rgba(139, 115, 85, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.emergency-icon {
    font-size: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px currentColor);
}

.emergency-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: #2a2520;
    margin-bottom: 10px;
}

.emergency-card p {
    color: #5A4A3A;
    opacity: 0.9;
}

.medical { color: #C85A5A; }
.fire { color: #D4843D; }
.accident { color: #5A7BC8; }
.danger { color: #9A5AC8; }

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.95) 0%, rgba(232, 226, 213, 0.95) 100%);
    padding: 50px 0 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 -5px 30px rgba(139, 115, 85, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    width: 300px;
    margin: 20px;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #2a2520;
}

.footer-section p {
    color: #5A4A3A;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(139, 115, 85, 0.1);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    color: #8B7355;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background: rgba(139, 115, 85, 0.2);
    border-color: rgba(139, 115, 85, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        0 10px 30px rgba(139, 115, 85, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    color: rgba(90, 74, 58, 0.8);
}

/* Download Status Message */
.download-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(232, 226, 213, 0.98) 100%);
    border: 2px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    z-index: 10000;
    box-shadow: 
        0 20px 60px rgba(139, 115, 85, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-status.show {
    opacity: 1;
    visibility: visible;
}

.download-status h3 {
    font-family: 'Orbitron', sans-serif;
    color: #2a2520;
    margin-bottom: 15px;
    font-size: 20px;
}

.download-status p {
    color: #5A4A3A;
    margin-bottom: 20px;
}

.download-status .close-btn {
    background: linear-gradient(135deg, #8B7355 0%, #B89968 100%);
    color: #f8f6f0;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-status .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.4);
}

/* DNATech Link Styling */
.copyright a {
    color: #8B7355;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.copyright a:hover {
    color: #2a2520 !important;
    border-bottom-color: #8B7355 !important;
    transform: translateY(-1px);
}

/* Mobile Responsive Design - Performance Optimized */
@media (max-width: 768px) {
    /* Disable heavy animations on mobile */
    .dna-particle {
        display: none !important;
    }
    
    #dna-canvas {
        display: none !important;
    }
    
    /* Simplified mobile interactions */
    .feature-card:hover {
        transform: none;
    }
    
    .emergency-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Mobile-friendly use case cards */
    .use-case-card {
        position: static;
        opacity: 1;
        transform: none;
        background: rgba(139, 115, 85, 0.1);
        color: #2a2520;
        margin-top: 15px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .use-case-card h4 {
        color: #2a2520;
        border-bottom-color: rgba(139, 115, 85, 0.3);
    }
    
    .use-case-list li:before {
        color: #8B7355;
    }
    
    .feature-content {
        opacity: 1 !important;
    }
    
    /* Mobile text sizes */
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    /* Mobile layout adjustments */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .emergency-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        width: 100%;
        max-width: 300px;
    }
    
    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Reduced padding for mobile */
    .hero {
        padding: 120px 0 80px;
    }
    
    .features, .how-it-works, .emergency-types {
        padding: 60px 0;
    }
}
