/* Reset & Global Styles */
:root {
    --bg: #eef1f6;
    --surface: #ffffff;
    --surface-soft: #f6f7fb;
    --text: #1f2937;
    --muted: #5f6b7a;
    --primary: #6b7fd7;
    --primary-dark: #5d6fc2;
    --secondary: #7a68b3;
    --border: #dde3ee;
    --shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
    --shadow-soft: 0 6px 18px rgba(31, 41, 55, 0.05);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #6677c8 0%, #7d6aac 100%);
    color: white;
    padding: 88px 0 72px;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    flex: 1 1 520px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.22rem;
    margin-bottom: 14px;
    opacity: 0.96;
    line-height: 1.6;
    max-width: 620px;
}

.hero-stack {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 22px;
}

.hero-subtitle h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 10px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeIn 0.8s ease 0.4s both;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-photo-wrap {
    flex: 0 1 280px;
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--surface);
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
#about {
    padding: 72px 0;
    background: var(--bg);
}

.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
}

.about-badge {
    display: inline-block;
    background: rgba(107, 127, 215, 0.12);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.2;
}

.about-text {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 16px;
}

.about-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.about-points li {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

/* Skills Section */
#skills {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#skills h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #333;
}

#skills h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #667eea;
}

#skills h3:first-of-type {
    margin-top: 0;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.skills-list li {
    background-color: var(--surface);
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.05);
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    max-width: 100%;
    white-space: normal;
}

.skills-list li:hover {
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.project-card {
    background-color: var(--surface);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-list li:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.skill-group-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.skill-group-card h3 {
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: var(--primary-dark);
}

/* Projects Section */

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-badge {
    display: inline-block;
    background: rgba(107, 127, 215, 0.12);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

#projects {
    padding: 80px 0;
    background: #f3f5fa;
}

#projects h2 {
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.project-card {
    background-color: var(--surface);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text);
}

.project-card p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.project-card a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding-top: 8px;
    border-bottom: 2px solid var(--primary);
    transition: all 0.2s ease;
    width: fit-content;
}

.project-card a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    padding-left: 5px;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Goal & Focus Section */

#focus {
    padding: 36px 0 72px;
    background: var(--bg);
}

.focus-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.focus-badge {
    display: inline-block;
    background: rgba(107, 127, 215, 0.12);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.focus-text {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 20px;
}

.focus-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.focus-points span {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

#goal {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

#goal h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.goal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Opportunity Form */
#opportunity-form {
    padding: 72px 0;
    background: #f7f8fc;
    border-top: 1px solid var(--border);
}

.form-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
}

.form-badge {
    display: inline-block;
    background: rgba(107, 127, 215, 0.12);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    color: var(--text);
    font: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.03);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8b95a5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 127, 215, 0.12);
}

.form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.form-actions .btn {
    min-width: 170px;
}

#opportunity-form .section-title {
    margin-bottom: 16px;
}

/* Contact Section */

#contact {
    padding: 72px 0;
    background: white;
}

.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.contact-badge {
    display: inline-block;
    background: rgba(107, 127, 215, 0.12);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.contact-list a {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
}



/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
}

footer p {
    margin: 0;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-photo {
        width: 170px;
        height: 170px;
    }


    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero-stack {
        font-size: 0.98rem;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .focus-card,
    .contact-card,
    .about-card,
    .skill-group-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    #skills h2,
    #projects h2,
    #goal h2,
    #contact h2 {
        font-size: 2rem;
    }

    .skills-list {
        gap: 10px;
    }

    .skills-list li {
        font-size: 0.95rem;
        padding: 11px 14px;
    }


    #hero {
        padding: 64px 0 54px;
    }

    #about,
    #skills,
    #projects,
    #goal,
    #contact {
        padding: 60px 0;
    }

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

    .menu-toggle {
        display: inline-block;
        margin: 0 auto 16px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    nav ul.active {
        display: flex;
    }

    #focus {
        padding: 20px 0 56px;
    }

    .focus-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .focus-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    @media (max-width: 768px) {
        #opportunity-form {
            padding: 56px 0;
        }

        .form-card {
            padding: 24px 20px;
            border-radius: 18px;
        }

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

        .form-intro {
            font-size: 1rem;
            line-height: 1.7;
        }

        .form-actions {
            justify-content: stretch;
        }

        .form-actions .btn {
            width: 100%;
            max-width: 100%;
        }
    }

}


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

    .container {
        padding: 0 15px;
    }

    #skills h3,
    .project-card h3 {
        font-size: 1.25rem;
    }

    #hero,
    #about,
    #skills,
    #projects,
    #goal,
    #contact {
        padding: 40px 0;
    }

    footer {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
        margin: 0 auto 16px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    nav ul.active {
        display: flex;
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .hero-photo-wrap {
        order: -1;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-photo {
        width: 210px;
        height: 210px;
    }

    .hero-buttons {
        justify-content: center;
    }
}