/* =============================================
   TABLE OF CONTENTS
   =============================================
   1. CSS Variables
   2. Global Reset & Base Styles
   3. Custom Cursor
   4. Background Canvas
   5. Progress Bar
   6. Navigation
   7. Hero Section
   8. Section Common Styles
   9. Skills Grid
  10. Projects Grid
  11. Footer
  12. Scroll to Top
  13. Slider / Marquee
  14. Project Action Buttons
  15. Orbit Container & Profile Effects
  16. Tech Badges & Stats Cards
  17. Talk Button & Scroll Indicator
  18. Contact Form
  19. Animations
  20. Responsive Media Queries
   ============================================= */

/* ===== 1. CSS VARIABLES ===== */
:root {
    --primary: #00d9ff;
    --secondary: #a855f7;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #ffffff;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;    /* used in contact form */
    --gray-500: #6b7280;     /* used in contact form placeholder */
}

/* ===== 2. GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* ===== 3. CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    transition: all 0.2s ease;
}

/* ===== 4. BACKGROUND CANVAS ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

@media (max-aspect-ratio: 16/9) {
    #bgCanvas {
        width: auto;
        height: 100%;
    }
}
@media (min-aspect-ratio: 16/9) {
    #bgCanvas {
        width: 100%;
        height: auto;
    }
}

/* ===== 5. PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(10, 10, 15, 0.5);
    z-index: 50;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.3s ease;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% center; }
    50% { background-position: 200% center; }
}

/* ===== 6. NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    transition: transform 0.5s ease;
}

nav.hidden {
    transform: translateY(-100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--light);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
}

.cta-button {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Mobile navigation (expanded) */
.nav-links {
    /* base styles for desktop, overridden in media query */
}
.nav-links.active {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0;
    pointer-events: all;
}

/* ===== 7. HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, var(--dark) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.1), transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15), transparent 50%);
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-tag {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--light), var(--primary), var(--light));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.hero-content h2 span {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-description {
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-top: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.hero-3d {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.profile-circle {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    filter: blur(60px);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== 8. SECTION COMMON STYLES ===== */
.section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(90deg, var(--light), var(--primary), var(--light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--gray-400);
    max-width: 600px;
    margin: 1rem auto;
}

.section-divider {
    width: 96px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1.5rem auto 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== 9. SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.skill-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.skill-progress {
    margin-top: 1rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.skill-bar {
    height: 8px;
    background: var(--darker);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 9999px;
    transition: width 1s ease;
}

/* ===== 10. PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(20px);
}

.project-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== 11. FOOTER ===== */
footer {
    position: relative;
    background: linear-gradient(to bottom, var(--dark), var(--darker));
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ===== 12. SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100px);
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6);
}

/* ===== 13. SLIDER / MARQUEE ===== */
.slider {
    position: absolute;
    bottom: 1%;
    right: 20%;
    width: 60%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    mix-blend-mode: difference;
    opacity: 0.8;
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

.slider .list .item img {
    width: 100%;
}

@keyframes autoRun {
    from { left: 100%; }
    to { left: calc(var(--width) * -1); }
}

.slider:hover .item {
    animation-play-state: paused;
    filter: opacity(0.3);
}

.slider .item:hover {
    filter: opacity(1);
}

/* ===== 14. PROJECT ACTION BUTTONS ===== */
.project-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
    flex-direction: row;
}

.project-card:hover .project-actions {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-action-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-radius: 50%;
    color: var(--light);
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Individual button colors (live / code) */
.project-action-btn:first-child {
    border-color: #10b981;
    color: #10b981;
}
.project-action-btn:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-action-btn:first-child:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.project-action-btn:last-child {
    border-color: #6366f1;
    color: #6366f1;
}
.project-action-btn:last-child::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-action-btn:last-child:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.project-action-btn:hover::before {
    opacity: 1;
}
.project-action-btn:active {
    transform: translateY(-2px) scale(1.05);
}
.project-action-btn i {
    transition: transform 0.3s ease;
}
.project-action-btn:hover i {
    transform: scale(1.2);
}

/* Alternate gradient buttons (if used elsewhere) – kept for consistency */
.project-action-btn:first-child { /* already defined */ }
.project-action-btn:last-child { /* already defined */ }

/* ===== 15. ORBIT CONTAINER & PROFILE EFFECTS ===== */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    top: 50%;
    left: 50%;
    margin: -32px 0 0 -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.orbit-icon:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
    z-index: 10;
}

.orbit-1 {
    background: rgba(0, 217, 255, 0.15);
    border: 2px solid rgba(0, 217, 255, 0.4);
    color: var(--primary);
    animation: orbit 10s linear infinite;
}
.orbit-2 {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    color: var(--secondary);
    animation: orbit 10s linear infinite;
    animation-delay: -2.5s;
}
.orbit-3 {
    background: rgba(0, 217, 255, 0.15);
    border: 2px solid rgba(0, 217, 255, 0.4);
    color: var(--primary);
    animation: orbit 10s linear infinite;
    animation-delay: -5s;
}
.orbit-4 {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    color: var(--secondary);
    animation: orbit 10s linear infinite;
    animation-delay: -7.5s;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}
