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

:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --secondary: #404040;
    --accent: #666666;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #404040;
    --text-muted: #666666;
    --border-light: #e5e5e5;
    --gray: #808080;
    --light-gray: #f5f5f5;
}

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

html,
body {
    overflow-x: hidden;
}

.gradient-bg {
    display: none;
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--gray);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite;
    z-index: -1;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; left: 80%; animation-delay: 2s; }
.particle-3 { top: 60%; left: 20%; animation-delay: 4s; }
.particle-4 { top: 80%; left: 70%; animation-delay: 6s; }
.particle-5 { top: 40%; left: 90%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-200px) translateX(-50px); }
    75% { transform: translateY(-100px) translateX(100px); }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s, transform 0.2s ease;
    font-weight: 500;
    display: inline-flex;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--primary);
    z-index: 1200;
    transition: transform 0.15s ease;
}

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

section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero {
    position: relative;
    padding-top: 8rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.hero-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-block;
    border: none;
}

.btn-small {
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 0;
}

.project-link-btn {
    border: 1px solid var(--border-light);
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-link-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

.profile-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    padding: 8px;
    background: #ffffff;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
}

.code-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    color: var(--text-secondary);
}

.code-keyword {
    color: var(--primary);
    font-weight: 600;
}

.code-string {
    color: var(--accent);
}

.code-function {
    color: var(--secondary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
}

.experience-image {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
}

.experience-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.experience-photos {
    margin-top: 2.5rem;
}

.experience-photos h3 {
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.experience-photos p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.experience-photo-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.experience-photo-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.experience-photo-frame {
    position: relative;
    background: var(--light-gray);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.experience-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-photo-card figcaption {
    padding: 0.85rem 1rem 1rem;
    color: var(--text);
    font-weight: 500;
}

.experience-content {
    padding: 2rem;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--primary);
    font-weight: 600;
}

.experience-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience-card ul {
    list-style: none;
    padding-left: 0;
}

.experience-card li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.skill-tag {
    background: var(--light-gray);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.coursework {
    margin-top: 2rem;
}

.coursework h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.coursework-list {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.project-link {
    display: block;
    height: auto;
    color: inherit;
    text-decoration: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-header {
    background: white;
    padding: 1.25rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.project-header h3 {
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
    color: var(--text-primary);
}

.project-award {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.project-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-body ul {
    list-style: none;
    padding: 0;
}

.project-body li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 0;
    }

    nav .container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    nav ul {
        width: auto;
        gap: 0.85rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav ul li {
        flex: 0 0 auto;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav a {
        padding: 0.2rem 0;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .cta-buttons {
        flex-direction: column;
    }

    section {
        min-height: auto;
        padding: 4rem 0;
    }

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

    .experience-card {
        grid-template-columns: 1fr;
    }

    .experience-image {
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.85rem 0;
    }

    nav .logo {
        font-size: 1rem;
        padding: 0.45rem 0.75rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.92rem;
    }

    .contact-content {
        padding: 0 0.5rem;
    }

    .contact-content h2 {
        font-size: 2rem;
    }

    .contact-content p {
        font-size: 1.05rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        word-break: break-word;
    }
    .container {
        padding: 0 1.25rem;
    }

    #hero {
        padding-top: 7rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    .hero-text .description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .project-image {
        height: 180px;
    }

    .experience-photo-frame {
        height: 240px;
    }
}


html {
    scroll-behavior: smooth;
}

