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

:root {
    --primary-blue: #93c5fd;
    --primary-blue-dark: #60a5fa;
    --bg-primary: #1a1d23;
    --bg-secondary: #252a33;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(147, 197, 253, 0.2);
    --card-bg: rgba(37, 42, 51, 0.6);
    --transition-speed: 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Content Section Management */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Navigation active state - tab-like appearance */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #ffffff !important;
    background: rgba(147, 197, 253, 0.1);
    border-bottom: 2px solid #93c5fd;
}

/* Legal Page Styles */
.legal-page {
    min-height: 100vh;
    padding-top: 100px;
}

.legal-section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-section-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -1px;
    opacity: 1;
    transform: none;
}

.legal-section-content h3 {
    color: #f3f4f6;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.legal-section-content h4 {
    color: #e5e7eb;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.legal-section-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #d1d5db;
}

.legal-section-content ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

.legal-section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-section-content a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, var(--bg-secondary) 0%, var(--bg-primary) 50%);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(147, 197, 253, 0.02) 35px, rgba(147, 197, 253, 0.02) 36px),
        repeating-linear-gradient(60deg, transparent, transparent 35px, rgba(147, 197, 253, 0.02) 35px, rgba(147, 197, 253, 0.02) 36px),
        repeating-linear-gradient(120deg, transparent, transparent 35px, rgba(147, 197, 253, 0.02) 35px, rgba(147, 197, 253, 0.02) 36px);
    animation: grid-move 40s linear infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 0%, transparent 48%, rgba(147, 197, 253, 0.015) 49%, rgba(147, 197, 253, 0.015) 51%, transparent 52%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 48%, rgba(147, 197, 253, 0.015) 49%, rgba(147, 197, 253, 0.015) 51%, transparent 52%, transparent 100%);
    background-size: 120px 120px;
    animation: circuit-pulse 8s ease-in-out infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes circuit-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Header */
header {
    background: rgba(26, 29, 35, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
    z-index: 1001;
}

.logo:hover {
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--text-primary);
}

/* Hero Section with Typing Animation */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typing-container {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(44, end) forwards;
    max-width: 100%;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--text-primary);
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 400;
    opacity: 0;
    margin: 0 auto;
}

.hero p.visible {
    animation: fade-in 0.8s ease-in forwards;
}

/* Sections */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -1px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.service-card:nth-child(1)::after {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cpath d="M100 20 L160 50 L160 120 Q160 150 100 170 Q40 150 40 120 L40 50 Z" fill="none" stroke="%2393c5fd" stroke-width="4"/%3E%3Cpath d="M100 50 L130 65 L130 110 Q130 125 100 135 Q70 125 70 110 L70 65 Z" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Ccircle cx="100" cy="95" r="15" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Cpath d="M100 110 L100 125" stroke="%2393c5fd" stroke-width="3"/%3E%3Ccircle cx="100" cy="130" r="5" fill="%2393c5fd"/%3E%3C/svg%3E');
}

.service-card:nth-child(2)::after {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Crect x="40" y="60" width="30" height="50" rx="3" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Crect x="85" y="40" width="30" height="70" rx="3" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Crect x="130" y="50" width="30" height="60" rx="3" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Cline x1="55" y1="110" x2="55" y2="130" stroke="%2393c5fd" stroke-width="3"/%3E%3Cline x1="100" y1="110" x2="100" y2="140" stroke="%2393c5fd" stroke-width="3"/%3E%3Cline x1="145" y1="110" x2="145" y2="135" stroke="%2393c5fd" stroke-width="3"/%3E%3Cline x1="30" y1="150" x2="170" y2="150" stroke="%2393c5fd" stroke-width="4"/%3E%3Cline x1="50" y1="150" x2="30" y2="170" stroke="%2393c5fd" stroke-width="3"/%3E%3Cline x1="150" y1="150" x2="170" y2="170" stroke="%2393c5fd" stroke-width="3"/%3E%3C/svg%3E');
}

