/* ===== CODE GOD LEVEL - PREMIUM 3D EXPERIENCE ===== */

/* CSS Variables for Dynamic Theming */
:root {
    /* Colors */
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    --gradient-secondary: linear-gradient(135deg, #45b7d1, #96ceb4);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 6rem 0;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Animations */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s ease-out;
    --transition-slow: 0.8s ease-out;
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 3D Effects */
    --blur-amount: 20px;
    --glow-intensity: 20px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM CURSOR SYSTEM ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-inner {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast);
}

.cursor-outer {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-medium);
}

.custom-cursor.hover .cursor-outer {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--secondary-color);
}

.custom-cursor.click .cursor-inner {
    transform: translate(-50%, -50%) scale(2);
}

/* ===== PREMIUM NAVIGATION ===== */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    position: relative;
    z-index: 1;
}

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

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(10px);
    opacity: 0.3;
    z-index: -1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: all var(--transition-medium);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

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

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a.active {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

.nav-menu a.active::before {
    width: 100%;
    background: var(--gradient-secondary);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-medium);
}

.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.progress-line {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--transition-fast);
}

/* ===== SECTION LAYOUTS ===== */
.section {
    min-height: 100vh;
    padding: var(--section-padding);
    position: relative;
}

.hero-container,
.about-container,
.work-container,
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #000 70%);
}

.hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

