/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    line-height: 1.6;
}

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

/* ---------- INTER FONT (from Google) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- TOP NAVIGATION ---------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.top-nav .logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.top-nav .logo span {
    color: #6366f1;
}

.top-nav .nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.top-nav a {
    color: #4a4a5a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.top-nav a:hover {
    color: #1a1a2e;
}

.top-nav a:hover::after {
    width: 100%;
}

.top-nav a.active {
    color: #6366f1;
    font-weight: 600;
}

.top-nav a.active::after {
    width: 100%;
}

/* ---------- HERO / LANDING ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 50%, #e0e7ff 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.4rem;
    color: #4a4a5a;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero .sub-text {
    font-size: 1.1rem;
    color: #6b6b7a;
    max-width: 550px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-links .btn-primary {
    background: #6366f1;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-links .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    background: #4f46e5;
}

.hero-links .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-links .btn-secondary:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- QUICK OVERVIEW (Landing Page) ---------- */
.quick-overview {
    padding: 100px 0;
    background: #fff;
}

.quick-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.quick-overview .subtitle {
    text-align: center;
    color: #6b6b7a;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.quick-card {
    background: #fafafa;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.quick-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.quick-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quick-card p {
    color: #6b6b7a;
    font-size: 1rem;
}

/* ---------- SECTIONS (General) ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.section-header p {
    color: #6b6b7a;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- CV PAGE ---------- */
.cv-header {
    text-align: center;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

.cv-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 5px;
}

.cv-header .title {
    font-size: 1.3rem;
    color: #6366f1;
    font-weight: 500;
}

.cv-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.cv-item {
    margin-bottom: 35px;
    padding-left: 25px;
    border-left: 3px solid #6366f1;
}

.cv-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.cv-item .meta {
    color: #6b6b7a;
    font-weight: 500;
    margin: 5px 0 10px;
}

.cv-item p {
    color: #4a4a5a;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.skill-tag {
    background: #eef2ff;
    color: #4f46e5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- PROJECTS PAGE ---------- */
.projects-header {
    text-align: center;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

.projects-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.project-card .project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card p {
    color: #6b6b7a;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tech span {
    background: #f3f4f6;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a4a5a;
}

.btn {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: #fff;
}

/* ---------- CONTACT PAGE ---------- */
.contact-header {
    text-align: center;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info p {
    color: #6b6b7a;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-links a:hover {
    background: #eef2ff;
    transform: translateX(8px);
}

.contact-links a .icon {
    font-size: 1.5rem;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* ---------- FOOTER ---------- */
footer {
    background: #1a1a2e;
    color: #8b8b9a;
    text-align: center;
    padding: 40px 0;
    font-size: 0.95rem;
}

footer a {
    color: #a5a5b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .social-links a {
    font-size: 1.3rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    .top-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .top-nav .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cv-header h1,
    .projects-header h1,
    .contact-header h1 {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-links .btn-primary,
    .hero-links .btn-secondary {
        width: 100%;
        text-align: center;
    }
}