/* Modern Dark Mode Professional Design Variables */
:root {
    /* Primary Brand Colors - Modern Purple/Blue */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --accent-purple: #d946ef;
    --accent-orange: #f97316;

    /* Dark Theme Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e293b;
    --bg-elevated: #334155;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #a78bfa;

    /* Gray Scale (Dark Theme) */
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    /* Status Colors */
    --success-color: #22c55e;
    --warning-color: #eab308;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    --gradient-accent: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);

    /* Shadows (Dark Theme) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.7);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(139, 92, 246, 0.4);

    /* Border Radius */
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --border-radius-xl: 2rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Container */

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.logo h2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--text-accent);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 80%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    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);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.4), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3), transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2), transparent 50%);
    opacity: 0.9;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(600px circle at 25% 25%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(400px circle at 75% 75%, rgba(6, 182, 212, 0.08), transparent 50%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
    padding-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-accent);
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 90%;
}

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

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-glow);
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-accent);
    border: 2px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d6d7e;
    margin-bottom: 2rem;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.skill-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.skill-item span {
    font-weight: 600;
    color: #2c3e50;
}

.about-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-illustration svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06), transparent 50%);
    pointer-events: none;
}

/* Developer Notice */
.developer-notice {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--warning-color);
    position: relative;
    overflow: hidden;
}

.developer-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.notice-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(234, 179, 8, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--warning-color);
}

.notice-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.notice-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.notice-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.notice-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 0.08;
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.25),
        0 15px 35px rgba(6, 182, 212, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/16;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08) rotate(1deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.85) 0%,
            rgba(6, 182, 212, 0.85) 50%,
            rgba(16, 185, 129, 0.85) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-link:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(-2px);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
    color: var(--text-accent);
    transform: translateX(3px);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-tech span {
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-tech span {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-tertiary);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* WhatsApp Contact Styles */
.whatsapp-contact {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.whatsapp-contact h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.whatsapp-contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.whatsapp-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(45deg, #1a472a, #22c55e);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    width: 100%;
    max-width: 280px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(45deg, #22c55e, #16a34a);
}

.whatsapp-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.whatsapp-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-btn small {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* App Details Page Styles */
.app-details {
    padding: 120px 0 80px;
    background: var(--gray-50);
    min-height: 100vh;
}

.back-button {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    font-size: 1rem;
}

.btn-back:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.app-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.app-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.app-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.app-info p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.screenshots-section,
.features-section {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.screenshots-section h2,
.features-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
    padding: 2rem 0;
}

.screenshot-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    max-width: 350px;
    width: 100%;
}

.screenshot-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12),
        0 15px 25px rgba(0, 0, 0, 0.08);
}

.phone-mockup {
    position: relative;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    max-width: 280px;
    width: 100%;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    z-index: 2;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    z-index: 2;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 27px;
    display: block;
    object-fit: cover;
    background: #000;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.screenshot-label {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.screenshot-container:hover .screenshot-label {
    opacity: 1;
}

.screenshot-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.4;
}

.contact-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-cta .btn {
    background: linear-gradient(45deg, #1a472a, #22c55e);
    color: white;
    font-weight: 700;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.contact-cta .btn:hover {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* Screenshot Modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.screenshot-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.screenshot-modal img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 15px;
    object-fit: contain;
    background: #000;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--gray-600);
    font-size: 1.5rem;
    cursor: pointer;
    background: var(--gray-100);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-weight: 600;
}

.close-modal:hover {
    background: var(--error-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Mobile Responsive for App Details */
@media (max-width: 768px) {
    .app-details {
        padding: 100px 0 60px;
    }

    .back-button {
        margin-bottom: 1.5rem;
    }

    .btn-back {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .app-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .app-icon img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .app-info h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .app-info p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .app-tech {
        justify-content: center;
        gap: 0.5rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .screenshots-section,
    .features-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .screenshots-section h2,
    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 1rem 0;
    }

    .screenshot-container {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 auto;
    }

    .phone-mockup {
        max-width: 250px;
    }

    .phone-mockup::before {
        width: 60px;
        height: 5px;
        top: 12px;
    }

    .phone-mockup::after {
        width: 100px;
        height: 3px;
        bottom: 10px;
    }

    .screenshot-label {
        opacity: 1;
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .contact-cta {
        padding: 2.5rem 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-cta h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .contact-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .screenshot-modal {
        padding: 1rem;
    }

    .screenshot-modal .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .screenshot-modal img {
        max-height: 70vh;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .app-details {
        padding: 90px 0 50px;
    }

    .container {
        padding: 0 1rem;
    }

    .app-header {
        padding: 1.5rem 1rem;
        border-radius: var(--border-radius-lg);
    }

    .app-icon img {
        width: 70px;
        height: 70px;
    }

    .app-info h1 {
        font-size: 1.5rem;
    }

    .app-info p {
        font-size: 0.95rem;
    }

    .screenshots-section,
    .features-section {
        padding: 1.5rem 1rem;
        border-radius: var(--border-radius-lg);
    }

    .screenshots-section h2,
    .features-section h2 {
        font-size: 1.25rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    .screenshot-container {
        padding: 1rem;
        border-radius: 15px;
    }

    .phone-mockup {
        max-width: 220px;
        border-radius: 30px;
        padding: 6px;
    }

    .phone-mockup::before {
        width: 50px;
        height: 4px;
        top: 10px;
    }

    .phone-mockup::after {
        width: 80px;
        height: 3px;
        bottom: 8px;
    }

    .screenshot-img {
        border-radius: 24px;
    }

    .feature-item {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .contact-cta {
        padding: 2rem 1rem;
    }

    .contact-cta h2 {
        font-size: 1.5rem;
    }

    .contact-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateX(-10px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #7f8c8d;
    margin: 0;
}

.contact-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-illustration svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--gray-600);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    background: var(--gray-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
}

.close:hover {
    background: var(--error-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.modal-content h3 {
    padding: 2rem;
    margin: 0;
    background: var(--gradient-accent);
    color: var(--text-primary);
    font-size: 1.8rem;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 2rem;
}

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

.app-screenshots img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-details h4 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.app-details ul {
    margin-bottom: 2rem;
    padding-right: 1.5rem;
}

.app-details li {
    margin-bottom: 0.5rem;
    color: #5d6d7e;
}

.app-video {
    margin: 2rem 0;
}

.app-video video {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--border-color);
    }

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

    .hero {
        padding-top: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-illustration {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        max-width: 100%;
    }

    .portfolio-item {
        min-height: auto;
    }

    .portfolio-image {
        aspect-ratio: 9/16;
    }

    .skills {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .app-screenshots {
        grid-template-columns: 1fr;
    }

    .app-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .portfolio-tech {
        justify-content: center;
    }

    .developer-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin: 2rem auto;
        gap: 1rem;
    }

    .notice-icon {
        width: 50px;
        height: 50px;
    }

    .notice-icon i {
        font-size: 1.25rem;
    }

    .notice-content h3 {
        font-size: 1.1rem;
    }

    .notice-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Loading animations */
.hero-text {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-illustration {
    animation: fadeInUp 1s ease 0.4s both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for hero elements */
.hero-illustration svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hover effects for portfolio items */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

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

.portfolio-item:hover::before {
    left: 100%;
}

/* Enhanced button styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}