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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #12182e;
    --bg-card: #1a1f3a;
    --text-primary: #e8eaf0;
    --text-secondary: #a0a8c8;
    --accent: #4a7fff;
    --accent-hover: #6a94ff;
    --border: rgba(74, 127, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
    --glow: rgba(74, 127, 255, 0.4);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body.light-theme {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1f3a;
    --text-secondary: #5a6584;
    --accent: #4a7fff;
    --accent-hover: #3868ef;
    --border: rgba(74, 127, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.08);
    --glow: rgba(74, 127, 255, 0.3);
}

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

/* smooth scroll + 10% smaller website */
html {
    font-size: 90%;
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #12182e;
    border-bottom: 1px solid rgba(74, 127, 255, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a7fff;
    letter-spacing: -0.5px;
}

.logo {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #a0a8c8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4a7fff;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: #1a1f3a;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #4a7fff;
}

.theme-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8eaf0;
    position: relative;
    transition: all 0.3s ease;
}

body.light-theme .theme-icon {
    background: #fdb813;
    box-shadow: 0 0 10px rgba(253, 184, 19, 0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #e8eaf0;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(74, 127, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-card {
    max-width: 800px;
    text-align: center;
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow);
    position: relative;
    animation: fadeInUp 0.8s ease;
    z-index: 1;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: borderRotate 3s linear infinite;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 2px solid var(--border);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.showcase {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.showcase-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.showcase-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.services {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.vision {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.vision-content {
    max-width: 1100px;
    margin: 0 auto;
}

.vision-card {
    background: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow);
    margin-bottom: 3rem;
}

.vision-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.vision-card p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.portfolio {
    padding: 6rem 2rem;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.cta {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn-glow {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 2s linear infinite;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    color: white;
    background: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow);
}

.footer {
    background: #12182e;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(74, 127, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-brand p {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a7fff;
}

.footer-text {
    color: #a0a8c8;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background: #12182e;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        border-bottom: 1px solid rgba(74, 127, 255, 0.2);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .showcase-title {
        font-size: 2rem;
    }

    .showcase-subtitle {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .vision-card {
        padding: 3rem 2rem;
    }

    .cta {
        padding: 6rem 2rem;
    }

    .btn-glow {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}
