/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c63ff;
    --primary-dark: #524bcc;
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --text: #1f2238;
    --muted: #5b607a;
    --border: #e6e8f0;
    --shadow: 0 10px 30px rgba(31, 34, 56, 0.08);
    --radius: 12px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

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

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

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

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

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at top left, rgba(108, 99, 255, 0.15), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(108, 99, 255, 0.12), transparent 55%),
        var(--bg);
}

.hero-inner {
    max-width: 780px;
}

.hero-greeting {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- About ---------- */
.about {
    background: var(--bg-alt);
}

.about-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a094ff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 5rem;
    font-weight: 800;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.about-facts {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}

.about-facts li {
    color: var(--muted);
}

.about-facts strong {
    color: var(--text);
}

/* ---------- Projects ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.project-thumb {
    height: 180px;
    background: linear-gradient(135deg, #6c63ff, #a094ff);
}

.thumb-1 { background: linear-gradient(135deg, #6c63ff, #a094ff); }
.thumb-2 { background: linear-gradient(135deg, #ff6584, #ff9a8b); }
.thumb-3 { background: linear-gradient(135deg, #43cea2, #185a9d); }
.thumb-4 { background: linear-gradient(135deg, #f7971e, #ffd200); }

.project-body {
    padding: 1.5rem;
}

.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.project-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.project-company {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-points {
    list-style: disc;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.project-points li {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags span {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- Skills ---------- */
.skills {
    background: var(--bg-alt);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem 2.5rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.bar {
    height: 10px;
    background: #e6e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a094ff);
    border-radius: 50px;
    transition: width 0.8s ease;
}

/* ---------- Contact ---------- */
.contact-intro {
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.info-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item a,
.info-item span {
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-word;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.contact-form button {
    justify-self: start;
}

/* ---------- Footer ---------- */
.footer {
    background: #1f2238;
    color: #d8daea;
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-facts {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about .section-title {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .avatar {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }
}
