/* ==========================================
   CSS Variables & Base Styles
   ========================================== */
:root {
    /* Dark Theme (Default) */
    --color-bg: #0a0a0b;
    --color-bg-secondary: #111113;
    --color-bg-tertiary: #1a1a1d;
    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-accent: #f59e0b;
    --color-border: #27272a;
    --color-card: #18181b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

::selection {
    background-color: var(--color-primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

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

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

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

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

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

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

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* Artistic Profile with Paint Splashes */
.profile-artistic {
    position: relative;
    width: 500px;
    height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.profile-artistic .profile-image {
    position: relative;
    z-index: 2;
    max-width: 450px;
    max-height: 550px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: contrast(1.05) saturate(1.1);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Paint Splash Effects */
.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: 1;
}

.splash-1 {
    width: 210px;
    height: 210px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    top: -3%;
    right: 10%;
    opacity: 0.8;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphSplash1 8s ease-in-out infinite;
}

.splash-2 {
    width: 150px;
    height: 180px;
    background: linear-gradient(180deg, #06b6d4 0%, #0ea5e9 100%);
    bottom: 12%;
    left: -2%;
    opacity: 0.7;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphSplash2 10s ease-in-out infinite;
}

.splash-3 {
    width: 130px;
    height: 150px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    bottom: 0%;
    right: 5%;
    opacity: 0.75;
    border-radius: 50% 60% 40% 70% / 50% 70% 30% 60%;
    animation: morphSplash3 7s ease-in-out infinite;
}

.splash-4 {
    width: 90px;
    height: 110px;
    background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
    top: 18%;
    left: 2%;
    opacity: 0.6;
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    animation: morphSplash4 9s ease-in-out infinite;
}

.splash-5 {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    top: 8%;
    right: 42%;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

@keyframes morphSplash1 {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes morphSplash2 {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 40% 50% 40%; }
}

@keyframes morphSplash3 {
    0%, 100% { border-radius: 50% 60% 40% 70% / 50% 70% 30% 60%; }
    50% { border-radius: 70% 30% 60% 40% / 30% 50% 70% 50%; }
}

@keyframes morphSplash4 {
    0%, 100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    50% { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
}

/* Rotating Hire Me Badge */
.hire-badge {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 120px;
    height: 120px;
}

.hire-badge-text {
    width: 100%;
    height: 100%;
    animation: rotateBadge 10s linear infinite;
    fill: var(--color-text);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hire-badge-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes rotateBadge {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0.875rem 1rem;
}

.btn-secondary:hover {
    color: var(--color-primary);
}

/* Decorative Light Bulb */
.decorative-bulb {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 80px;
    height: 80px;
    animation: float 4s ease-in-out infinite;
}

.decorative-bulb svg {
    width: 100%;
    height: 100%;
}

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


/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--color-text);
}

.education-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all var(--transition-base);
}

.education-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.education-icon.college-logo {
    background: white;
    padding: 8px;
}

.education-icon.college-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.education-details p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.education-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: var(--color-bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.education-cgpa {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ==========================================
   Experience Section
   ========================================== */
.experience {
    background: var(--color-bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-bg-secondary);
}

.timeline-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--color-primary-light);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.timeline-description {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.timeline-description li {
    position: relative;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.timeline-description li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.timeline-description strong {
    color: var(--color-text);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary-light);
    border-radius: 20px;
    font-weight: 500;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.project-image {
    position: relative;
    height: 220px;
    background: var(--color-bg-tertiary);
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 10;
}

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

.project-link {
    width: 54px;
    height: 54px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.project-link svg {
    width: 24px;
    height: 24px;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.project-type {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.project-highlights {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.project-highlights li {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    position: relative;
}

.project-highlights li::before {
    content: '▹';
    position: absolute;
    left: -1rem;
    color: var(--color-primary);
}

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

.project-tags .tag {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.project-card:hover .project-tags .tag {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Show More Projects & Open Source */
.project-card.hidden,
.opensource-card.hidden {
    display: none;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-show-more:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-show-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.btn-show-more.expanded svg {
    transform: rotate(180deg);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills {
    background: var(--color-bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.skill-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.skill-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.skill-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.skill-chip.highlight {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--color-primary-light);
}

/* ==========================================
   Open Source Section
   ========================================== */
.opensource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.opensource-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.opensource-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.opensource-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.github-icon {
    width: 40px;
    height: 40px;
    color: var(--color-text);
}

.opensource-info {
    flex: 1;
}

.opensource-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.opensource-info a {
    font-size: 0.85rem;
    color: var(--color-primary-light);
    transition: color var(--transition-fast);
}

.opensource-info a:hover {
    color: var(--color-primary);
}

.pr-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 20px;
    font-weight: 600;
}

.opensource-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pr-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-bg-tertiary);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.pr-item:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

.pr-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.pr-title {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background: var(--color-bg-secondary);
}

.contact-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: -1.5rem auto 3rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.contact-link:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

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

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

.footer-year {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
        min-height: 400px;
    }

    .profile-artistic {
        width: 300px;
        height: 380px;
    }

    .profile-artistic .profile-image {
        max-width: 250px;
    }

    .hero-text {
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hire-badge {
        width: 100px;
        height: 100px;
        left: -10px;
        bottom: 5%;
    }

    .hire-badge-inner {
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }

    .decorative-bulb {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid,
    .opensource-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-base);
        border-left: 1px solid var(--color-border);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        align-items: center;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   3D Project Carousel
   ========================================== */
.carousel-scroll-spacer {
    height: 180vh;
    position: relative;
}

.carousel-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-sticky-wrapper .section-title {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

#carousel-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-project-info {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    min-width: 300px;
    max-width: 420px;
}

.carousel-project-info.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.carousel-project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.carousel-info-type {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-info-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.carousel-info-tags {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.carousel-info-tags .tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.carousel-info-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    pointer-events: auto;
}

.carousel-info-links a {
    color: var(--color-text);
    font-size: 0.75rem;
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    font-weight: 500;
}

.carousel-info-links a:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.carousel-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: carouselBounce 2s ease infinite;
}

.carousel-scroll-hint svg {
    opacity: 0.6;
}

@keyframes carouselBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* Light theme adjustments for carousel */
[data-theme="light"] .carousel-project-info {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .carousel-info-links a {
    background: rgba(0, 0, 0, 0.03);
}

/* Desktop/mobile toggle */
.carousel-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .carousel-desktop-only {
        display: none;
    }

    .carousel-mobile-only {
        display: block;
    }

    .carousel-mobile-only .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carousel-mobile-only .project-card {
        background: var(--color-card);
        border: 1px solid var(--color-border);
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .carousel-mobile-only .project-card.hidden {
        display: none;
    }

    .carousel-mobile-only .project-card .project-image {
        position: relative;
        height: 200px;
        background: var(--color-bg-tertiary);
        overflow: hidden;
    }

    .carousel-mobile-only .project-card .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-mobile-only .project-card .project-overlay {
        position: absolute;
        inset: 0;
        background: rgba(15, 15, 20, 0.6);
        backdrop-filter: blur(2px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    .carousel-mobile-only .project-card:active .project-overlay {
        opacity: 1;
    }

    .carousel-mobile-only .project-link {
        width: 48px;
        height: 48px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .carousel-mobile-only .project-link svg {
        width: 22px;
        height: 22px;
    }

    .carousel-mobile-only .project-content {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .carousel-mobile-only .project-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.5rem;
        gap: 0.75rem;
    }

    .carousel-mobile-only .project-header h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--color-text);
        line-height: 1.3;
    }

    .carousel-mobile-only .project-type {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        background: var(--gradient-primary);
        color: white;
        border-radius: 5px;
        font-weight: 600;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .carousel-mobile-only .project-description {
        color: var(--color-text-secondary);
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
        flex: 1;
    }

    .carousel-mobile-only .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: auto;
    }

    .carousel-mobile-only .project-tags .tag {
        background: var(--color-bg-tertiary);
        border: 1px solid var(--color-border);
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        color: var(--color-text-secondary);
    }
}
