/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-dark-secondary: #1f2937;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   Navigation
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

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

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

.nav-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 2rem;
    padding-top: 120px;
    scroll-margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(16, 185, 129, 0.8) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-link {
    display: inline-block;
    transition: var(--transition-base);
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

.social-link img {
    width: 44px;
    height: 44px;
    display: block;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator img {
    width: 32px;
    height: auto;
    opacity: 0.8;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    scroll-margin-top: 80px;
}

.section-light {
    background-color: var(--bg-secondary);
}

.section-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/bg1.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(16, 185, 129, 0.8) 100%);
    z-index: 1;
}

.section-dark .container {
    position: relative;
    z-index: 2;
}

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

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-dark .section-title {
    color: #ffffff;
}

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

/* ============================================
   About Section
   ============================================ */

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
    background-color: var(--bg-secondary);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    will-change: transform;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* ============================================
   Skills Section
   ============================================ */

.skills-category {
    margin-bottom: var(--spacing-2xl);
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-lg);
    justify-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    width: 100%;
    max-width: 150px;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.skill-item span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Text-only "icons" for skills without image assets */
.skill-text-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-sm);
    user-select: none;
}

/* ============================================
   Projects Section
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.project-image-multi {
    display: flex;
    gap: 2px;
    padding: 2px;
    height: 280px;
}

.project-image-multi img {
    width: calc(33.333% - 2px);
    height: 100%;
    object-fit: cover;
}

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

.project-card:hover .project-image-multi img {
    transform: scale(1.02);
}

.project-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-content p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    text-align: center;
    margin-top: auto;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Featured Showcase Section
   ============================================ */

.section-app,
.section-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.section-app::before,
.section-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.section-app .container,
.section-featured .container {
    position: relative;
    z-index: 2;
}

.section-app .section-title,
.section-featured .section-title {
    color: #ffffff;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.app-content {
    color: #ffffff;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.app-title-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.app-logo:hover {
    transform: scale(1.05);
}

.app-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.app-description {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}


