/* 8-16 Bit Pixel Art Portfolio - Clean Design */

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

:root {
    /* 8-16 Bit Color Palette */
    --bg-primary: #0f0f23;        /* Deep space blue */
    --bg-secondary: #1a1a2e;      /* Darker blue */
    --bg-tertiary: #16213e;       /* Medium blue */
    --bg-card: #0e3460;           /* Card background */
    
    --text-primary: #e94560;      /* Bright pink/red */
    --text-secondary: #f5f5f5;    /* Clean white */
    --text-muted: #a8a8a8;        /* Muted gray */
    --text-accent: #0f4c75;       /* Dark blue text */
    
    --accent-primary: #00d4ff;    /* Cyan blue */
    --accent-secondary: #ff6b35;  /* Orange */
    --accent-tertiary: #ffd700;   /* Gold */
    --accent-success: #00ff88;    /* Green */
    
    --border-color: #00d4ff;      /* Cyan border */
    --border-thick: 3px;
    --border-thin: 2px;
    
    /* Pixel Art Variables */
    --pixel-size: 2px;
    --border-radius: 0;
    --transition: none;
    
    /* Typography */
    --font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    --font-size-xs: 0.9rem;
    --font-size-sm: 1.05rem;
    --font-size-base: 1.2rem;
    --font-size-lg: 1.35rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.8rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 2.7rem;
    --font-size-5xl: 3.6rem;
    --font-size-6xl: 4.8rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #d1d5db;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Gaming atmosphere overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #3b82f6;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

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

.nav-logo .logo-text {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--accent-primary);
    text-shadow: 2px 2px 0px var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    text-align: center;
    padding-top: 70px;
    overflow: hidden;
}


.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: bold;
    color: var(--accent-primary);
    text-shadow: 4px 4px 0px var(--bg-secondary);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    text-shadow: 2px 2px 0px var(--bg-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Pixel Title Style */
.pixel-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2rem 3rem;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    position: relative;
}



/* Section Styles */
section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    font-size: var(--font-size-5xl);
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    text-shadow: 4px 4px 0px var(--bg-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
    border-top: var(--border-thick) solid var(--border-color);
    border-bottom: var(--border-thick) solid var(--border-color);
}

.projects-group {
    margin-bottom: var(--spacing-4xl);
}

.projects-group-title {
    font-size: var(--font-size-3xl);
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.project-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(71, 85, 105, 0.9) 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95) 0%, rgba(71, 85, 105, 0.95) 100%);
}

.project-card.featured {
    border-color: var(--accent-success);
    box-shadow: 0 0 15px rgba(224, 224, 224, 0);
}

/* Green border for special projects */
.project-card.green-border {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.project-card.green-border:hover {
    border-color: #059669;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.project-card.green-border .project-iframe-container {
    border-color: rgba(16, 185, 129, 0.3);
}

.project-card.green-border:hover .project-iframe-container {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;      
    background: var(--bg-tertiary);
    position: relative; 
    overflow: hidden;
    border-bottom: var(--border-thin) solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;        
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}



.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-size: var(--font-size-4xl);
}

.project-overlay {
    display: none;
}

.project-links {
    display: flex;
    gap: var(--spacing-lg);
}

.project-link {
    color: var(--accent-primary);
    font-size: var(--font-size-2xl);
    padding: var(--spacing-sm);
    border: var(--border-thin) solid var(--accent-primary);
    background: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: scale(1);
    opacity: 1;
}

.project-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.project-content {
    padding: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover .project-content {
    transform: translateY(-5px);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 53, 0.05) 100%);
}

