@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --accent: #6366f1;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #020617;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

#navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover { color: var(--primary); }

/* Mobile Navigation */
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

.menu-btn.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.active .bar:nth-child(2) { opacity: 0; }
.menu-btn.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    padding: 8rem 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-links a {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero h1 span { color: var(--primary); }

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25); }
.btn-secondary { background: var(--bg-alt); margin-left:1rem; }

/* Sections */
section { padding: 8rem 0; }

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

.section-header h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.section-header p { font-size: 1.2rem; color: var(--text-muted); margin: 0 auto; max-width: 650px; }

/* Grid Alighment */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-card { display: flex; flex-direction: column; }

.project-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img { transform: scale(1.05); }

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay { opacity: 1; }

.view-btn {
    background: white;
    color: black;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
}

.project-info { text-align: center; }

.project-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    background: var(--bg-alt);
    border-radius: 100px;
}

.project-info h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.project-info p { color: var(--text-muted); font-size: 1rem; margin: 0 auto; max-width: 90%; }

/* Technical Toolkit */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--bg-alt);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: center;
    transition: var(--transition);
}

.skill-category:hover { transform: translateY(-8px); background: white; box-shadow: var(--shadow-md); }

.category-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.skill-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skill-item { font-weight: 600; display: flex; align-items: center; gap: 0.75rem; }
.skill-item::before { content: '→'; color: var(--primary); font-weight: 900; }

/* About & Stats */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.stat-card { padding: 3rem; background: white; border-radius: 32px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card h3 { font-size: 3.5rem; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8rem; }
.form-group { position: relative; margin-bottom: 3.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    font-size: 1.2rem;
    font-family: inherit;
}
.form-group label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}
.form-group input:focus ~ label, .form-group input:valid ~ label,
.form-group textarea:focus ~ label, .form-group textarea:valid ~ label {
    top: -15px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

/* Footer */
footer { padding: 6rem 0; background: var(--bg-alt); border-top: 1px solid var(--border); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2rem; }

/* Responsive Overrides */
@media (max-width: 992px) {
    .projects-grid, .about-grid { grid-template-columns: 1fr; }
    .hero { text-align: center; padding-top: 100px; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .hero h1 { font-size: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Animations */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in-visible { opacity: 1; transform: translateY(0); }