/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #e8edf5;
}

.nav-content {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #172033;
}

.logo span {
    color: #6366f1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #6366f1;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 75px;
    background:
        radial-gradient(circle at 90% 20%, #e0e7ff 0%, transparent 30%),
        #f8fafc;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.greeting {
    color: #6366f1;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #6366f1;
}

.hero h2 {
    font-size: 21px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 25px;
}

.typing-text {
    color: #6366f1;
}

.hero-description {
    max-width: 520px;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: #6366f1;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-3px);
}

.btn-outline {
    border-color: #dbe1eb;
    color: #475569;
    background: white;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.social-links a {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: 0.3s;
}

.social-links a:hover {
    color: #6366f1;
}

/* Hero image */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
}

.avatar-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    font-weight: 800;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.25);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.floating-card span {
    font-size: 25px;
}

.floating-card strong {
    display: block;
    font-size: 13px;
}

.floating-card small {
    color: #94a3b8;
    font-size: 11px;
}

.card-1 {
    top: 50px;
    left: 0;
}

.card-2 {
    bottom: 50px;
    right: 0;
}

/* =========================
   SECTION
========================= */

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* =========================
   ABOUT
========================= */

.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-avatar {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(145deg, #6366f1, #818cf8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 100px;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.about-text h3 {
    font-size: 27px;
    margin-bottom: 20px;
}

.about-text p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 15px;
}

.info-list {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 12px;
}

.info-list strong {
    font-size: 14px;
}

.info-list span {
    color: #64748b;
    font-size: 14px;
}

/* =========================
   SKILLS
========================= */

.skills {
    background: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eef2f7;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.skill-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.skill-card p {
    color: #64748b;
    font-size: 13px;
}

/* =========================
   PROJECTS
========================= */

.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    border: 1px solid #eef2f7;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.project-image {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
}

.project-1 {
    background: #eef2ff;
}

.project-2 {
    background: #ecfdf5;
}

.project-3 {
    background: #fff7ed;
}

.project-content {
    padding: 25px;
}

.project-tag {
    color: #6366f1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 18px;
    margin: 12px 0;
}

.project-content p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tech span {
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
}

.project-link {
    color: #6366f1;
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   CONTACT
========================= */

.contact {
    background: #f8fafc;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #eef2f7;
}

.contact-text h3 {
    font-size: 27px;
    margin-bottom: 20px;
}

.contact-text > p {
    color: #64748b;
    margin-bottom: 30px;
}

.contact-info p {
    color: #475569;
    font-size: 14px;
    margin-bottom: 10px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    resize: vertical;
    transition: 0.3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #6366f1;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #172033;
    color: #94a3b8;
    padding: 25px 0;
    text-align: center;
}

.footer-content p {
    font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        min-height: 350px;
    }

    .image-circle {
        width: 280px;
        height: 280px;
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
        font-size: 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 17px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 25px;
    }

    .info-list div {
        flex-direction: column;
        gap: 5px;
    }

    .card-1 {
        left: -10px;
    }

    .card-2 {
        right: -10px;
    }
}