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

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #111c33;
    --bg-panel: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --primary: #6366f1;
    --accent: #8b5cf6;
    --highlight: #fbbf24;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --border: rgba(148, 163, 210, 0.18);
    --shadow-soft: 0 20px 40px -24px rgba(99, 102, 241, 0.45);
    --shadow-card: 0 25px 45px -35px rgba(15, 23, 42, 0.9);
    --shadow-hover: 0 35px 65px -40px rgba(99, 102, 241, 0.7);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: 20px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-panel: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary: #6366f1;
    --accent: #8b5cf6;
    --highlight: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(99, 102, 241, 0.2);
    --shadow-soft: 0 20px 40px -24px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 25px 45px -35px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 35px 65px -40px rgba(99, 102, 241, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12), transparent 50%),
                radial-gradient(circle at bottom, rgba(139, 92, 246, 0.1), transparent 55%),
                var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.35s ease, color 0.35s ease;
}

[data-theme="light"] body {
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.06), transparent 50%),
                radial-gradient(circle at bottom, rgba(139, 92, 246, 0.05), transparent 55%),
                var(--bg-primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 210, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    width: 0;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

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

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: var(--transition);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(99, 102, 241, 0.2);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    transition: var(--transition);
    position: absolute;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 8.5rem 0 5.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2), transparent 55%),
                radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.25), transparent 60%);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 62%);
    top: var(--cursor-y, 30%);
    left: var(--cursor-x, 60%);
    transform: translate(-50%, -50%);
    opacity: 0.7;
    pointer-events: none;
    filter: blur(0);
    transition: top 0.4s ease, left 0.4s ease, opacity 0.4s ease;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: stretch;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

.hero-greeting {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--highlight);
}

.hero-name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    background: linear-gradient(120deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-name {
    background: linear-gradient(120deg, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-summary {
    color: rgba(226, 232, 255, 0.85);
    font-size: 1.05rem;
    max-width: 32rem;
}

[data-theme="light"] .hero-summary {
    color: rgba(15, 23, 42, 0.8);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    border-color: transparent;
    background: rgba(99, 102, 241, 0.18);
    transform: translateY(-2px);
}

.hero-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.social-link {
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.social-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(99, 102, 241, 0.4);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link:hover::after {
    transform: scaleX(1);
}

.hero-profile {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.profile-card {
    background: rgba(12, 22, 43, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(var(--blur));
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.8rem;
    align-items: center;
}

[data-theme="light"] .profile-card {
    background: rgba(255, 255, 255, 0.9);
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 36px;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 40px -30px rgba(99, 102, 241, 0.7);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-label {
    font-size: 0.75rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(99, 102, 241, 0.7);
}

.profile-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 16rem;
}

.profile-quote {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 210, 0.12);
}

.profile-quote p {
    font-size: 0.95rem;
    color: rgba(226, 232, 255, 0.88);
    margin-bottom: 0.6rem;
}

[data-theme="light"] .profile-quote p {
    color: rgba(15, 23, 42, 0.8);
}

.profile-quote span {
    font-size: 0.8rem;
    color: rgba(148, 163, 210, 0.7);
}

[data-theme="light"] .profile-quote span {
    color: rgba(71, 85, 105, 0.65);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.metric-card {
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.05));
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 55%);
    opacity: 0;
    transition: var(--transition);
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(226, 232, 255, 0.72);
}

[data-theme="light"] .metric-label {
    color: rgba(71, 85, 105, 0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(148, 163, 210, 0.65);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(148, 163, 210, 0.35);
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    border-radius: 2px;
    background: rgba(148, 163, 210, 0.45);
    animation: scroll 1.6s ease-in-out infinite;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-of-type(odd) {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.085), transparent 58%);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 52rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: rgba(203, 213, 255, 0.78);
    font-size: 1.05rem;
}

[data-theme="light"] .section-subtitle {
    color: rgba(71, 85, 105, 0.8);
}

.section-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}

.about-column {
    background: rgba(12, 22, 43, 0.55);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 210, 0.12);
    padding: 2rem;
    backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
}

[data-theme="light"] .about-column {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.column-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .column-title {
    color: rgba(15, 23, 42, 0.9);
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgba(226, 232, 255, 0.82);
    font-size: 0.98rem;
}

[data-theme="light"] .about-list {
    color: rgba(15, 23, 42, 0.75);
}

.about-list li {
    position: relative;
    padding-left: 1.6rem;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12);
}

.timeline-card {
    border-radius: var(--radius-sm);
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(148, 163, 210, 0.15);
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

[data-theme="light"] .timeline-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.timeline-card + .timeline-card {
    margin-top: 1.1rem;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
}

.timeline-period {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 210, 0.65);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-meta {
    color: rgba(203, 213, 255, 0.75);
    font-size: 0.95rem;
}

[data-theme="light"] .timeline-meta {
    color: rgba(71, 85, 105, 0.7);
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    overflow: hidden;
    position: relative;
}

.skill-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 1.1s ease-out;
}

/* Experience */
.experience-grid {
    display: grid;
    gap: 2.4rem;
}

.experience-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 210, 0.12);
    background: rgba(12, 22, 43, 0.6);
    padding: 2.3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-theme="light"] .experience-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.2), transparent 65%);
    opacity: 0;
    transition: var(--transition);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card > * {
    position: relative;
    z-index: 1;
}

