:root[data-theme="dark"] {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --primary-color: #00f0ff; /* Neon Cyan */
    --secondary-color: #8a2be2; /* Neon Purple */
    --accent-color: #ff3366; /* Dragon Red */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --card-bg: rgba(10, 10, 15, 0.5);
    --nav-bg: rgba(3, 3, 5, 0.85);
}

:root[data-theme="light"] {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --primary-color: #0071e3; /* Apple Blue */
    --secondary-color: #5e5ce6;
    --accent-color: #ff3b30;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(245, 245, 247, 0.85);
}

:root {
    --font-heading: 'Georgia', serif;
    --font-body: 'Georgia', serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: initial; /* Lenis takes over */
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(128, 128, 128, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: loadProgress 2s cubic-bezier(0.75, 0, 0.25, 1) forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Custom Cursor - Disabled per request */
.cursor {
    display: none;
    /* position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform; */
}

.cursor-follower {
    display: none;
    /* position: fixed;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, top 0.3s, left 0.3s; */
}

.cursor.hovered {
    transform: scale(0) !important;
}

.cursor-follower.hovered {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(4px);
}

[data-theme="light"] .cursor-follower.hovered {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Magnetic Buttons */
.magnetic-btn-container {
    display: inline-block;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.w-full { width: 100%; }
.p-0 { padding: 0 !important; }

.section {
    padding: 15vh 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

/* Glassmorphism */
.glass-nav, .glass-card, .glass-bg {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Glow Effects */
.g-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

[data-theme="light"] .g-glow {
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: padding 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.navbar.scrolled {
    padding: 16px 5%;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--glass-bg);
}

[data-theme="dark"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: none; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    z-index: 1001;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
    width: 100%;
    border-radius: 2px;
    height: 2px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 50%;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transform: translateY(-50%);
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: right 0.7s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 15px 0;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    color: var(--text-secondary);
}

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

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1002;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

#particles-js, #hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
}

.hero-title span {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.typing-container {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    height: 40px;
    margin-bottom: 3rem;
    color: var(--primary-color);
    opacity: 0;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0;
}

.btn {
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

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

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 2s 2s forwards;
}

.mouse {
    width: 30px;
    height: 48px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

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

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

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

.about-text-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-large p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

.about-text-large strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-image-content {
    position: relative;
    width: 100%;
    height: 600px;
}

.image-collage {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    transition: var(--transition);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.collage-item:hover {
    z-index: 10;
    transform: scale(1.05) translateZ(20px) !important;
}

.collage-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.item-1 {
    width: 60%;
    height: 50%;
    top: 5%;
    left: 0;
    z-index: 3;
    transform: rotate(-3deg);
}

.item-2 {
    width: 50%;
    height: 40%;
    top: 15%;
    right: 5%;
    z-index: 2;
    transform: rotate(5deg);
}

.item-3 {
    width: 55%;
    height: 35%;
    bottom: 5%;
    left: 20%;
    z-index: 4;
    transform: rotate(-2deg);
}

/* Stats Section (Parallax Layer) */
.stats-section {
    padding: 10vh 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    transform-style: preserve-3d;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translateZ(15px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-category {
    transform-style: preserve-3d;
    padding-top: 4rem;
    overflow: visible !important; /* Ensure icons aren't clipped */
}

.skill-icon-wrapper {
    position: absolute;
    top: -30px; /* Slightly lowered and verified visibility */
    left: 2.5rem;
    width: 64px;
    height: 64px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transform: translateZ(50px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10;
}

.skill-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 700;
    transform: translateZ(30px);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateZ(20px);
}

.skill-bar-container {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-info .percent {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.skill-progress {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    width: 0; /* Animated with JS */
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
}

.project-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

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

.icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255,255,255,0.2);
}

.project-card:hover .icon-link {
    transform: translateY(0);
}

.icon-link:nth-child(2) {
    transition-delay: 0.1s;
}

.icon-link:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1) !important;
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    background: var(--glass-bg);
    border-radius: 20px;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* Achievements Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
    background: var(--bg-color);
    border: 4px solid var(--primary-color);
}

.glow-primary { border-color: var(--primary-color); box-shadow: 0 0 15px var(--primary-color); }
.glow-secondary { border-color: var(--secondary-color); box-shadow: 0 0 15px var(--secondary-color); }
.glow-accent { border-color: var(--accent-color); box-shadow: 0 0 15px var(--accent-color); }

.timeline-content {
    padding: 30px;
}

.timeline-date {
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    font-size: 1.2rem;
}

.contact-link:hover .icon-box {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.1);
}

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

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.4s ease;
}

.input-group input:focus ~ .input-line,
.input-group textarea:focus ~ .input-line {
    width: 100%;
}

.btn-submit {
    height: 60px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer p {
    color: var(--text-secondary);
}

.back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.back-to-top:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    z-index: 100;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

.tooltip[data-tooltip="Toggle Theme"]::before { top: 120%; left: 50%; transform: translateX(-50%); }
.project-card .tooltip::before { bottom: 120%; left: 50%; transform: translateX(-50%); }
.back-to-top.tooltip::before { bottom: 120%; left: 50%; transform: translateX(-50%); }

/* Responsive */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-content { height: 400px; padding-top: 40px;}
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3.2rem); }
    .hero-subtitle { font-size: clamp(0.8rem, 2vw, 1rem); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 50px; }
    .timeline-dot { left: 5px; width: 16px; height: 16px; top: 8px;}
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
