/* Enhanced CSS Variables and Base Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --secondary-gradient: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --purple-gradient: linear-gradient(135deg, #8b5cf6, #ec4899);
    --blue-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --green-gradient: linear-gradient(135deg, #10b981, #06b6d4);
    --orange-gradient: linear-gradient(135deg, #f59e0b, #ef4444);
    --indigo-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gray-gradient: linear-gradient(135deg, #6b7280, #4b5563);
    --nuck-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    
    --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    
    --z-loading: 10000;
    --z-navbar: 50;
    --z-modal: 100;
    --z-tooltip: 200;
}

/* Enhanced Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 500;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform-origin: 0%;
    transform: scaleX(0);
    z-index: calc(var(--z-navbar) + 1);
    transition: transform 0.1s ease;
}

/* Enhanced Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(139, 92, 246, 0.08) 25%, 
        rgba(236, 72, 153, 0.08) 50%, 
        rgba(59, 130, 246, 0.08) 75%, 
        rgba(139, 92, 246, 0.08) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

.bg-particles {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(100px);
}

.mouse-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(600px circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 40%);
    transition: background 0.05s ease;
}

/* Page Management with Enhanced Transitions */
.page {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s var(--ease-out-expo);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.page.transitioning-out {
    opacity: 0;
    transform: translateX(-20px);
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-navbar);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    text-decoration: none; /* This line removes the underline */
    font-weight: 500;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s var(--spring);
    animation: slideDown 0.6s ease 0.1s both;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-back {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    color: inherit;
}

.nav-back:hover {
    transform: scale(1.05);
}

.nav-back i {
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-back:hover i {
    color: var(--text-primary);
}

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

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    animation: slideDown 0.6s ease both;
}

.nav-link:nth-child(1) { animation-delay: 0.2s; }
.nav-link:nth-child(2) { animation-delay: 0.3s; }
.nav-link:nth-child(3) { animation-delay: 0.4s; }

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.nav-link:hover .nav-underline {
    width: 100%;
}

.nav-link.active .nav-underline {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

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

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

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.parallax-container {
    transition: transform 0.1s ease;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 64rem;
}

.available-badge {
    margin-bottom: 1.5rem;
}

.rotating-icon {
    animation: rotate 2s linear infinite;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 48rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Nuck AI Hero Specific */
.nuck-hero .nuck-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brain-emoji {
    font-size: 4rem;
}

.pulse-animation {
    animation: brainPulse 3s ease-in-out infinite;
}

.nuck-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

/* Enhanced Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    pointer-events: none;
    filter: blur(1px);
}

.floating-1 {
    top: 33%;
    right: 5rem;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.floating-2 {
    bottom: 33%;
    left: 5rem;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 191, 36, 0.2));
}

.floating-nuck-1 {
    top: 25%;
    right: 5rem;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.floating-nuck-2 {
    bottom: 25%;
    left: 5rem;
    width: 7rem;
    height: 7rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.floating-animation {
    animation: floatComplex 8s ease-in-out infinite;
}

.floating-1 { animation-delay: 0s; }
.floating-2 { animation-delay: 1s; }
.floating-nuck-1 { animation-delay: 2s; }
.floating-nuck-2 { animation-delay: 0.5s; }

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary::before {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.btn-secondary::before {
    background: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    transform: scale(1.05) translateY(-2px);
    color: var(--text-primary);
    border-color: rgba(229, 231, 235, 0.7);
}

.nuck-primary {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.nuck-primary::before {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-icon-left {
    order: -1;
}

/* Enhanced Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid transparent;
}

.available-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #059669;
}

.badge-blue { background: var(--blue-gradient); color: white; }
.badge-green { background: var(--green-gradient); color: white; }
.badge-purple { background: var(--purple-gradient); color: white; }
.badge-orange { background: var(--orange-gradient); color: white; }
.badge-outline { 
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(229, 231, 235, 0.5); 
    color: var(--text-muted);
}

/* Enhanced Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: all 0.5s var(--spring);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.card:hover::before {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Work Cards */
.work-section {
    padding: 5rem 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.work-card {
    perspective: 1000px;
}

.card-icon-container {
    margin-bottom: 2rem;
}

.card-icon-bg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s var(--spring);
    transform: translateZ(0);
}

.card-icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon-bg.gradient-blue { background: rgba(59, 130, 246, 0.1); }
.card-icon-bg.gradient-purple { background: rgba(139, 92, 246, 0.1); }
.card-icon-bg.gradient-green { background: rgba(16, 185, 129, 0.1); }

.card-icon-bg i {
    font-size: 1.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-title-hover:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.card-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    backdrop-filter: blur(20px);
}

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

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fade-in-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-card .card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.focus-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.focus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.focus-item:hover {
    background: rgba(248, 250, 252, 0.6);
}

.focus-label {
    color: var(--text-secondary);
    transition: var(--transition);
}

.focus-item:hover .focus-label {
    color: var(--text-primary);
}

/* Projects Section */
.projects-section {
    padding: 5rem 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    perspective: 1000px;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.project-hover-effect:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
}

.project-icon {
    aspect-ratio: 16/9;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s var(--spring);
}

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

.project-icon.gradient-purple { background: rgba(139, 92, 246, 0.1); }
.project-icon.gradient-blue { background: rgba(59, 130, 246, 0.1); }
.project-icon.gradient-green { background: rgba(16, 185, 129, 0.1); }

.project-icon-inner {
    font-size: 3rem;
    color: #8b5cf6;
    transition: all 0.3s var(--spring);
}

.project-icon.gradient-blue .project-icon-inner { color: #3b82f6; }
.project-icon.gradient-green .project-icon-inner { color: #10b981; }

.project-icon-hover:hover .project-icon-inner {
    transform: scale(1.2) rotate(5deg);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-title-hover:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-badge {
    background: var(--gray-gradient);
    color: white;
    border: none;
}

.project-link-icon {
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.project-card:hover .project-link-icon {
    color: var(--text-primary);
    transform: scale(1.2) rotate(15deg);
}

.dashed-card {
    border-style: dashed;
    border-color: rgba(229, 231, 235, 0.5);
}

/* Contact Section */
.contact-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(243, 244, 246, 0.8));
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(236, 72, 153, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

.contact-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(229, 231, 235, 0.5), transparent);
    margin: 3rem 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.5);
    color: var(--text-muted);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--spring);
}

.interactive-social:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--text-primary);
    border-color: rgba(229, 231, 235, 0.7);
    background: rgba(255, 255, 255, 0.8);
}

/* Tech Section (Nuck AI) */
.tech-section {
    padding: 5rem 1.5rem;
}

.tech-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-emoji {
    font-size: 2.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-card {
    perspective: 1000px;
}

.tech-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s var(--spring);
}

.tech-icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-icon.gradient-blue { background: rgba(59, 130, 246, 0.1); }
.tech-icon.gradient-purple { background: rgba(139, 92, 246, 0.1); }
.tech-icon.gradient-green { background: rgba(16, 185, 129, 0.1); }
.tech-icon.gradient-orange { background: rgba(245, 158, 11, 0.1); }
.tech-icon.gradient-indigo { background: rgba(99, 102, 241, 0.1); }
.tech-icon.gradient-gray { background: rgba(107, 114, 128, 0.1); }

.tech-icon i {
    font-size: 1.75rem;
    color: #3b82f6;
}

.tech-icon.gradient-purple i { color: #8b5cf6; }
.tech-icon.gradient-green i { color: #10b981; }
.tech-icon.gradient-orange i { color: #f59e0b; }
.tech-icon.gradient-indigo i { color: #6366f1; }
.tech-icon.gradient-gray i { color: #6b7280; }

.tech-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.tech-title-hover:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Purpose Section */
.purpose-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    backdrop-filter: blur(20px);
}

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

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

.purpose-emoji {
    font-size: 2.5rem;
}

.purpose-text .section-title {
    text-align: left;
}

.purpose-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-purple {
    color: #8b5cf6;
    font-weight: 500;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(248, 250, 252, 0.6);
}

.feature-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-title {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.feature-item:hover .feature-title {
    color: #8b5cf6;
}

.feature-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Development Section */
.development-section {
    padding: 5rem 1.5rem;
}

.development-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.dev-emoji {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.development-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.dev-card {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(255, 237, 213, 0.8));
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.dev-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.highlight-orange {
    color: #f59e0b;
    font-weight: 500;
}

.highlight-blue {
    color: #3b82f6;
    font-weight: 500;
}

.dev-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    text-align: center;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dev-cta {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.dev-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
}

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

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

.footer-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.footer-back:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Gradient Text Classes */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
}

.animate-gradient {
    animation: gradientFlow 15s ease infinite;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--text-primary), #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-nuck {
    background: var(--nuck-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
}

.gradient-text-blue {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes brainPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes floatComplex {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(5deg) scale(1.05); 
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) rotate(0deg) scale(1); 
    }
    75% { 
        transform: translateY(-30px) translateX(-10px) rotate(-5deg) scale(0.95); 
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation System */
.stagger-item {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.stagger-item[data-delay="0.2"] { animation-delay: 0.2s; }
.stagger-item[data-delay="0.4"] { animation-delay: 0.4s; }
.stagger-item[data-delay="0.6"] { animation-delay: 0.6s; }
.stagger-item[data-delay="0.8"] { animation-delay: 0.8s; }
.stagger-item[data-delay="1.0"] { animation-delay: 1.0s; }

.stagger-container .interactive-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-container.visible .interactive-card {
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.visible .interactive-card[data-stagger="0.1"] { transition-delay: 0.1s; }
.stagger-container.visible .interactive-card[data-stagger="0.2"] { transition-delay: 0.2s; }
.stagger-container.visible .interactive-card[data-stagger="0.3"] { transition-delay: 0.3s; }
.stagger-container.visible .interactive-card[data-stagger="0.4"] { transition-delay: 0.4s; }
.stagger-container.visible .interactive-card[data-stagger="0.5"] { transition-delay: 0.5s; }
.stagger-container.visible .interactive-card[data-stagger="0.6"] { transition-delay: 0.6s; }

/* 3D Tilt Effects */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

[data-tilt-subtle] {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Intersection Observer Classes */
.scroll-animation-container {
    opacity: 1;
}

.scroll-animation-container .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animation-container.visible .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .floating-element {
        display: none;
    }
    
    .about-grid, .purpose-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text .section-title,
    .purpose-text .section-title {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 6rem 1rem 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cards-grid, .projects-grid, .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons, .dev-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dev-status-grid {
        grid-template-columns: 1fr;
    }
    
    .nuck-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tech-header, .purpose-header, .development-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.transform-gpu {
    transform: translateZ(0);
    will-change: transform;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Focus states for keyboard navigation */
.using-keyboard *:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .rotating-icon {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .floating-element, .animated-bg, .mouse-gradient, .loading-screen {
        display: none !important;
    }
    
    .page {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}