/* ROOT VARIABLES & GLOBAL FIX FOR ZOOM/OVERFLOW */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(18, 24, 38, 0.85);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --secondary: #8b5cf6;
    --font-main: 'Outfit', sans-serif;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* AMBIENT LIGHTING ORBS (Clipped to prevent overflow/zoom) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    max-width: 80vw;
}
.circle-1 {
    top: 30px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
}
.circle-2 {
    top: 35%;
    right: -50px;
    width: 350px;
    height: 350px;
    background: var(--secondary);
}

/* NAVBAR */
.navbar {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.logo i { color: var(--primary); font-size: 16px; }
.logo span { font-weight: 300; color: #cbd5e1; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link-main {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: 0.3s;
}
.nav-link-main:hover { color: #fff; }

/* GLOW BUTTON */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}
.btn-glow:hover {
    box-shadow: 0 6px 22px var(--primary-glow);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 16px 50px;
}
.hero-content {
    max-width: 800px;
}
.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #60a5fa;
    margin-bottom: 20px;
    font-weight: 600;
}
.hero h1 {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
}
.hero h1 span {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}
.scroll-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    font-weight: 500;
}
.scroll-btn:hover { color: var(--primary); }

/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 30px 0 80px;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* GLASSMORPHISM CARD (Pointer-events fixed for mobile click) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 30px 20px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    opacity: 0;
    transition: 0.35s;
    pointer-events: none; /* CRITICAL FIX: prevents blocking mobile clicks */
}
.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
.glass-card:hover::before { opacity: 1; }

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}
.glass-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}
.glass-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.55;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    z-index: 2;
}
.glass-card:hover .card-link { color: #93c5fd; gap: 10px; }

/* ANIMATIONS */
.fade-in { animation: fadeIn 1.2s ease forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0 20px;
    background: rgba(7, 10, 17, 0.85);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand h2 { font-size: 20px; margin-bottom: 6px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }
.footer-site-link { color: #60a5fa; text-decoration: none; font-size: 13.5px; font-weight: 500; }
.footer-site-link:hover { text-decoration: underline; }

.footer-contact p { font-size: 14px; margin-bottom: 4px; color: #cbd5e1; }
.footer-contact i { color: var(--primary); margin-right: 6px; }
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
    .hero h1 { font-size: 52px; }
    .section-title h2 { font-size: 34px; }
}

@media (max-width: 768px) {
    .nav-link-main { display: none; }
    .footer-content { flex-direction: column; text-align: center; }
    .logo { font-size: 16px; gap: 4px; }
    .logo i { font-size: 14px; }
    .btn-glow { padding: 6px 14px; font-size: 12px; }
}
