/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
:root {
    --primary: #172B4D; 
    --primary-light: #2c4a7c;
    --accent: #00A389; 
    --accent-glow: rgba(0, 163, 137, 0.4);
    --text-main: #1a1a24;
    --text-muted: #5e6472;
    --bg-base: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.6);
    --border-color: #cbd5e1;
    --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* Background Patterns & Glows */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.orb-1 { top: -10%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255,255,255,0) 70%); }
.orb-2 { top: 40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(23, 43, 77, 0.1) 0%, rgba(255,255,255,0) 70%); }

a { text-decoration: none; color: inherit; transition: all var(--transition); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--primary); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Layout & Utility
   ========================================================================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: 8px; font-weight: 600;
    transition: var(--transition); cursor: pointer; text-align: center;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; border: 2px solid var(--primary); box-shadow: 0 4px 14px rgba(23, 43, 77, 0.2); }
.btn-primary:hover { background: transparent; color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(23, 43, 77, 0.15); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-large { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 80px; padding: 10px 0; flex-wrap: wrap; gap: 16px; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.nav-link { font-weight: 500; color: var(--text-muted); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: var(--transition); }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { padding: 80px 0 60px; position: relative; }
.hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: white; border: 1px solid var(--border-color); color: var(--text-main); border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 rgba(0, 163, 137, 0.7); animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 163, 137, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 163, 137, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 163, 137, 0); }
}

.hero-title { font-size: 3.2rem; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Showcase / Images Grid
   ========================================================================== */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.showcase-img { width: 100%; height: 350px; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.1); transition: var(--transition); }
.showcase-img:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-section { padding: 40px 0; border-radius: 16px; margin: 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2.2rem; margin-bottom: 4px; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   About Section & Code Window
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.section-title { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 500; }
.check-list li svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

.code-window { background: #0d1117; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); width: 100%; }
.code-header { background: #161b22; padding: 12px 16px; display: flex; gap: 8px; border-bottom: 1px solid #30363d; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-body { padding: 24px; font-family: monospace; font-size: 0.85rem; line-height: 1.5; color: #c9d1d9; overflow-x: auto; }
.keyword { color: #ff7b72; } .variable { color: #79c0ff; } .string { color: #a5d6ff; }
.property { color: #d2a8ff; } .number { color: #79c0ff; } .function { color: #d2a8ff; }

/* ==========================================================================
   Cards (Expertise/Services)
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: #ffffff; padding: 32px 24px; border-radius: 16px; border: 1px solid var(--border-color); transition: var(--transition); box-shadow: 0 8px 24px rgba(23, 43, 77, 0.04); }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(23, 43, 77, 0.08); border-color: rgba(0, 163, 137, 0.4); }
.card-icon { width: 50px; height: 50px; background: var(--bg-base); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; border: 1px solid var(--border-color); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   Forms (Login & Contact)
   ========================================================================== */
.form-container { max-width: 500px; margin: 40px auto; background: white; padding: 40px 32px; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.form-header { text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary); font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--bg-base); color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 163, 137, 0.1); background: white; }
textarea.form-control { resize: vertical; min-height: 120px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; font-size: 0.9rem; font-weight: 500; display: none; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--primary); color: rgba(255, 255, 255, 0.7); padding: 60px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-desc { margin-top: 16px; max-width: 340px; font-size: 0.95rem; }
.footer-title { color: white; font-size: 1.1rem; margin-bottom: 20px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; }
.contact-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-img { height: 250px; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .nav { justify-content: center; width: 100%; gap: 16px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .form-container { padding: 30px 20px; margin: 20px; width: auto; }
}
