/* ==========================================================================
   CSS VARIABLES - "Swiss Obsidian & Polished Sterling Platinum Vault"
   ========================================================================== */
   :root {
    --bg-deep: #05080e;
    --bg-obsidian: #080c14;
    --bg-slate: #0f172a;
    
    --text-platinum: #f8fafc;
    --text-chrome: #e2e8f0;
    --text-muted: #94a3b8;
    
    --accent-glow: rgba(203, 213, 225, 0.15);
    --border-thin: rgba(226, 232, 240, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    
    --gradient-platinum: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #cbd5e1 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-chrome);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-platinum);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-chrome);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.gradient-text {
    background: var(--gradient-platinum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #cbd5e1;
    font-weight: 800;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gradient-platinum);
    color: var(--bg-obsidian);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(203, 213, 225, 0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-platinum);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    border: 1px solid var(--text-chrome);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(226, 232, 240, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-thin);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(8, 12, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-thin);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-platinum);
    letter-spacing: 2px;
}

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

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links li a:not(.btn-primary):hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-platinum);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.1) 0%, rgba(5, 8, 14, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-thin);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.abstract-code {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background: #0f172a;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    overflow-x: auto;
}

.keyword { color: #c678dd; }
.variable { color: #e5c07b; }
.property { color: #e06c75; }
.string { color: #98c379; }
.boolean { color: #d19a66; }
.function { color: #61afef; }

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-obsidian);
    border: 1px solid var(--border-thin);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(203, 213, 225, 0.05), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(203, 213, 225, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--text-platinum);
    margin-bottom: 1.5rem;
    background: var(--gradient-platinum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 8rem 2rem;
    background: var(--bg-obsidian);
    border-top: 1px solid var(--border-thin);
    border-bottom: 1px solid var(--border-thin);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image .glass-panel {
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(15,23,42,0.8) 0%, rgba(8,12,20,0.9) 100%);
    border: 1px solid var(--border-thin);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    background: var(--gradient-platinum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--text-platinum);
    background: rgba(226, 232, 240, 0.1);
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid var(--border-thin);
}

.contact-item span {
    font-size: 1.1rem;
}

.contact-form-wrapper {
    flex: 1.2;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-chrome);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(5, 8, 14, 0.6);
    border: 1px solid var(--border-thin);
    border-radius: 4px;
    color: var(--text-platinum);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(203, 213, 225, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.w-100 { width: 100%; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #020408;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-thin);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--text-platinum);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--text-platinum);
    color: var(--bg-obsidian);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-container, .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-obsidian);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-thin);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.project-card {
    padding: 2.5rem;
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: rgba(203, 213, 225, 0.3);
}
.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-platinum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.project-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.app-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-thin);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-chrome);
    transition: var(--transition);
}
.store-badge:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

