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

:root {
    --bg-dark: #0a0e27;
    --bg-secondary: #141829;
    --bg-tertiary: #1a1f3a;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-purple-light: #c084fc;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-cyan);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    animation: blob 7s infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.word {
    display: inline-block;
    margin: 0 8px;
}

.accent-cyan {
    color: var(--accent-cyan);
}

.accent-purple {
    color: var(--accent-purple);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-resume {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.btn-resume:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.nav-resume-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) !important;
    color: var(--bg-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-resume-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3) !important;
}

.scroll-indicator {
    animation: float 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scroll-indicator i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text span {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 52%;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 52%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    top: 0;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    background: var(--accent-purple);
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.experience-details {
    list-style: none;
    margin: 1.5rem 0;
}

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

.experience-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--accent-cyan);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.project-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    height: 150px;
}

.project-header.accent-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--accent-cyan);
}

.project-header.accent-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: var(--accent-purple);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 1rem 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
    margin-top: auto;
}

.project-tech span {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.project-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin: 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.project-status.accent-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.project-status.accent-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.project-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-purple);
    color: var(--bg-dark);
}

.project-link i {
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    background: rgba(6, 182, 212, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateX(5px);
}

/* Education & Achievements */
.education {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.ed-achievements-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.education-list,
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item,
.achievement-item {
    display: flex;
    gap: 2rem;
}

.education-icon,
.achievement-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.education-icon.accent-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.education-icon.accent-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.achievement-icon {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.achievement-icon.accent-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.education-item h3,
.achievement-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.education-institute {
    color: var(--text-secondary);
    font-size: 1rem;
}

.education-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.achievement-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Resume Section */
.resume {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.resume-preview {
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.resume-preview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.resume-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resume-preview p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.resume-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-item {
    background: rgba(6, 182, 212, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.highlight-item span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resume-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.resume-download .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.resume-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-icon.accent-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.contact-icon.accent-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-footer {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 70px;
    }

    .timeline-marker {
        left: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .ed-achievements-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .resume-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .resume-highlights {
        grid-template-columns: 1fr;
    }

    .contact-options {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: -1px;
    }

    .word {
        margin: 0 4px;
        display: block;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        gap: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

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

/* Professional skills section */
.skills {
    border-top: 1px solid var(--border-color);
}

.skills .section-title {
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 560px;
    text-align: center;
}

.skills-grid {
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3rem;
}

.skill-category {
    background: linear-gradient(
        145deg,
        rgba(24, 43, 54, 0.92),
        rgba(18, 33, 43, 0.78)
    );
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease,
        background 0.25s ease;
}

.skill-category::after {
    background: var(--accent-cyan);
    content: "";
    height: 2px;
    left: 1.5rem;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.25s ease;
    width: 42px;
}

.skill-category:hover {
    background: linear-gradient(
        145deg,
        rgba(28, 51, 62, 0.98),
        rgba(18, 33, 43, 0.9)
    );
    transform: translateY(-3px);
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category-heading {
    align-items: center;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.skill-icon {
    align-items: center;
    background: rgba(102, 217, 208, 0.1);
    border: 1px solid rgba(102, 217, 208, 0.35);
    border-radius: 7px;
    color: var(--accent-cyan);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.skill-kicker {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.skill-category h3 {
    color: var(--text-primary);
    font-size: 1.08rem;
    margin: 0;
}

.skill-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-item {
    background: rgba(13, 23, 32, 0.5);
    border: 1px solid rgba(182, 198, 200, 0.16);
    border-left: 1px solid rgba(182, 198, 200, 0.16);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    transition: border-color 0.2s ease, color 0.2s ease,
        background 0.2s ease;
}

.skill-item:hover {
    background: rgba(102, 217, 208, 0.08);
    border-color: rgba(102, 217, 208, 0.5);
    color: var(--text-primary);
    transform: none;
}

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

/* Refined portfolio layout */
:root {
    --bg-dark: #0d1720;
    --bg-secondary: #12212b;
    --bg-tertiary: #182b36;
    --accent-cyan: #66d9d0;
    --accent-purple: #9eb7e5;
    --text-primary: #f4f7f6;
    --text-secondary: #b6c6c8;
    --text-muted: #819398;
    --border-color: rgba(182, 198, 200, 0.18);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dark);
}

.container,
.nav-container {
    max-width: 1100px;
}

.navbar {
    background: rgba(13, 23, 32, 0.9);
    border-bottom-color: var(--border-color);
    padding: 1.15rem 0;
}

.logo-text {
    border: 0;
    padding: 0;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    -webkit-text-fill-color: var(--accent-cyan);
}

.hero-name {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
}

.nav-links {
    gap: 1.5rem;
}

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

.nav-resume-btn {
    background: var(--accent-cyan) !important;
    color: var(--bg-dark) !important;
}

.hero {
    min-height: 720px;
    margin-top: 62px;
    padding: 5rem 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 5rem;
}

.hero-content {
    max-width: 680px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.eyebrow {
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3.3rem, 7vw, 5.4rem);
    letter-spacing: -0.065em;
    line-height: 1.02;
    margin-bottom: 1.75rem;
}

.word {
    margin: 0 0.15em 0 0;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-cta {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 3.25rem;
}

.btn {
    border-radius: 6px;
    border-width: 1px;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
}

.btn-primary {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #8be4dc;
    box-shadow: 0 12px 25px rgba(102, 217, 208, 0.16);
}

.btn-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.btn-resume {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-resume:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.scroll-indicator {
    align-items: flex-start;
}

.hero-portrait {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    background: linear-gradient(145deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    padding: 8px;
    width: min(100%, 360px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.portrait-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    border-radius: 50%;
    object-fit: cover;
}

.hero-background .blob {
    opacity: 0.06;
}

.hero-background {
    overflow: hidden;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.04em;
}

.section-title::before {
    background: var(--accent-cyan);
    height: 2px;
    width: 48px;
}

.about,
.projects,
.education,
.resume,
.footer {
    background: var(--bg-secondary);
}

.experience,
.skills,
.contact {
    background: var(--bg-dark);
}

.about,
.experience,
.projects,
.skills,
.education,
.resume,
.contact {
    padding: 6.5rem 0;
}

.stat,
.timeline-content,
.project-card,
.skill-category,
.resume-preview,
.contact-card {
    background: rgba(24, 43, 54, 0.6);
    border-color: var(--border-color);
    border-radius: 8px;
}

.stat:hover,
.project-card:hover,
.skill-category:hover,
.contact-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: none;
}

.timeline::before {
    background: var(--border-color);
}

.timeline-marker {
    background: var(--accent-cyan);
    border-color: var(--bg-dark);
}

.timeline-item:nth-child(even) .timeline-marker {
    background: var(--accent-purple);
}

.project-header {
    height: 130px;
}

.education {
    background: var(--bg-secondary);
}

.education-list {
    max-width: 760px;
    margin: 3rem auto 0;
}

.resume {
    background: var(--bg-dark);
}

.contact-card {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .nav-links {
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        left: 0;
        padding: 1.25rem 1.5rem;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .hero {
        min-height: auto;
        padding: 4.5rem 0 5rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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

    .hero-name {
        font-size: 1.25rem;
    }

    .hero-cta,
    .scroll-indicator {
        align-items: center;
        justify-content: center;
    }

    .hero-portrait {
        order: -1;
    }

    .portrait-frame {
        max-width: 260px;
    }

    .about,
    .experience,
    .projects,
    .skills,
    .education,
    .resume,
    .contact {
        padding: 4.5rem 0;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 44px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 12px;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-title {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .word {
        display: inline;
        margin-right: 0.08em;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .about-stats,
    .contact-options {
        grid-template-columns: 1fr;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .education-item {
        gap: 1rem;
    }

    .education-icon {
        min-width: 46px;
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
}