.title-line {
    display: block;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100px);
    animation: titleReveal 1s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-description {
    font-size: 1.3rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.btn-primary,
.btn-secondary {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(var(--glow-intensity));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.btn-primary:hover .btn-glow {
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--secondary-color);
}

.hero-3d-text {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-text {
    position: absolute;
    font-size: 8rem;
    font-weight: var(--font-weight-black);
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    animation: float 6s ease-in-out infinite;
}

.floating-text:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-text:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.floating-text:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

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

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    margin: 0 auto;
    position: relative;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.about-container {
    flex-direction: column;
}

.section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: var(--font-weight-black);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1;
}

.title-word {
    display: inline-block;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2rem;
    opacity: 0;
    transform: translateY(100px);
    animation: titleReveal 1s ease-out forwards;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.about-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-description p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
}

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

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.tech-item:hover::before {
    opacity: 0.1;
}

.tech-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 12px;
    transition: all var(--transition-medium);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    color: white;
    transition: all var(--transition-medium);
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.tech-item:hover .tech-icon svg {
    transform: rotate(10deg);
}

.tech-name {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== WORK SECTION ===== */
.work-section {
    background: radial-gradient(ellipse at center, #16213e 0%, #0a0a0a 70%);
}

.work-3d-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .work-3d-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 380px;
    }
    
    .gallery-item:hover {
        transform: translateY(-10px);
    }
    
    .phone-frame {
        width: 120px;
        height: 200px;
        padding: 6px;
    }
    
    .phone-frame::before {
        top: 12px;
        width: 40px;
        height: 3px;
    }
    
    .phone-frame::after {
        bottom: 6px;
        width: 28px;
        height: 28px;
    }
    
    .app-header {
        padding: 4px 6px;
        min-height: 24px;
    }
    
    .app-logo {
        font-size: 8px;
        gap: 3px;
    }
    
    .logo-icon {
        font-size: 10px;
    }
    
    .search-bar {
        padding: 2px 4px;
        margin-left: 4px;
        font-size: 6px;
    }
    
    .app-content {
        padding: 4px;
    }
    
    .product-grid {
        gap: 3px;
    }
    
    .product-item {
        padding: 3px;
        border-radius: 4px;
    }
    
    .product-img {
        height: 20px;
        border-radius: 2px;
        margin-bottom: 2px;
    }
    
    .product-price {
        font-size: 6px;
    }
    
    .chat-content {
        gap: 3px;
    }
    
    .message-bubble {
        padding: 3px 4px;
        border-radius: 8px;
        font-size: 6px;
    }
    
    .bot-avatar {
        width: 12px;
        height: 12px;
        font-size: 6px;
    }
    
    .typing-dots {
        padding: 4px 6px;
        border-radius: 8px;
    }
    
    .typing-dots span {
        width: 2px;
        height: 2px;
    }
    
    .fitness-content {
        gap: 4px;
    }
    
    .stats-row {
        margin-bottom: 4px;
    }
    
    .stat-number {
        font-size: 8px;
    }
    
    .stat-label {
        font-size: 5px;
    }
    
    .progress-ring {
        width: 40px;
        height: 40px;
        margin: 4px 0;
    }
    
    .ring-progress {
        border: 3px solid #e9ecef;
        border-top: 3px solid #ff6b6b;
        border-right: 3px solid #ff6b6b;
        border-bottom: 1px solid #ff6b6b;
    }
    
    .progress-text {
        font-size: 8px;
    }
    
    .progress-goal {
        font-size: 5px;
    }
    
    .workout-buttons {
        gap: 4px;
    }
    
    .workout-btn {
        padding: 4px 2px;
        border-radius: 6px;
        font-size: 5px;
    }
    
    .status-indicator {
        gap: 2px;
        font-size: 6px;
    }
    
    .online-dot {
        width: 3px;
        height: 3px;
    }
    
    .profile-pic {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
    
    .project-placeholder {
        padding: 1rem;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-features {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
}

.gallery-item {
    height: 500px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-medium);
    backdrop-filter: blur(20px);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-20px) rotateX(10deg);
    border-color: var(--accent-color);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    text-align: center;
    width: 100%;
    padding: 2rem;
}

/* Phone Mockup Styles */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.phone-frame {
    width: 160px;
    height: 280px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all var(--transition-medium);
    transform-style: preserve-3d;
}

.gallery-item:hover .phone-frame {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border: 2px solid #333;
    border-radius: 50%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(255, 107, 107, 0.1);
}

.gallery-item:hover .phone-screen {
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 107, 107, 0.2);
}

/* App Header */
.app-header {
    background: white;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    min-height: 32px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

.logo-icon {
    font-size: 12px;
}

.search-bar {
    flex: 1;
    margin-left: 6px;
    padding: 3px 6px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 8px;
    color: #666;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    color: #28a745;
}

.online-dot {
    width: 4px;
    height: 4px;
    background: #28a745;
    border-radius: 50%;
}

.profile-section {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 18px;
    height: 18px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* App Content */
.app-content {
    flex: 1;
    padding: 6px;
    overflow: hidden;
}

/* E-Commerce App Styles */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100%;
}

.product-item {
    background: white;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-img {
    height: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 3px;
    margin-bottom: 3px;
}

.product-price {
    font-size: 8px;
    font-weight: bold;
    color: #ff6b6b;
    text-align: center;
}

/* Chat App Styles */
.chat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 3px;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-bubble {
    background: white;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 7px;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message .message-bubble {
    background: #007bff;
    color: white;
}

.bot-avatar {
    width: 16px;
    height: 16px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    flex-shrink: 0;
}

.typing-indicator {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.typing-dots {
    background: white;
    padding: 6px 8px;
    border-radius: 10px;
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 3px;
    height: 3px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Fitness App Styles */
.fitness-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 6px;
}

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

.stat-number {
    font-size: 10px;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    font-size: 6px;
    color: #666;
    margin-top: 1px;
}

.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 6px 0;
}

.ring-progress {
    width: 100%;
    height: 100%;
    border: 4px solid #e9ecef;
    border-radius: 50%;
    border-top: 4px solid #ff6b6b;
    border-right: 4px solid #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    transform: rotate(-90deg);
    animation: progress-spin 3s ease-in-out infinite;
}

@keyframes progress-spin {
    0% {
        transform: rotate(-90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(-90deg);
    }
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #ff6b6b;
}

.progress-goal {
    display: block;
    font-size: 6px;
    color: #666;
}

.workout-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
}

.workout-btn {
    flex: 1;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 6px 3px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.workout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff5252, #26c6da);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(255, 107, 107, 0.2);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-features span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(78, 205, 196, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-medium);
}

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

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: 0.3rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: var(--gradient-secondary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    opacity: 0.2;
}

.submit-btn {
    padding: 1.2rem 3rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== PERFORMANCE MONITOR ===== */
.performance-monitor {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fps-counter,
.memory-usage {
    margin-bottom: 0.5rem;
}

/* ===== SCENE CONTROLS ===== */
.scene-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.scene-controls button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-medium);
}

.scene-controls button:hover {
    background: var(--glass-border);
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 4rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
        gap: 1rem;
        transition: right var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .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(7px, -6px);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .work-3d-gallery {
        grid-template-columns: 1fr;
    }
    
    .floating-text {
        font-size: 4rem;
    }
    
    .performance-monitor {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .floating-text {
        font-size: 3rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .custom-cursor,
    .premium-nav,
    .performance-monitor,
    .scene-controls {
        display: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #dddddd;
        --glass-border: rgba(255, 255, 255, 0.5);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-text {
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* ===== TEAM MEMBERS SECTION ===== */
.team-section {
    position: relative;
    padding: var(--section-padding);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    overflow: hidden;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.team-member {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(var(--blur-amount));
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.team-member:hover::before {
    opacity: 0.1;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition-medium);
}

.team-member:hover .avatar-glow {
    opacity: 0.7;
}

.member-initial {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-skills {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: inline-block;
}

.member-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.8;
}

/* Team Section Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
    }
    
    .member-initial {
        font-size: 1.5rem;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
}

/* ===== GPU ACCELERATION ===== */
.hero-section,
.about-section,
.team-section,
.work-section,
.contact-section,
.tech-item,
.gallery-item,
.team-member,
.btn-primary,
.btn-secondary {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-perspective: 1000;
} 