.service-card:nth-child(3)::after {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cg%3E%3Cpath d="M 48 55 L 48 50 L 52 50 L 52 45 L 56 45 L 56 50 L 60 50 L 60 55 L 64 55 L 64 50 L 68 50 L 68 45 L 72 45 L 72 50 L 76 50 L 76 55 L 76 60 L 80 60 L 80 64 L 85 64 L 85 68 L 80 68 L 80 72 L 76 72 L 76 76 L 80 76 L 80 80 L 85 80 L 85 84 L 80 84 L 80 88 L 76 88 L 76 92 L 72 92 L 72 97 L 68 97 L 68 92 L 64 92 L 64 97 L 60 97 L 60 92 L 56 92 L 56 97 L 52 97 L 52 92 L 48 92 L 48 88 L 44 88 L 44 84 L 39 84 L 39 80 L 44 80 L 44 76 L 48 76 L 48 72 L 44 72 L 44 68 L 39 68 L 39 64 L 44 64 L 44 60 L 48 60 Z" fill="none" stroke="%2393c5fd" stroke-width="2.5"/%3E%3Ccircle cx="62" cy="71" r="12" fill="none" stroke="%2393c5fd" stroke-width="2.5"/%3E%3C/g%3E%3Cg%3E%3Cpath d="M 105 75 L 105 68 L 110 68 L 110 61 L 115 61 L 115 68 L 120 68 L 120 75 L 125 75 L 125 68 L 130 68 L 130 61 L 135 61 L 135 68 L 140 68 L 140 75 L 140 82 L 145 82 L 145 87 L 151 87 L 151 92 L 145 92 L 145 97 L 140 97 L 140 102 L 145 102 L 145 107 L 151 107 L 151 112 L 145 112 L 145 117 L 140 117 L 140 124 L 135 124 L 135 131 L 130 131 L 130 124 L 125 124 L 125 131 L 120 131 L 120 124 L 115 124 L 115 131 L 110 131 L 110 124 L 105 124 L 105 117 L 100 117 L 100 112 L 94 112 L 94 107 L 100 107 L 100 102 L 105 102 L 105 97 L 100 97 L 100 92 L 94 92 L 94 87 L 100 87 L 100 82 L 105 82 Z" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3Ccircle cx="122.5" cy="96" r="16" fill="none" stroke="%2393c5fd" stroke-width="3"/%3E%3C/g%3E%3Cg%3E%3Cpath d="M 43 110 L 43 105 L 47 105 L 47 100 L 51 100 L 51 105 L 55 105 L 55 110 L 59 110 L 59 105 L 63 105 L 63 100 L 67 100 L 67 105 L 71 105 L 71 110 L 71 115 L 75 115 L 75 119 L 80 119 L 80 123 L 75 123 L 75 127 L 71 127 L 71 131 L 75 131 L 75 135 L 80 135 L 80 139 L 75 139 L 75 143 L 71 143 L 71 147 L 67 147 L 67 152 L 63 152 L 63 147 L 59 147 L 59 152 L 55 152 L 55 147 L 51 147 L 51 152 L 47 152 L 47 147 L 43 147 L 43 143 L 39 143 L 39 139 L 34 139 L 34 135 L 39 135 L 39 131 L 43 131 L 43 127 L 39 127 L 39 123 L 34 123 L 34 119 L 39 119 L 39 115 L 43 115 Z" fill="none" stroke="%2393c5fd" stroke-width="2.5"/%3E%3Ccircle cx="57" cy="126" r="13" fill="none" stroke="%2393c5fd" stroke-width="2.5"/%3E%3C/g%3E%3C/svg%3E');
}

.service-card:hover::after {
    opacity: 0.08;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.service-card h3 {
    color: #f3f4f6;
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.service-card strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Contact Section */
.contact-intro {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.contact-intro p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-intro strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: #e5e7eb;
    font-size: 1rem;
}

.required {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--card-bg);
    color: #e5e7eb;
    transition: all var(--transition-speed);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(147, 197, 253, 0.4);
    background: rgba(37, 42, 51, 0.8);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.privacy-note {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text-secondary);
}

.privacy-note a {
    #color: var(--primary-blue);
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-note a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

button {
    background: var(--text-primary);
    color: #0d0d0d;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

button:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
footer {
    background: rgba(26, 29, 35, 0.95);
    border-top: 1px solid var(--border-color);
    #color: #6b7280;
    color: #e5e7eb;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    gap: 0;
    background: transparent;
    border: none;
    padding: 10px;
    width: 45px;
    height: 38px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-muted);
    transition: 0.3s;
    display: block;
}

@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 29, 35, 0.98);
        backdrop-filter: blur(12px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        gap: 0;
    }

    nav ul.active {
        left: 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .nav-link.active {
        border-bottom: none;
        border-left: 3px solid #93c5fd;
        border-radius: 0;
    }

    /* Show hamburger on mobile - FIXED positioning */
    .hamburger {
        display: flex;
        position: fixed;
        right: 1.5rem;
        top: 18px;
    }

    /* Mobile-specific typing animation fixes */
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        line-height: 1.4;
        min-height: 4.5rem;
    }
    
    .typing-container {
        display: inline-block;
        max-width: 100%;
        text-align: center;
    }
    
    .typing-text {
        display: inline;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        animation: none !important;
        width: auto !important;
        overflow: visible !important;
    }
    
    .cursor {
        display: inline-block;
        width: 2px;
        height: 1.8rem;
        background: var(--text-primary);
        margin-left: 3px;
        vertical-align: baseline;
        transform: translateY(0.3rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .about-content {
        padding: 2rem;
    }

    .legal-page {
        padding-top: 80px;
    }

    .legal-section-content {
        padding: 1rem;
    }

    .legal-section-content h2 {
        font-size: 2rem;
    }
}

/* Extra small devices - scale down further if needed */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .cursor {
        height: 1.5rem;
    }
}

/* Honeypot field */
.honeypot-field {
    position: absolute;
    left: -5000px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Status messages for AJAX answer */
#form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    text-align: center;
}

#form-status.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    display: block;
}

#form-status.error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
    display: block;
}

#form-status.sending {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: block;
}