.project-title {
    font-size: var(--font-size-xl);
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-tag {
    background: var(--accent-tertiary);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: var(--border-thin) solid var(--accent-tertiary);
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.about-text {
    max-width: none;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.skills-section {
    margin-top: var(--spacing-2xl);
}

.skills-title {
    font-size: var(--font-size-2xl);
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px var(--bg-secondary);
}

/* Modern Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Skill Card Design */
.skill-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
}

/* Skill Card Header */
.skill-card-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Specific icon colors */
.unity-icon {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.python-icon {
    background: linear-gradient(135deg, #3776ab 0%, #2d5a87 100%);
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.3);
}

.cpp-icon {
    background: linear-gradient(135deg, #00599c 0%, #004080 100%);
    box-shadow: 0 4px 15px rgba(0, 89, 156, 0.3);
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: var(--font-size-lg);
    color: #3b82f6;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.skill-level {
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.skill-level.beginner-intermediate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.skill-level.intermediate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.skill-level.intermediate-advanced {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.skill-level.advanced {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Skill Visual Elements */
.skill-visual {
    position: relative;
    z-index: 2;
}

.skill-bar-container {
    margin-bottom: var(--spacing-sm);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #f59e0b 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skill Dots Indicator */
.skill-dots {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.4);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.dot.filled {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.skill-card:hover .dot.filled {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* Animation trigger when in viewport */
.skill-fill.animate {
    opacity: 1;
}

/* Individual width classes for each skill */
.skill-fill[data-level="95"] {
    width: 95% !important;
}

.skill-fill[data-level="85"] {
    width: 85% !important;
}

.skill-fill[data-level="70"] {
    width: 70% !important;
}

.skill-fill[data-level="60"] {
    width: 60% !important;
}

/* Legacy skill tags for other sections */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: var(--border-thin) solid var(--accent-primary);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--bg-card);
    border: var(--border-thick) solid var(--accent-primary);
    padding: var(--spacing-xl);
    max-width: 300px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.about-card-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.about-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-right: var(--spacing-md);
    border: var(--border-thin) solid var(--accent-primary);
}

.about-info h4 {
    color: var(--accent-primary);
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.about-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border: var(--border-thin) solid var(--border-color);
}

.stat-number {
    display: block;
    color: var(--accent-secondary);
    font-size: var(--font-size-lg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    border-top: var(--border-thick) solid var(--border-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: var(--border-thin) solid var(--border-color);
    padding: var(--spacing-lg);
    transition: all 0.1s ease;
}

.contact-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    margin-right: var(--spacing-md);
    border: var(--border-thin) solid var(--accent-primary);
}

.contact-details h4 {
    color: var(--accent-primary);
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color 0.1s ease;
}

.contact-link:hover {
    color: var(--accent-primary);
}

.social-media {
    background: var(--bg-card);
    border: var(--border-thick) solid var(--accent-secondary);
    padding: var(--spacing-xl);
    text-align: center;
}

.social-title {
    font-size: var(--font-size-2xl);
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px var(--bg-primary);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: var(--border-thin) solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-size-sm);
    font-weight: bold;
}

.social-link:hover {
    border-color: var(--accent-secondary);
    background: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.social-link i {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: var(--border-thick) solid var(--accent-primary);
    font-size: var(--font-size-sm);
    transition: all 0.1s ease;
}

.btn:hover {
    background: var(--bg-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

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

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

.btn-secondary {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    border-color: var(--accent-secondary);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: var(--border-thick) solid var(--border-color);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.1s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Modern Project Card Styles */
.modern-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.modern-card:hover::before {
    left: 100%;
}

.modern-card:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    transform: translateY(-4px) scale(1.01);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    z-index: 10;
}

/* Project Card Header */
.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: var(--font-size-lg);
    color: #3b82f6;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.project-category {
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.project-action-btn {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.project-action-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.project-image-container {
    width: 100%;
    min-height: 120px;
    height: auto;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
}

.project-preview {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

/* Restore original index card image behavior for the homepage cards */
.home .project-image-container {
    /* original fixed height for index cards */
    height: 200px;
    min-height: 0;
}

.home .project-preview {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.modern-card:hover .project-image-container {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

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

/* Project Content */
.project-content {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-content:hover {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

/* Iframe Project Styles */
.iframe-project {
    cursor: pointer;
}

/* Ensure iframes are visible and properly loaded */
.iframe-project .project-iframe-container {
    position: relative;
}

.iframe-project .project-iframe-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.iframe-project .project-iframe {
    pointer-events: auto;
    min-height: 167px;
    min-width: 100%;
}

/* Force iframe content to be visible */
.iframe-project .project-iframe-container iframe {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Style fallback links inside iframes */
.iframe-project .project-iframe-container iframe a {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #3b82f6;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.iframe-project .project-iframe-container iframe a:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #10b981;
    transform: scale(1.02);
}

/* Ensure iframe containers don't block clicks */
.iframe-project .project-iframe-container {
    pointer-events: none;
}

/* Make the entire iframe project clickable */
.iframe-project {
    cursor: pointer;
    position: relative;
}

.project-iframe-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
    pointer-events: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}


.project-iframe {
    width: 100%;
    max-width: 552px;
    height: 167px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    z-index: 0;
    pointer-events: auto;
    display: block;
    opacity: 1;
    visibility: visible;
}

.modern-card:hover .project-iframe-container {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2), inset 0 2px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 100%);
}

.iframe-project:hover .project-iframe {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Responsive iframe */
@media (max-width: 768px) {
    .project-iframe-container {
        height: 180px;
        padding: var(--spacing-sm);
    }
    
    .project-iframe {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .project-iframe-container {
        height: 160px;
        padding: var(--spacing-xs);
    }
    
    .project-iframe {
        height: 130px;
    }
}

/* Project Details Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.project-modal-content {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: var(--border-thick) solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    max-width: 500px;
    width: 90vw;
    margin: auto;
    padding: var(--spacing-2xl);
    position: relative;
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: color 0.1s ease;
}

.project-modal-close:hover {
    color: var(--accent-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-md);
    }
    
    .nav-links {
        margin-top: var(--spacing-md);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .pixel-title {
        font-size: var(--font-size-5xl);
        padding: var(--spacing-lg);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Skills section responsive */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skill-card {
        padding: var(--spacing-md);
    }
    
    .skill-card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .skill-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .skill-name {
        font-size: var(--font-size-base);
    }
    
    .skill-level {
        font-size: var(--font-size-xs);
        padding: 3px 8px;
    }
    
    /* Modern project cards responsive */
    .modern-card {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: var(--font-size-base);
    }
    
    .project-image-container {
        min-height: 120px;
        height: auto;
    }
    
    .project-iframe-container {
        min-height: 120px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .pixel-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Skills section mobile optimization */
    .skills-grid {
        gap: var(--spacing-sm);
    }
    
    .skill-card {
        padding: var(--spacing-sm);
        border-radius: 12px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .skill-name {
        font-size: var(--font-size-sm);
    }
    
    .skill-level {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    /* Modern project cards mobile */
    .modern-card {
        padding: var(--spacing-sm);
        border-radius: 12px;
    }
    
    .project-title {
        font-size: var(--font-size-sm);
    }
    
    .project-image-container {
        min-height: 100px;
        height: auto;
    }
    
    .project-iframe-container {
        min-height: 100px;
        height: auto;
    }
}

/* Responsive overrides for homepage cards */
@media (max-width: 768px) {
    .home .project-image-container { height: 150px; }
}

@media (max-width: 480px) {
    .home .project-image-container { height: 120px; }
}