/* ================================
   Modern Minimalist Design System
================================ */
:root {
    /* Colors - Clean & Modern */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-hover: #1a1a1a;

    /* Accent - Enhanced with gradients */
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.7);
    --accent-muted: rgba(255, 255, 255, 0.4);
    --highlight: #6366f1;
    --highlight-secondary: #8b5cf6;
    --highlight-glow: rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(99, 102, 241, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ================================
   Reset & Base
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ================================
   3D Background Canvas
================================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* ================================
   Container
================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ================================
   Navigation
================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--space-sm);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    background: transparent;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ================================
   Section Styles
================================ */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--highlight);
    margin-bottom: var(--space-sm);
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-subtle);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

/* ================================
   Hero Section
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-xl) + 60px) 0 var(--space-xl);
    position: relative;
}

.hero-content {
    max-width: 700px;
    padding: 0 var(--space-md);
    z-index: 1;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--highlight);
    margin-bottom: var(--space-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-md);
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.8;
}

.scroll-hint {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--highlight);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    to {
        left: 100%;
    }
}

/* ================================
   About Section
================================ */
.about {
    background: transparent;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge i {
    color: var(--highlight);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 300px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(99, 102, 241, 0.08);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.about-image:hover {
    opacity: 1;
}

/* ================================
   Experience Section - Enhanced
================================ */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.exp-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: var(--radius-xl);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(99, 102, 241, 0.08);
}



.exp-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.4);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.exp-date {
    font-size: 0.9rem;
    color: var(--highlight);
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.exp-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exp-company {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.exp-list {
    padding-left: 0;
}

.exp-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.exp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ================================
   Projects Section - Enhanced
================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: var(--space-lg) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.08);
    position: relative;
    cursor: pointer;
}


.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.5);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Remove large spanning - all cards same size for consistent grid */
.project-card.large {
    grid-column: span 1;
    grid-row: span 1;
}

.project-image {
    height: 320px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
    overflow: hidden;
}

.project-card.large .project-image {
    height: 320px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-image img:not([src]) {
    display: none;
}

.project-3d {
    width: 100%;
    height: 100%;
}

.project-content {
    padding: var(--space-lg);
    position: relative;
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.project-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card.large h3 {
    font-size: 1.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--highlight);
}

/* Staggered animation for cards */
.project-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}

.project-card:nth-child(7) {
    animation-delay: 0.7s;
}

.project-card:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Image Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.gallery-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--highlight);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* ================================
   Lightbox Gallery Modal
================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-md);
    text-align: center;
}

.lightbox-gallery {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

/* Zoomed state */
.lightbox-image-container.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100vh;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.98);
    border-radius: 0;
    cursor: zoom-out;
    overflow: auto;
}

.lightbox-image-container.zoomed img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    max-width: 200%;
    transform: scale(1);
    border-radius: 0;
}

.lightbox-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: rgba(99, 102, 241, 0.6);
    border-color: var(--highlight);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumbnails img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.lightbox-thumbnails img.active {
    opacity: 1;
    border-color: var(--highlight);
}

.lightbox-counter {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-thumbnails img {
        width: 45px;
        height: 45px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }
}

/* ================================
   Playground Section
================================ */
.playground {
    background: transparent;
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.playground-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(99, 102, 241, 0.08);
}

.playground-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
}

.playground-canvas {
    height: 220px;
    background: var(--bg-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.playground-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.playground-info {
    padding: var(--space-sm);
}

.playground-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.playground-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.playground-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--highlight);
    color: white;
    border-color: var(--highlight);
}

.control-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Memory Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.memory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    min-height: 35px;
    user-select: none;
}

.memory-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.memory-card.flipped {
    background: var(--highlight);
    color: white;
    border-color: var(--highlight);
}

.memory-card.matched {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* Reaction Game */
.reaction-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.reaction-circle.waiting {
    background: #ef4444;
    border-color: #ef4444;
}

.reaction-circle.ready {
    background: #22c55e;
    border-color: #22c55e;
}

.reaction-circle span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* ================================
   Skills Section
================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.skill-group {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(99, 102, 241, 0.08);
}

.skill-group:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(99, 102, 241, 0.4);
}

.skill-group h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-name {
    flex: 0 0 140px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--highlight), #818cf8);
    border-radius: var(--radius-lg);
    transition: width 1s ease;
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.soft-tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.soft-tag:hover {
    color: var(--highlight);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* ================================
   Education Section
================================ */
.education {
    background: transparent;
    padding: var(--space-lg) 0;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.edu-card {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(99, 102, 241, 0.08);
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(99, 102, 241, 0.4);
}



.edu-status {
    display: inline-block;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--highlight);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.edu-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.edu-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.edu-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.edu-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================================
   Contact Section
================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-link i {
    width: 20px;
    color: var(--highlight);
}

.contact-link:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-bounce);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    background: var(--highlight);
    color: white;
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(99, 102, 241, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

/* ================================
   Footer
================================ */
.footer {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large {
        grid-column: span 1;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   Animations
================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ================================
   Responsive Project Grid
================================ */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .project-card.large .project-image {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-sm);
    }

    .project-card.large {
        grid-column: span 1;
    }

    .project-image,
    .project-card.large .project-image {
        height: 220px;
    }

    .project-content {
        padding: var(--space-md);
    }

    .project-card h3,
    .project-card.large h3 {
        font-size: 1.1rem;
    }

    /* Faster animations on mobile */
    .project-card {
        animation-duration: 0.4s;
    }

    .project-card:nth-child(n) {
        animation-delay: 0.1s;
    }
}