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

:root {
    --bg-color: #0b0c10;
    --surface-color: rgba(30, 32, 38, 0.6);
    --primary-color: #0b96be;
    --primary-rgb: 11, 150, 190;
    --secondary-color: #004b76;
    --secondary-rgb: 0, 75, 118;
    --accent-third: #ffffff;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --gradient: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--accent-third));
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --nav-bg: rgba(11, 12, 16, 0.5);
    --shadow-solid: rgba(255, 255, 255, 0.5);
}

:root[data-theme="light"] {
    --bg-color: #f0f2f5;
    --surface-color: rgba(255, 255, 255, 0.85);
    --primary-color: #0b96be;
    --primary-rgb: 11, 150, 190;
    --secondary-color: #004b76;
    --secondary-rgb: 0, 75, 118;
    --accent-third: #111827;
    --text-main: #111827;
    --text-muted: #4b5563;
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --gradient: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--accent-third));
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow-solid: rgba(17, 24, 39, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

:root[data-theme="light"] .bg-glow {
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

:root[data-theme="light"] .bg-glow-2 {
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -200px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s
}

/* Accessibility: visible focus ring */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}

/* Inline SVG icon sizing */
.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
    vertical-align: middle;
}

.hamburger .nav-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.social-icons a svg {
    width: 1.2rem;
    height: 1.2rem;
    pointer-events: none;
}

.contact-icon svg {
    width: 2rem;
    height: 2rem;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5)
}

.btn-solid {
    background: var(--primary-color);
    color: #0b0c10;
}

.btn-solid::before {
    background: var(--text-main);
}

.btn-solid:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--shadow-solid)
}

/* Sections */
section {
    padding: 30px 50px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 20px;
}

/* Hero */
#hero {
    align-items: flex-start;
    padding-top: 80px;
    position: relative;
    min-height: 70vh;
}

#hero h4 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 400;
}

#hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 20px;
}

#hero h1 span {
    font-size: clamp(2rem, 5.5vw, 4rem);
    display: block;
}

.roles {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.roles span {
    padding: 5px 15px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-list li {
    background: var(--surface-color);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.info-list span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-list strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Skills */
.skills-container {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

:root[data-theme="light"] .skill-progress::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Services Grid (Labs) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.labs-cta {
    margin-top: 30px;
    text-align: center;
}


/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 20px;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--surface-color);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive — Tablet (≤900px) */
@media(max-width:900px) {
    nav {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    nav ul {
        flex: 0 0 100%;
        order: 3;
        display: none;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        gap: 15px;
        padding-bottom: 10px;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

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

    .info-list {
        grid-template-columns: 1fr 1fr;
    }

    section {
        padding: 50px 24px;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .timeline {
        max-width: 100%;
    }
}

/* Responsive — Mobile (≤600px) */
@media(max-width:600px) {
    .info-list {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 16px;
    }

    .roles {
        font-size: 0.9rem;
        gap: 8px;
    }

    .roles span {
        padding: 4px 10px;
    }

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

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .skills-container {
        padding: 20px;
    }

    footer {
        font-size: 0.85rem;
        padding: 20px;
    }
}

/* Responsive — Small phones (≤380px) */
@media(max-width:380px) {
    nav .logo {
        font-size: 1.2rem;
    }

    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}