/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Particles.js background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #0f1115;
    z-index: -1;
    top: 0;
    left: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: Inter, Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #e8eaf0;
    background-color: #0f1115;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #e8eaf0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: #aab2c5;
    margin-bottom: 1rem;
}

/* Header */
.header {
    position: relative;
    height: 4rem;
}


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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #e8eaf0;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.logo img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.375rem;
    background: radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(15, 17, 21, 0.2) 70%, rgba(15, 17, 21, 0.6) 85%, rgba(15, 17, 21, 0.9) 95%, #0f1115 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Navigation */
.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.nav-burger span {
    width: 1.5rem;
    height: 2px;
    background-color: #e8eaf0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link,
.nav-cta {
    text-decoration: none;
    color: #aab2c5;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link:focus {
    color: #e8eaf0;
}

.nav-cta {
    background: linear-gradient(135deg, #ff4ecd, #00d1ff);
    color: #0f1115;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    min-height: 2.75rem;
}

.nav-cta:hover,
.nav-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 78, 205, 0.3);
}

/* Mobile Navigation */
@media (max-width: 639px) {
    .nav-burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: #12141b;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

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

    .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link,
    .nav-cta {
        padding: 1rem;
        min-height: 2.75rem;
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        margin: 0.5rem 1rem;
        width: auto;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    min-height: 2.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4ecd, #00d1ff);
    color: #0f1115;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 78, 205, 0.3);
    outline: 2px solid #ff4ecd;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    color: #e8eaf0;
    border: 2px solid #aab2c5;
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: #00d1ff;
    color: #00d1ff;
    outline: 2px solid #00d1ff;
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: radial-gradient(ellipse at top, rgba(255, 78, 205, 0.1), transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ff4ecd, #00d1ff, #a3ff12, #9a6bff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Services */

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

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 78, 205, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #e8eaf0;
}

.service-card p {
    margin-bottom: 0;
}

/* About */
.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

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

/* Contact */

.contact-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 960px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-email {
    color: #00d1ff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-block;
    margin: 1rem 0;
}

.contact-email:hover,
.contact-email:focus {
    color: #ff4ecd;
    outline: 2px solid #ff4ecd;
    outline-offset: 2px;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    color: #aab2c5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    color: #00d1ff;
    outline: 2px solid #00d1ff;
    outline-offset: 2px;
}

/* Form */
.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e8eaf0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e8eaf0;
    font-family: inherit;
    font-size: 1rem;
    min-height: 2.75rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d1ff;
    box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-status {
    margin-top: 1rem;
}

.form-success,
.form-error {
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: none;
}

.form-success {
    background-color: rgba(163, 255, 18, 0.1);
    color: #a3ff12;
    border: 1px solid rgba(163, 255, 18, 0.3);
}

.form-error {
    background-color: rgba(255, 78, 205, 0.1);
    color: #ff4ecd;
    border: 1px solid rgba(255, 78, 205, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #aab2c5;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #e8eaf0;
}

@media (max-width: 639px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* Dark theme preference */
@media (prefers-color-scheme: dark) {
    body {
        color: #e8eaf0;
        background-color: #0f1115;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #ff4ecd;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-color: #e8eaf0;
    }

    .btn-secondary {
        border-color: #e8eaf0;
    }
}