:root {
    --bg-main: #090a0f;
    --bg-surface: #13151f;
    --brand-gold: #d4af37;
    --brand-gold-light: #f3e5ab;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --border-gold: rgba(212, 175, 55, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    background: rgba(9, 10, 15, 0.95);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.brand-logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--brand-gold);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #090a0f;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.3s ease;
    display: inline-block;
}

.btn-gold:hover {
    filter: brightness(1.1);
}

.gold-text {
    color: var(--brand-gold);
}

/* Hero Sections */
.page-hero {
    padding: 80px 0 40px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(212,175,55,0.08) 0%, transparent 70%);
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.content-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 30px;
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--brand-gold);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--brand-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Hero Section Styles --- */
.hero-section {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-gold);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--brand-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Code Preview Box in Hero */
.hero-visual {
    position: relative;
}

.glow-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(20px);
}

.code-preview-card {
    position: relative;
    z-index: 2;
    background: #0d0f17 !important;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.card-header-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.card-header-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.card-header-dots span:nth-child(1) { background: #ff5f56; }
.card-header-dots span:nth-child(2) { background: #ffbd2e; }
.card-header-dots span:nth-child(3) { background: #27c93f; }

.code-keyword { color: #cc99cc; }
.code-class { color: #f8c555; }
.code-var { color: #f8acc5; }
.code-string { color: #7ec699; }
.code-func { color: #6699cc; }

/* --- Interactive Card Hover Effects --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-gold);
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--brand-gold);
    color: #090a0f;
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-link {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

/* Stats Section */
.section-padding {
    padding: 80px 0;
}

.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    padding: 50px 0;
    margin-top: 40px;
}

/* --- Fix Services Grid (3 per row) --- */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    margin-top: 40px;
}

/* Responsive fallback for tablets and mobile */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Fix Hero Content & Button Spacing --- */
.hero-content {
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    clear: both;
    margin-top: 20px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-muted);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .main-nav {
        display: none; 
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* --- Hero Content & Button Spacing Fix --- */
.hero-content {
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px; /* Gives clear separation from the paragraph text */
}

/* --- Stats Section Grid Fix --- */
.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    padding: 50px 0;
    margin-top: 60px;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-muted);
}

/* Responsive fallback for mobile viewports */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}