/* ================================
   CSS Variables & Reset
================================ */
:root {
    --primary: #99FFCC;
    --primary-dark: #7ad4a8;
    --primary-light: #b8ffe0;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --z-canvas: 1;
    --z-content: 10;
    --z-nav: 100;
    --z-chatbot: 200;
    --z-loader: 1000;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

body {
    font-family: var(--font-display);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ================================
   Loader
================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

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

.loader-text {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    justify-content: center;
}

.loader-letter {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    opacity: 0;
    transform: translateY(20px);
    animation: letterFade 0.5s ease forwards;
}

.loader-letter:nth-child(1) { animation-delay: 0.1s; }
.loader-letter:nth-child(2) { animation-delay: 0.15s; }
.loader-letter:nth-child(3) { animation-delay: 0.2s; }
.loader-letter:nth-child(4) { animation-delay: 0.25s; }
.loader-letter:nth-child(5) { animation-delay: 0.3s; }
.loader-letter:nth-child(6) { animation-delay: 0.35s; }
.loader-letter:nth-child(7) { animation-delay: 0.4s; }

@keyframes letterFade {
    to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--primary);
    width: 0;
    animation: loadProgress 1.5s ease forwards 0.5s;
}

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

/* ================================
   Cursor (Desktop Only)
================================ */
.custom-cursor,
.cursor-follower {
    display: none;
}

@media (min-width: 1024px) and (hover: hover) {
    .custom-cursor {
        display: block;
        width: 12px;
        height: 12px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: transform 0.1s ease;
    }
    
    .cursor-follower {
        display: block;
        width: 40px;
        height: 40px;
        border: 1px solid var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.3s ease;
    }
}

/* ================================
   Navigation
================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

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

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

/* ================================
   Canvas Container (3D)
================================ */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    /* NO BACKGROUND - fully transparent */
}

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

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0;
    transition: width 0.1s linear;
}

/* ================================
   Main Content
================================ */
#main-content {
    position: relative;
    z-index: var(--z-content);
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 60px;
}

.section-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   HERO SECTION - FLIPPED (3D LEFT, TEXT RIGHT)
================================ */
.hero-content.hero-flipped {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

/* Left side - space for 3D model */
.hero-3d-space {
    width: 100%;
    height: 500px;
    /* This is just a placeholder, the 3D is in the fixed canvas */
}

/* Right side - text content */
.hero-text {
    padding-left: 40px;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.greeting-line {
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.greeting-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.hero-name {
    margin-bottom: 20px;
}

.name-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
}

.name-line.accent {
    color: var(--primary);
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.title-bracket {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--primary);
}

.title-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(153, 255, 204, 0.3);
}

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

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

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

/* ================================
   ABOUT SECTION - Text LEFT, 3D RIGHT
================================ */
.about-content {
    padding-top: 100px;
}

.section-header {
    margin-bottom: 60px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-column {
    max-width: 600px;
}

.about-3d-space {
    width: 100%;
    min-height: 400px;
    /* 3D model flows here via scroll */
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

/* ================================
   SKILLS SECTION
================================ */
.skills-content {
    padding-top: 100px;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skills-category {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.skill-card {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(153, 255, 204, 0.1);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ================================
   PROJECTS SECTION
================================ */
.projects-content {
    padding-top: 100px;
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card.featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    padding: 50px;
    align-items: center;
}

/* Mobile Phone Screenshot - floating animation */
.project-media.mobile-screenshot {
    width: 220px;
    height: 450px;
    background: #000;
    border-radius: 35px;
    border: 6px solid #333;
    padding: 8px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-media.mobile-screenshot.floating-phone {
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.project-phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 28px;
    margin: 8px;
}

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

.project-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.project-info {
    flex: 1;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 16px;
    background: rgba(153, 255, 204, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 1.2rem;
}

/* More Projects */
.more-projects {
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: 30px;
}

.more-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.more-text {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.project-placeholder-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.project-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-muted);
}

.placeholder-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* ================================
   CONTACT SECTION
================================ */
.contact-content {
    padding-top: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-left: 3px solid var(--primary);
}

.method-icon {
    font-size: 1.5rem;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.method-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.chatbot-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chatbot-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.form-status {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.form-status.success {
    background: rgba(153, 255, 204, 0.1);
    color: var(--primary);
}

/* ================================
   CHATBOT
================================ */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 550px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: var(--z-chatbot);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 700;
}

.chatbot-title h4 {
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.8rem;
    color: var(--primary);
}

.chatbot-close {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 5px 10px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 300px;
}

.message {
    margin-bottom: 15px;
}

.message-content {
    background: var(--bg-dark);
    padding: 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chatbot-quick-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
}

.quick-action {
    padding: 10px 18px;
    background: rgba(153, 255, 204, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-input input {
    flex: 1;
    background: var(--bg-card);
    border: none;
    padding: 12px 18px;
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chatbot-input input:focus {
    outline: none;
}

.send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 600;
    z-index: var(--z-chatbot);
    box-shadow: 0 10px 30px rgba(153, 255, 204, 0.3);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
}

.chatbot-toggle.hidden {
    opacity: 0;
    visibility: hidden;
}

.chat-icon {
    font-size: 1.3rem;
}

/* ================================
   FOOTER
================================ */
.footer {
    background: var(--bg-darker);
    padding: 60px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.footer-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

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

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 1200px) {
    .section { padding: 80px 40px; }
    .hero-content.hero-flipped { gap: 40px; }
    .about-layout { gap: 50px; }
    .contact-grid { gap: 50px; }
}

@media (max-width: 1024px) {
    /* Hide 3D on tablet/mobile */
    #canvas-container { display: none !important; }
    
    /* Navigation */
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    
    /* Hero - Stack vertically */
    .hero-content.hero-flipped {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-3d-space { display: none; }
    
    .hero-text {
        padding: 0;
    }
    
    .hero-greeting {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* About - Stack vertically */
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-3d-space { display: none; }
    
    .about-text-column {
        max-width: 100%;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    /* Projects */
    .project-card.featured {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }
    
    .project-media.mobile-screenshot {
        margin: 0 auto 30px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-method {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 20px; }
    
    #navbar { padding: 15px 20px; }
    #navbar.scrolled { padding: 12px 20px; }
    
    .name-line {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .title-text {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }
    
    .about-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .skills-category {
        padding: 25px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skill-card {
        padding: 15px;
    }
    
    .project-media.mobile-screenshot {
        width: 180px;
        height: 370px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-features {
        justify-content: center;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }
    
    .chatbot-toggle {
        padding: 12px 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section { padding: 40px 15px; }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-placeholder-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-link {
        font-size: 1.5rem;
    }
}