/*@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit-radius, 200px)) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(var(--orbit-radius, 200px)) rotate(-360deg);
    }
}*/

/* ===== 16. TECH BADGES & STATS CARDS ===== */
.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.tech-badge:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.15);
}

.stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== 17. TALK BUTTON & SCROLL INDICATOR ===== */
.talk-button {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--secondary), #d946ef);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
    transition: all 0.3s ease;
    animation: pulse-talk 2.5s ease-in-out infinite;
}

.talk-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.7);
}

@keyframes pulse-talk {
    0%, 100% { box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(168, 85, 247, 0.8), 0 0 0 12px rgba(168, 85, 247, 0.1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding: 0.6rem 0;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.8s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0.3; }
}

/* ===== 18. CONTACT FORM ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-subtitle i {
    color: var(--primary);
    font-size: 1.75rem;
}

.contact-description {
    color: var(--gray-300);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.contact-text h4 {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-text a,
.contact-text p {
    color: var(--light);
    font-size: 1.125rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
}

.contact-form-container {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    color: var(--gray-200);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.75rem;
    color: var(--light);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
    background: rgba(10, 10, 15, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

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

.form-submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.form-submit-btn:hover::before {
    left: 100%;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

.form-submit-btn:active {
    transform: translateY(-1px);
}

.form-submit-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.form-submit-btn:hover i {
    transform: translateX(5px);
}

/* ===== 19. ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== 20. RESPONSIVE MEDIA QUERIES ===== */

/* Large tablets and down (max-width: 1400px) */
@media (max-width: 1400px) {
    .slider {
        right: 10%;
        width: 70%;
    }
}

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Navigation */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        border-bottom: 1px solid rgba(0, 217, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 39;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
        pointer-events: none;
    }
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 0;
        pointer-events: all;
    }
    .nav-link {
        padding: 1rem 2rem;
        text-align: center;
        width: 100%;
        font-size: 1rem;
    }
    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-3d {
        margin: 0 auto;
        width: 500px;
        height: 500px;
    }
    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    /* About section (generic two-column) */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    /* Stats */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .stat-card {
        padding: 2rem 1.5rem !important;
    }
    .stat-number {
        font-size: 3rem !important;
    }

    /* Project actions on tablet */
    .project-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .project-action-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    /* Orbit icons */
    .orbit-icon {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
        font-size: 1.5rem;
    }
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Talk button */
    .talk-button {
        right: 50%;
        transform: translateX(50%);
        bottom: 5.5rem;
    }
    .talk-button:hover {
        transform: translateX(50%) translateY(-4px) scale(1.05);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* General */
    .section {
        padding: 4rem 0;
    }
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .hero-content h2 {
        font-size: 1.5rem !important;
    }
    .hero-3d {
        width: 350px;
        height: 350px;
    }
    .profile-circle {
        width: 250px !important;
        height: 250px !important;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Section titles */
    .section-title {
        font-size: 2.5rem !important;
    }

    /* Stats */
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .stat-card {
        padding: 1.75rem 1.5rem !important;
    }
    .stat-number {
        font-size: 2.5rem !important;
    }
    .stat-label {
        font-size: 0.875rem !important;
    }

    /* Project actions - always visible on mobile */
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .project-actions {
        opacity: 1;
        position: absolute;
        bottom: 1.5rem;
        top: auto;
        transform: translateX(-50%);
        left: 50%;
        flex-direction: row;
        gap: 0.5rem;
    }
    .project-card:hover .project-actions {
        transform: translateX(-50%);
    }
    .project-action-btn {
        width: 52px;
        height: 52px;
        font-size: 1.125rem;
    }

    /* Slider */
    .slider {
        position: relative;
        bottom: -30px;
        justify-content: center;
        align-items: center;
        right: -20%;
    }
    .slider img {
        width: 60%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    /* Hide scroll indicator */
    .scroll-indicator {
        display: none;
    }

    /* Talk button smaller */
    .talk-button span {
        display: none;
    }
    .talk-button {
        padding: 0.875rem;
        bottom: 5rem;
    }

    /* Contact form */
    .contact-form-container {
        padding: 2rem;
    }
    .contact-item {
        padding: 1.25rem;
    }
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.25rem;
    }
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
    }
    .form-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Orbit icons */
    .orbit-icon {
        width: 45px;
        height: 45px;
        margin: -20px 0 0 -20px;
        font-size: 1.25rem;
    }
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    .hero-3d {
        width: 300px;
        height: 300px;
    }
    .profile-circle {
        width: 200px !important;
        height: 200px !important;
    }
    .orbit-icon {
        width: 45px;
        height: 45px;
        margin: -10px 0 0 -10px;
        font-size: 1rem;
    }
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(145px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(145px) rotate(-360deg); }
    }
    .stat-number {
        font-size: 2rem !important;
    }
    .stat-label {
        font-size: 0.75rem !important;
    }
    .project-action-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    .hero-3d {
        width: 300px;
        height: 300px;
    }
    .scroll-indicator {
        display: none;
    }
}

/* Touch devices: larger tap targets */
@media (hover: none) and (pointer: coarse) {
    .project-action-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    .project-actions {
        opacity: 1;
    }
}