/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --bg-dark: #060913;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #10b981;       /* Emerald Green */
    --secondary: #3b82f6;     /* Electric Blue */
    --accent: #06b6d4;        /* Cyan */
    --gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   AMBIENT BLOB BACKGROUNDS
========================================= */
.blob-bg {
    position: fixed;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(6, 9, 19, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.blob-bg.blob-2 {
    top: auto;
    left: auto;
    bottom: -150px;
    right: -120px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(6, 9, 19, 0) 70%);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, .logo, .footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary, .btn-primary-sm {
    display: inline-block;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.btn-primary-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary:hover, .btn-primary-sm:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.w-100 {
    width: 100%;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .footer-logo {
    font-size: 1.65rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .dot, .footer-logo .dot {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary-sm) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--text-main);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Glass Code Window */
.glass-card.main-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.card-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 18px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.circle.red { background: #ef4444; }
.circle.yellow { background: #f59e0b; }
.circle.green { background: #10b981; }

.card-body {
    padding: 28px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.code-line span {
    color: #38bdf8;
    font-weight: bold;
}

.indent { padding-left: 22px; }
.indent-2 { padding-left: 44px; color: #34d399; }

/* =========================================
   ABOUT US SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.85rem;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    padding: 26px;
}

.service-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    border-radius: 14px;
    margin-bottom: 16px;
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   WORKS SECTION (3 COLUMNS x 2 ROWS = 6 ITEMS)
========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-img-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.work-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card:hover .work-img-container img {
    transform: scale(1.06);
}

.work-info {
    padding: 22px;
}

.work-info h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.testi-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.quote {
    font-size: 1.02rem;
    color: #e2e8f0;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
}

.client-info h4 {
    font-size: 1rem;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-container {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 0.98rem;
    color: #cbd5e1;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* =========================================
   FOOTER
========================================= */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 36px 24px;
    background: rgba(6, 9, 19, 0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* =========================================
   FADE-IN ANIMATION
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .card-body {
        text-align: left;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        background: rgba(6, 9, 19, 0.97);
        flex-direction: column;
        padding: 32px 0;
        border-bottom: 1px solid var(--border-glass);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-container,
    .works-grid,
    .testi-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 28px 20px;
    }
}