/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0A0C10;
    color: #E8EDF5;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* zmienne globalne – czarno-niebieski motyw */
:root {
    --primary: #2A6DFF;
    --primary-dark: #1A4FCC;
    --primary-glow: #3B7EFF;
    --secondary: #0B0E14;
    --accent: #4C8CFF;
    --light-bg: #12151E;
    --gray-light: #161A24;
    --gray-mid: #252C3A;
    --text-dark: #E8EDF5;
    --text-muted: #9AA8B9;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.5);
    --border-glow: 1px solid rgba(42, 109, 255, 0.2);
}

/* ========== TYPOGRAPHY & LINKS ========== */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(42, 109, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-glow), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(42, 109, 255, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(42, 109, 255, 0.1);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
}

/* ========== HEADER / NAV ========== */
.navbar {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: var(--border-glow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2A6DFF 20%, #6BA0FF 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.logo span {
    background: none;
    color: var(--text-dark);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
    background: radial-gradient(ellipse at 70% 30%, #121826 0%, #080A0E 100%);
    padding: 4rem 0 5rem 0;
    border-bottom: var(--border-glow);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    background: rgba(42, 109, 255, 0.15);
    backdrop-filter: blur(4px);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(42, 109, 255, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    background: radial-gradient(ellipse at 30% 40%, rgba(42, 109, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.light-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(42, 109, 255, 0.4));
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: 5rem 0;
    background: var(--secondary);
}

.section-title-center {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--light-bg);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
    border: var(--border-glow);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(42, 109, 255, 0.5);
}

.service-icon {
    background: rgba(42, 109, 255, 0.12);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.service-card p {
    color: var(--text-muted);
}

/* ========== GALLERY / PROJECTS ========== */
.projects {
    padding: 5rem 0;
    background: #0C0F16;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.project-item {
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    border: var(--border-glow);
}

.project-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.project-img {
    background: linear-gradient(145deg, #0F141F, #07090E);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.project-info {
    padding: 1.2rem 1.2rem 1.5rem;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    color: white;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== FEATURES + USP ========== */
.features {
    background: #05070A;
    color: white;
    padding: 4rem 0;
    border-top: var(--border-glow);
    border-bottom: var(--border-glow);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}

.feature {
    flex: 1;
    min-width: 180px;
}

.feature .number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #6BA0FF);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ========== CONTACT & CTA ========== */
.contact {
    padding: 5rem 0;
    background: radial-gradient(circle at 10% 20%, #0E121C, #080A0F);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--light-bg);
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: var(--border-glow);
}

.contact-info {
    flex: 1;
    padding: 2.5rem;
    background: linear-gradient(135deg, #0A0F18, #05070C);
    color: white;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-detail {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-detail span:first-child {
    font-size: 1.4rem;
}

.contact-form {
    flex: 1;
    padding: 2rem 2rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

input, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-mid);
    font-family: inherit;
    transition: 0.2s;
    background: #11161F;
    color: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 109, 255, 0.2);
}

input::placeholder, textarea::placeholder {
    color: #5A6A7A;
}

/* ========== FOOTER ========== */
.footer {
    background: #030407;
    color: #6C7A8A;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: var(--border-glow);
}

.footer a {
    color: var(--primary);
}

.footer a:hover {
    color: var(--primary-glow);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 780px) {
    .container {
        padding: 0 1.5rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-grid {
        flex-direction: column-reverse;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        justify-content: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .section-title-center h2 {
        font-size: 1.8rem;
    }
}