.experience-period {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 210, 0.6);
}

.experience-role {
    font-size: 1.35rem;
    font-weight: 600;
}

.experience-company {
    font-size: 1rem;
    color: rgba(199, 210, 254, 0.8);
}

[data-theme="light"] .experience-company {
    color: rgba(71, 85, 105, 0.75);
}

.experience-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: rgba(226, 232, 255, 0.82);
}

[data-theme="light"] .experience-points {
    color: rgba(15, 23, 42, 0.75);
}

.experience-points li {
    position: relative;
    padding-left: 1.5rem;
}

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

/* Skills */
.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.skill-column {
    background: rgba(12, 22, 43, 0.55);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(148, 163, 210, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

[data-theme="light"] .skill-column {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 0.9rem;
    color: rgba(226, 232, 255, 0.9);
    transition: var(--transition);
}

[data-theme="light"] .chip {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: rgba(15, 23, 42, 0.85);
}

.chip:hover {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    border-color: transparent;
    transform: translateY(-3px);
}

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

.project-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 210, 0.12);
    background: rgba(12, 22, 43, 0.58);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(99, 102, 241, 0.18), transparent 65%);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-type {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 210, 0.6);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.project-description {
    color: rgba(226, 232, 255, 0.82);
    font-size: 0.98rem;
}

[data-theme="light"] .project-description {
    color: rgba(15, 23, 42, 0.75);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.meta-item {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    font-size: 0.85rem;
    color: rgba(226, 232, 255, 0.85);
}

[data-theme="light"] .meta-item {
    background: rgba(99, 102, 241, 0.12);
    color: rgba(15, 23, 42, 0.8);
}

/* Honors */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.honor-card {
    background: rgba(12, 22, 43, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 210, 0.12);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

[data-theme="light"] .honor-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

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

.honor-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.honor-description {
    color: rgba(226, 232, 255, 0.82);
    font-size: 0.95rem;
}

[data-theme="light"] .honor-description {
    color: rgba(15, 23, 42, 0.75);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.contact-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 210, 0.15);
    padding: 1.8rem;
    background: rgba(12, 22, 43, 0.55);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

[data-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 210, 0.6);
}

.contact-value {
    display: block;
    margin-top: 0.6rem;
    font-size: 1.02rem;
    color: rgba(226, 232, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="light"] .contact-value {
    color: rgba(15, 23, 42, 0.85);
}

.contact-value:hover {
    color: var(--text-primary);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt */
[data-tilt] {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

[data-tilt].is-hovering {
    transition: transform 0.12s ease-out;
}

/* Footer */
.footer {
    padding: 2.4rem 0;
    text-align: center;
    color: rgba(203, 213, 255, 0.7);
    border-top: 1px solid rgba(148, 163, 210, 0.12);
    background: rgba(12, 22, 43, 0.65);
}

[data-theme="light"] .footer {
    color: rgba(71, 85, 105, 0.7);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    background: rgba(248, 250, 252, 0.9);
}

.footer-subtext {
    margin-top: 0.4rem;
    font-size: 0.88rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -8px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .hero-grid,
    .about-content,
    .skills-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        background: rgba(12, 22, 43, 0.95);
        border: 1px solid rgba(148, 163, 210, 0.18);
        border-radius: var(--radius-md);
        flex-direction: column;
        padding: 1.8rem;
        gap: 1.5rem;
        transition: 0.35s ease;
        backdrop-filter: blur(16px);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding-top: 7.5rem;
    }

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

    .hero-summary {
        max-width: 100%;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        margin: 0 auto;
        width: 220px;
        height: 220px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .about-content,
    .skills-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .container {
        padding: 0 1.4rem;
    }
}

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

    .project-card,
    .contact-card,
    .honor-card {
        padding: 1.6rem;
    }
}

