/* style.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #050816;
    color: #f9fafb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 20%, #22d3ee, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.nav a {
    font-size: 0.9rem;
    color: #cbd5f5;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #22d3ee, #6366f1);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn-primary {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(to right, #22d3ee, #6366f1);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #020617;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    font-size: 0.85rem;
    color: #e5e7eb;
    cursor: pointer;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #e5e7eb;
}

/* Hero/Banner */
.section {
    padding: 3.5rem 0;
}

.hero {
    padding-top: 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cbd5f5;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-gradient {
    background: linear-gradient(to right, #22d3ee, #a855f7, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 520px;
    margin-bottom: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Hero visual */
.hero-card {
    border-radius: 1.5rem;
    background: radial-gradient(circle at top, #1d283a, #020617);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.25), transparent 55%),
                radial-gradient(circle at 90% 0, rgba(129, 140, 248, 0.3), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-screen {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.86);
    padding: 0.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
}

.hero-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dot-group {
    display: flex;
    gap: 0.225rem;
}

.dot-group span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

/* Section title */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-sub {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.service-card {
    border-radius: 1rem;
    padding: 1rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-icon {
    font-size: 1.4rem;
}

.service-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.service-desc {
    font-size: 0.8rem;
    color: #cbd5f5;
}

/* Projects slider */
.projects-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.projects-row {
    display: flex;
    gap: 1rem;
    min-width: 100%;
}

.project-card {
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 auto;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.project-body {
    padding: 0.9rem;
}

.project-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Project modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.2rem;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 1.25rem;
}

.modal-close {
    float: right;
    font-size: 1.4rem;
    cursor: pointer;
    color: #9ca3af;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.about-text {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.stat-card {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.75rem;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.85rem;
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

.input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.25rem 0 1.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 0.5rem 0;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #020617f2;
        flex-direction: column;
        padding: 0.75rem 1rem 1rem;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
