/*!
 * Portfolio Theme - Fixed Navigation & Dark Mode
 * Version: 3.2.0
 */

/* ========================================
   CSS VARIABLES - LIGHT THEME (DEFAULT)
   ======================================== */
:root {
    --primary-color: #6200EA;
    --primary-dark: #4B00B5;
    --primary-light: #7C4DFF;
    
    --secondary-color: #03DAC6;
    --accent-color: #FF6B6B;
    --accent-green: #4CAF50;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    
    --background: #FFFFFF;
    --surface: #F5F5F5;
    --bg-dark: #1A1A1A;
    
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --transition-base: 250ms ease;
    
    --z-fixed: 1030;
    --z-modal: 1050;
}

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] {
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --text-light: #FFFFFF;
    
    --background: #121212;
    --surface: #1E1E1E;
    --bg-dark: #0A0A0A;
    
    --border-color: #333333;
    --border-light: #2A2A2A;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--surface);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--primary-color);
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-extrabold);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
}

/* ========================================
   NAVBAR - FIXED (Horizontal Layout)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.95);
    border-bottom-color: var(--border-color);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(18, 18, 18, 0.98);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(98, 0, 234, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-logo:hover {
    background: rgba(98, 0, 234, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-logo i {
    font-size: 1.2rem;
}

/* Navigation Menu - HORIZONTAL */
.nav-menu {
    display: flex;
    flex-direction: row; /* FIXED: Ensure horizontal */
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(98, 0, 234, 0.1);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Navigation Overlay */
.nav-overlay {
    display: none;
}

/* ========================================
   MOBILE NAVIGATION - FIXED
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column; /* Vertical on mobile */
        background: var(--background);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: var(--z-modal);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
    }
    
    .theme-toggle {
        margin-top: 1rem;
    }
    
    .nav-overlay {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: calc(var(--z-modal) - 1);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(98, 0, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(3, 218, 198, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

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

.badge-animation {
    display: inline-block;
    background: var(--background);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn,
.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

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

.btn-secondary {
    background: var(--background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-scroll-down:hover {
    color: var(--primary-color);
}

.hero-scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: var(--border-color);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    padding: 80px 0;
    background: var(--background);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 44px;
}

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

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card.hidden {
    display: none;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-app-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
}

.project-app-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.project-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-app-info {
    flex: 1;
    min-width: 0;
}

.project-app-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-badges {
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-open {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

.badge-closed {
    background: rgba(98, 0, 234, 0.15);
    color: var(--primary-color);
}

.project-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--surface);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-screenshots-preview {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.project-screenshots-preview img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

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

.project-content {
    padding: 1.5rem;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.project-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 44px;
}

.project-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-action-btn.github {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

.project-action-btn.playstore {
    background: #01875f;
    color: white;
    border-color: #01875f;
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */
.project-detail {
    padding-top: 70px;
}

.project-detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
}

.detail-hero-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-xl);
}

.detail-app-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.detail-app-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-app-info {
    flex: 1;
}

.detail-app-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

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

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
}

.detail-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.detail-btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-github {
    background: #24292e;
    color: white;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.detail-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-tag-detail {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.2);
}

.tech-tag-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(98, 0, 234, 0.3);
}

.btn-playstore {
    background: #3b82f6;
    color: white;
}

.btn-playstore:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
}

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

.spec-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.screenshots-section {
    padding: 3rem 0;
    background: var(--surface);
}

.screenshots-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.screenshots-scroller::-webkit-scrollbar {
    height: 8px;
}

.screenshots-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.screenshot-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.phone-frame {
    width: 280px;
    background: #1f2937;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1f2937;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
}

.phone-screen .app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
    padding: 80px 0;
    background: var(--surface);
}

.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.skill-category {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

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

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.skill-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
}

.skill-progress {
    height: 8px;
    background: var(--surface);
    border-radius: 999px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   CONTACT SECTION - FIXED (More Compact)
   ======================================== */
.contact {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.contact .section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.email-btn { background: var(--primary-color); }
.github-btn { background: #24292e; }
.linkedin-btn { background: #0077b5; }
.twitter-btn { background: #1da1f2; }
.playstore-btn { background: #01875f; }

.contact-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* ========================================
   ABOUT PAGE - FIXED STATS COLORS
   ======================================== */
.page-wrapper {
    padding-top: 70px;
}

.about-hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.about-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.key-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.expertise-category {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.expertise-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: var(--surface);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-tag.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

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

.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
}

.tool-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* FIXED: About Stats - Better Colors */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.about-footer-note {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    margin-top: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden { display: none !important; }
.visible { display: block !important; }
.fade-out {
    opacity: 0;
    transform: translateY(30px);
}
.fade-in {
    opacity: 1;
    transform: translateY(0);
}


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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: 80px 20px 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 3rem;
        height: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: var(--z-modal);
    }

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

    .nav-link {
        padding: 0.75rem;
        width: 100%;
    }
    
    .hero {
        min-height: 85vh;
        padding: 80px 20px 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        width: 3rem;
        height: 1px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }
    
    .key-highlights {
        justify-content: center;
    }
    
    .detail-app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-tech-tags {
        justify-content: flex-start;
    }

    .tech-tag-detail {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .phone-frame {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .project-app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-action-btn {
        width: 100%;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border-width: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   END OF STYLESHEET
   ======================================== */


/* ========================================
   FOOTER STYLES
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-2xl) 0 0;
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.footer-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(98, 0, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 77, 255, 0.1) 0%, transparent 50%);
}

/* Main Content */
.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.footer-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.footer-logo .logo-text {
    font-size: 1.125rem;
}

.footer-description {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Footer Titles */
.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
}

/* Social Links */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-github:hover {
    background: #24292e;
    border-color: #24292e;
}

.social-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-playstore:hover {
    background: #01875f;
    border-color: #01875f;
}

.social-email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.social-stackoverflow:hover {
    background: #f48024;
    border-color: #f48024;
}

.social-medium:hover {
    background: #00ab6c;
    border-color: #00ab6c;
}

.social-dev:hover {
    background: #0a0a0a;
    border-color: #0a0a0a;
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li {
    list-style: none;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 0;
}

.footer-nav a i {
    font-size: 0.875rem;
    width: 18px;
    color: var(--primary-light);
    transition: all var(--transition-base);
}

.footer-nav a:hover {
    color: var(--text-light);
    padding-left: 8px;
}

.footer-nav a:hover i {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-nav .view-all {
    color: var(--primary-light);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-contact-list i {
    width: 20px;
    color: var(--primary-light);
    font-size: 1rem;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact-list a:hover {
    color: var(--text-light);
}

/* Tech Badge */
.footer-tech-badge {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-badge-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--spacing-xs);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md) 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

.footer-copyright,
.footer-credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-copyright strong,
.footer-credits strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer-credits i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
    margin: 0 0.25rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-meta-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-meta-link:hover {
    color: var(--text-light);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* Footer License */
.footer-license {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-license a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-license a:hover {
    text-decoration: underline;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1.15);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-2xl) 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav a {
        justify-content: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .tech-badges {
        justify-content: center;
    }
}
