:root[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.95);
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-nav: rgba(248, 250, 252, 0.95);
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #4f46e5;
    --border: #e2e8f0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* NAVIGATION */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 8%; position: sticky; top: 0; z-index: 1000;
    background: var(--bg-nav); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.logo-box { background: var(--accent); color: white; padding: 4px 10px; border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.theme-btn { background: none; border: none; color: var(--text-primary); cursor: pointer; font-size: 1.1rem; }

/* HERO */
.hero { text-align: center; padding: 5rem 10% 3rem; max-width: 1000px; margin: 0 auto; }
.profile-container { width: 150px; height: 150px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--accent); }
.profile-img { width: 100%; height: 100%; object-fit: cover; }
.welcome-tag { background: rgba(99, 102, 241, 0.1); color: var(--accent); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; display: inline-block; margin-bottom: 1.5rem; border: 1px solid rgba(99, 102, 241, 0.2); }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.hero-desc { color: var(--text-secondary); max-width: 700px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; justify-content: center; gap: 1rem; }
.btn { padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: 0.3s; }
.btn-primary { background: var(--accent); color: white; }
.btn-outline { border: 1px solid var(--border); color: var(--text-primary); }
.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.stats-bar { display: flex; justify-content: center; gap: 5rem; margin-top: 4rem; }
.stat h3 { font-size: 2.25rem; color: var(--accent); }
.stat p { color: var(--text-secondary); font-size: 0.9rem; }

/* SHARED SECTION STYLES */
section { padding: 6rem 8%; }
.section-title { text-align: center; font-size: 2.25rem; margin-bottom: 0.75rem; }
.section-underline { width: 60px; height: 4px; background: var(--accent); margin: 0 auto 1.5rem; border-radius: 2px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 4rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
.about-text span { color: var(--accent); font-weight: 600; }
.about-text p { margin-bottom: 1.5rem; color: var(--text-secondary); }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.feat i { color: var(--accent); font-size: 1.5rem; margin-bottom: 0.75rem; }
.feat div strong { font-size: 0.95rem; }
.feat div p { font-size: 0.8rem; margin: 0; }
.core-competencies { background: var(--bg-card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); }
.core-competencies h3 { margin-bottom: 1.5rem; }
.skill-bar { display: grid; grid-template-columns: 1fr 1.5fr 40px; align-items: center; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.bar { height: 8px; background: var(--bg-main); border-radius: 10px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 10px; }

/* SKILLS */
.skills { background: rgba(15, 23, 42, 0.3); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.skill-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); transition: 0.3s; }
.skill-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.skill-card i { color: var(--accent); font-size: 1.75rem; margin-bottom: 1.25rem; }
.skill-card h3 { margin-bottom: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span { background: var(--bg-main); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; border: 1px solid var(--border); color: var(--text-secondary); }

/* PROJECTS */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.project-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.proj-img { height: 180px; background: #334155; }
.proj-body { padding: 1.5rem; }
.proj-body h3 { margin-bottom: 0.75rem; }
.proj-body p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: var(--bg-card); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border); }
.service-card i { font-size: 2rem; color: var(--accent); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.service-card ul { list-style: none; }
.service-card li { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-secondary); position: relative; padding-left: 1.25rem; }
.service-card li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
.services-footer { text-align: center; margin-top: 4rem; }
.services-footer p { margin-bottom: 1rem; font-weight: 500; }
.services-footer .btn { display: inline-flex; }

/* EXPERIENCE */
.exp-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.col-header { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; }
.col-header i { color: var(--accent); }
.exp-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 2rem; }
.exp-card .sub { color: var(--accent); font-weight: 500; margin: 0.25rem 0; }
.exp-card .date { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1rem; }
.exp-card .card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.cert-header { margin-top: 3rem; }
.cert-list { list-style: none; }
.cert-list li { margin-bottom: 0.75rem; color: var(--text-secondary); font-size: 0.9rem; }
.cert-list li::before { content: "•"; color: var(--accent); margin-right: 0.75rem; }

/* CONTACT */

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
.contact-form { background: var(--bg-card); padding: 2.5rem; border-radius: 15px; border: 1px solid var(--border); }
.contact-form h3 { margin-bottom: 2rem; }
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-secondary); }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.85rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); margin-bottom: 1.25rem; font-family: inherit; }
.full-btn { width: 100%; justify-content: center; }
.contact-info h3 { margin-bottom: 1.5rem; }
.info-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.9rem; }
.info-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.info-link { background: var(--bg-card); padding: 1rem; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; transition: 0.3s; }
.info-link i { font-size: 1.25rem; color: var(--accent); width: 25px; }
.info-link span { font-size: 0.75rem; color: var(--text-secondary); }
.info-link p { font-weight: 600; font-size: 0.9rem; }
.availability { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); }
.status { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; font-weight: 600; font-size: 0.9rem; }
.status span { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; }

/* FOOTER */
footer { background: #020617; padding: 5rem 8% 2rem; border-top: 1px solid var(--border); color: #f8fafc; }
.footer-top { display: grid; grid-template-columns: 1.2fr 0.6fr 1.2fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; margin-top: 1.5rem; }
.made-with { margin-top: 1.5rem; font-size: 0.8rem; color: #64748b; }
.footer-links h4, .footer-social h4 { margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { text-decoration: none; color: #94a3b8; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: white; }
.footer-social p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 1.5rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { width: 40px; height: 40px; border: 1px solid #334155; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: 0.3s; }
.social-icons a:hover { border-color: var(--accent); color: white; background: rgba(99, 102, 241, 0.1); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #64748b; }
.legal { display: flex; gap: 2rem; }
.legal a { text-decoration: none; color: inherit; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-grid, .contact-grid, .exp-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .stats-bar { gap: 2rem; flex-wrap: wrap; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
}