@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #79c0ff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 5rem 0;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f6fc;
    text-align: center;
    margin-bottom: 0.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    margin: 1rem auto 2.5rem;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #58a6ff, #1f6feb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
    color: #fff;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #21262d;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0f6fc;
}

.nav-logo span {
    color: #58a6ff;
}

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

.nav-links a {
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #c9d1d9;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 185, 80, 0.06) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f0f6fc;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: #58a6ff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-content .tagline {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 2.5rem;
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #58a6ff, #1f6feb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #8b949e;
    font-size: 0.95rem;
}

.carousel-section {
    background: #161b22;
    overflow: hidden;
}

.carousel {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 45s linear infinite;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    width: 100px;
    color: inherit;
    text-decoration: none;
}

.carousel-item svg,
.carousel-item img {
    width: 64px;
    height: 64px;
    filter: grayscale(0.6) brightness(0.7);
    transition: filter 0.4s, transform 0.4s;
}

.carousel-item:hover svg,
.carousel-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.15);
}

.carousel-item span {
    font-size: 0.75rem;
    color: #8b949e;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s;
}

.carousel-item:hover span {
    color: #f0f6fc;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #8b949e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info .contact-label {
    color: #58a6ff;
    font-weight: 600;
    min-width: 80px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #484f58;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: #3fb950;
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

footer {
    background: #161b22;
    border-top: 1px solid #21262d;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: #484f58;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    nav .container {
        height: 56px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        border-bottom: 1px solid #21262d;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-item {
        width: 80px;
    }

    .carousel-item svg,
    .carousel-item img {
        width: 48px;
        height: 48px;
    }

    .carousel-track {
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

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