.feature-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.feature-item p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.app-downloads {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.app-downloads > * {
    flex: 0 0 auto;
}

.download-badge {
    display: inline-block;
    transition: var(--transition-base);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    width: 180px !important;
    height: 60px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative;
    line-height: 0;
}

.download-badge:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.download-badge img,
.store-badge {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make Google Play badge larger to match App Store */
.download-badge:first-child {
    width: 250px !important;
    height: 83px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    min-height: 83px !important;
    max-height: 83px !important;
}

.download-badge:first-child img,
.download-badge:first-child .store-badge {
    width: 250px !important;
    height: 83px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    min-height: 83px !important;
    max-height: 83px !important;
}

/* App Store badge - keep original size */
.download-badge:last-child {
    width: 180px !important;
    height: 60px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

.download-badge:last-child img,
.download-badge:last-child .store-badge {
    width: 180px !important;
    height: 60px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

.store-badge-placeholder {
    padding: 0.875rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-align: center;
    min-width: 160px;
    transition: var(--transition-base);
}

.download-badge:hover .store-badge-placeholder {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* When you add actual badge images, replace the placeholder div with an img tag */
.download-badge img.store-badge {
    display: block;
}

.app-visual {
    position: relative;
    overflow: visible;
}

.screenshot-carousel-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.screenshot-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.screenshot-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
}

.screenshot-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-sizing: border-box;
}

.screenshot-slide img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background: transparent;
    margin: 0 auto;
    display: block;
}

.screenshot-slide img:hover {
    transform: scale(1.02);
}

.screenshot-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 1200px) {
    .app-showcase {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .app-features {
        gap: var(--spacing-sm);
    }

    .feature-item {
        padding: var(--spacing-sm);
    }

    .screenshot-carousel-container {
        max-width: 500px;
    }

    .screenshot-slide img {
        max-width: 340px;
    }
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: -40px;
    right: -40px;
    transform: translateY(-65%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    width: calc(100% + 80px);
    box-sizing: border-box;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

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

.carousel-prev {
    margin-left: 0;
}

.carousel-next {
    margin-right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-intro {
    text-align: center;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.contact-form .btn-primary {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer p {
    font-size: var(--font-size-sm);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .app-title {
        font-size: var(--font-size-4xl);
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition-base);
        gap: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-section {
        padding-top: 120px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .social-link img {
        width: 28px;
        height: 28px;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .about-text {
        font-size: var(--font-size-base);
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--spacing-md);
    }
    
    .skill-item {
        max-width: 120px;
        padding: var(--spacing-sm);
    }
    
    .skill-item img {
        width: 48px;
        height: 48px;
    }
    
    .skill-text-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .project-content p {
        font-size: var(--font-size-sm);
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        min-width: 0;
    }
    
    .app-content {
        min-width: 0;
        width: 100%;
    }
    
    .app-visual {
        min-width: 0;
        width: 100%;
    }
    
    .screenshot-carousel-container {
        min-width: 0;
        width: 100%;
    }
    
    .app-title {
        font-size: var(--font-size-3xl);
    }
    
    .app-description {
        font-size: var(--font-size-base);
    }
    
    .app-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .app-title {
        font-size: var(--font-size-3xl);
    }
    
    .app-logo {
        width: 56px;
        height: 56px;
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-item h4 {
        font-size: var(--font-size-lg);
        padding-left: var(--spacing-sm);
    }
    
    .screenshot-carousel-container {
        max-width: 100%;
    }
    
    .carousel-controls {
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 12px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }
    
    .carousel-prev {
        margin-left: 0;
    }
    
    .carousel-next {
        margin-right: 0;
    }
    
    .app-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .app-title {
        font-size: var(--font-size-2xl);
    }
    
    .app-description {
        font-size: var(--font-size-base);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-item h4 {
        font-size: var(--font-size-base);
        padding-left: var(--spacing-sm);
    }
    
    .feature-item p {
        font-size: var(--font-size-sm);
    }
    
    .download-badge:first-child {
        width: 208px !important;
        height: 69px !important;
        min-width: 208px !important;
        max-width: 208px !important;
        min-height: 69px !important;
        max-height: 69px !important;
    }
    
    .download-badge:first-child img,
    .download-badge:first-child .store-badge {
        height: 69px !important;
        width: 208px !important;
        min-width: 208px !important;
        max-width: 208px !important;
        min-height: 69px !important;
        max-height: 69px !important;
    }
    
    .download-badge:last-child {
        width: 150px !important;
        height: 50px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .download-badge:last-child img,
    .download-badge:last-child .store-badge {
        height: 50px !important;
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .app-downloads {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .category-title {
        font-size: var(--font-size-xl);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot-carousel-container {
        padding: 0 40px;
    }
    
    .carousel-controls {
        left: -40px;
        right: -40px;
        width: calc(100% + 80px);
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .app-title {
        font-size: var(--font-size-xl);
    }
    
    .app-description {
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .feature-item h4 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .feature-item p {
        font-size: var(--font-size-xs);
        line-height: 1.5;
    }
    
    .contact-intro {
        font-size: var(--font-size-base);
    }
    
    .screenshot-carousel-container {
        max-width: 100%;
    }
    
    .carousel-controls {
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 8px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .app-content {
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .app-title-container {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .app-title {
        font-size: var(--font-size-xl);
        max-width: 100%;
    }
    
    .app-description {
        font-size: var(--font-size-sm);
        line-height: 1.6;
        max-width: 100%;
    }
    
    .app-features {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-item h4 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
        padding-left: var(--spacing-xs);
        max-width: 100%;
    }
    
    .feature-item p {
        font-size: var(--font-size-xs);
        line-height: 1.5;
        max-width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .app-title {
        font-size: var(--font-size-lg);
    }
    
    .app-description {
        font-size: var(--font-size-xs);
    }
    
    .app-logo {
        width: 48px;
        height: 48px;
    }
    
    .screenshot-carousel-container {
        width: 100%;
        min-width: 0;
    }
    
    .screenshot-slide img {
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .carousel-controls {
        padding: 0 2px;
    }
    
    .feature-item {
        padding: var(--spacing-xs);
    }
    
    .feature-item h4 {
        font-size: var(--font-size-xs);
    }
    
    .feature-item p {
        font-size: 0.7rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .app-showcase {
        gap: var(--spacing-lg);
    }
    
    
    .download-badge:first-child {
        width: 188px !important;
        height: 63px !important;
        min-width: 188px !important;
        max-width: 188px !important;
        min-height: 63px !important;
        max-height: 63px !important;
    }
    
    .download-badge:first-child img,
    .download-badge:first-child .store-badge {
        height: 63px !important;
        width: 188px !important;
        min-width: 188px !important;
        max-width: 188px !important;
        min-height: 63px !important;
        max-height: 63px !important;
    }
    
    .download-badge:last-child {
        width: 135px !important;
        height: 45px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
    
    .download-badge:last-child img,
    .download-badge:last-child .store-badge {
        height: 45px !important;
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
}
