:root {
    --bg: #07111f;
    --bg-alt: #0f1f35;
    --surface: #10233d;
    --surface-2: #172b43;
    --text: #f5f7ff;
    --muted: #a9bedb;
    --accent: #4cc9f0;
    --accent-2: #7b61ff;
    --accent-3: #00f5d4;
    --shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(76, 201, 240, 0.16), transparent 30%), linear-gradient(135deg, var(--bg), var(--bg-alt));
}

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

nav,
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(8, 16, 29, 0.84);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav h2,
header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.04em;
}

nav ul,
.header-nav {
    display: flex;
    list-style: none;
    gap: 18px;
    padding: 0;
    margin: 0;
}

nav a,
.header-nav a {
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

nav a:hover,
.header-nav a:hover {
    color: white;
    background: rgba(76, 201, 240, 0.14);
}

.btn,
.card-btn,
.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.card-btn:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.25);
}

.card,
.service-card,
.contact-card,
.project-card {
    background: rgba(16, 35, 61, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.service-card:hover,
.contact-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 201, 240, 0.45);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.page-section {
    width: min(1100px, 90%);
    margin: 50px auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.section-text {
    color: var(--muted);
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.details div {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
}

.details h2 {
    margin: 0 0 8px;
    color: #dcecff;
}

.details p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 768px) {
    nav,
    header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 10px;
    }

    nav ul,
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
