/* ================= Variables ================= */
:root {
    --bg-pure: #ffffff;
    --bg-subtle: #f5f5f7;
    --text-obsidian: #1d1d1f;
    --text-gray: #86868b;
    --apple-blue: #0066cc;
    --apple-blue-hover: #0077ed;
    --border-color: #d2d2d7;
    --glass-border: rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Base Settings ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-pure); color: var(--text-obsidian); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ================= Buttons ================= */
.btn-apple, .btn-apple-large, .btn-black, .btn-outline {
    display: inline-block; border-radius: 30px; font-weight: 700; transition: 0.3s var(--ease-apple); text-align: center; cursor: pointer;
}
.btn-apple { background: var(--text-obsidian); color: #fff; padding: 8px 20px; font-size: 14px; }
.btn-apple:hover, .btn-black:hover { opacity: 0.8; transform: scale(1.03); }
.btn-apple-large { background: var(--apple-blue); color: #fff; padding: 18px 40px; font-size: 18px; }
.btn-apple-large:hover { background: var(--apple-blue-hover); transform: scale(1.02); }
.btn-black { background: var(--text-obsidian); color: #fff; padding: 16px 38px; font-size: 18px; }
.btn-outline { border: 2px solid var(--text-obsidian); color: var(--text-obsidian); padding: 14px 36px; font-size: 18px; }
.btn-outline:hover { background: var(--text-obsidian); color: #fff; }

/* ================= Navbar ================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; background: transparent; transition: all 0.4s var(--ease-apple); }
.navbar.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 20px; font-weight: 900; letter-spacing: 1px; z-index: 1001; }
.nav-links { display: flex; gap: 35px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-obsidian); transition: 0.3s; opacity: 0.8;}
.nav-links a:hover { opacity: 1; color: var(--apple-blue); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }

/* ================= Hero & About ================= */
.hero { padding-top: 180px; padding-bottom: 80px; background: radial-gradient(circle at top, #fbfbfd, var(--bg-pure)); }
.premium-badge { display: inline-block; padding: 8px 24px; background: #f1f1f4; border-radius: 50px; font-size: 14px; font-weight: 700; color: var(--text-gray); margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.05); }
.hero-title { font-size: clamp(40px, 7vw, 85px); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 25px; }
.text-gradient { background: linear-gradient(135deg, #1d1d1f, #86868b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(18px, 2vw, 22px); color: var(--text-gray); font-weight: 400; max-width: 700px; margin: 0 auto 50px; line-height: 1.6;}
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;}

.about-section { padding: 80px 0; text-align: center; }
.huge-text { font-size: clamp(30px, 5vw, 60px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 30px;}
.about-content p { font-size: clamp(18px, 2vw, 22px); color: var(--text-obsidian); max-width: 800px; margin: 0 auto; line-height: 1.7;}

/* ================= Skills (High Capacity Bento) ================= */
.bento-section { padding: 100px 0; background: #fff; }
.section-title { font-size: clamp(35px, 5vw, 50px); text-align: center; margin-bottom: 60px; letter-spacing: -1px; font-weight: 900; line-height: 1.1;}
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento-item { background: var(--bg-subtle); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; transition: 0.4s var(--ease-apple); border: 1px solid var(--glass-border);}
.bento-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.bg-dark { background: #111; border: none;}
.text-white { color: #fff; }
.bento-large { grid-column: span 8; }
.bento-medium { grid-column: span 4; }
.bento-info h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; margin-bottom: 10px; }

/* 🎯 Magic Pills (Skills Tags) - You can add infinite tags here */
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.skill-tag { background: #e5e5ea; color: var(--text-obsidian); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: 0.3s; }
.skill-tag:hover { background: #d1d1d6; transform: scale(1.05); }
.dark-tag { background: #333; color: #fff; }
.dark-tag:hover { background: #444; }

/* ================= Certificates ================= */
.certificates-section { padding: 100px 0; background: var(--bg-subtle); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cert-card { background: #fff; padding: 30px; border-radius: 24px; display: flex; align-items: flex-start; gap: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: 0.4s var(--ease-apple); border: 1px solid var(--border-color);}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.cert-icon { width: 50px; height: 50px; background: var(--bg-subtle); border-radius: 12px; display: flex; justify-content: center; align-items: center; color: var(--text-obsidian); flex-shrink: 0;}
.cert-icon svg { width: 24px; height: 24px; }
.cert-info h3 { font-size: 18px; font-weight: 800; margin-bottom: 5px; line-height: 1.4;}
.issuer { color: var(--apple-blue); font-weight: 600; font-size: 14px; margin-bottom: 10px;}
.cert-date { display: block; font-size: 12px; color: var(--text-gray); font-weight: 600;}

/* ================= Languages ================= */
.languages-section { padding: 100px 0; background: #fff; }
.lang-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.lang-card { background: var(--bg-subtle); padding: 30px 50px; border-radius: 24px; min-width: 250px; text-align: center; border: 1px solid var(--glass-border);}
.lang-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 5px; }
.lang-card p { color: var(--text-gray); font-weight: 600; }

/* ================= Contact (CTA) ================= */
.cta-section { padding: 100px 0 150px; background: var(--bg-pure);}
.cta-box { background: var(--bg-subtle); padding: 80px 40px; border-radius: 40px; border: 1px solid var(--border-color); }
.huge-title { font-size: clamp(35px, 5vw, 60px); font-weight: 900; line-height: 1.2; margin-bottom: 20px;}
.cta-box p { font-size: 20px; color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.6;}

/* ================= Footer ================= */
.footer { background: var(--bg-subtle); padding: 40px 0; border-top: 1px solid var(--border-color); }

/* ================= Animations ================= */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 1s var(--ease-apple); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: 1.2s var(--ease-apple); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

/* ================= Mobile Layout ================= */
@media (max-width: 992px) {
    .bento-large, .bento-medium { grid-column: span 12; }
}
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-btn { display: none; }
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        flex-direction: column; gap: 0; text-align: center;
        height: 0; overflow: hidden; transition: 0.3s ease-in-out; border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { height: 220px; padding: 20px 0; }
    .nav-links li { padding: 15px 0; }
    .hero { padding-top: 130px; }
}
/* ================= Projects Section ================= */
.projects-section { 
    padding: 100px 0; 
    background: #fff; 
}

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.project-card { 
    background: var(--bg-subtle); 
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid var(--glass-border);
    transition: 0.4s var(--ease-apple);
    display: flex;
    flex-direction: column;
}

.project-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-premium); 
    background: #fff;
    border-color: var(--border-color);
}

.card-header { 
    margin-bottom: 25px; 
}

.project-badge { 
    background: rgba(0, 102, 204, 0.08); 
    color: var(--apple-blue); 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 700; 
}

.project-card h3 { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    line-height: 1.3;
    color: var(--text-obsidian);
}

.project-card p { 
    font-size: 16px; 
    color: var(--text-gray); 
    line-height: 1.6; 
}