/* Design System & Variables */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --accent: #FF6B00;
    --accent-glow: rgba(255, 107, 0, 0.2);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #606060;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --container-max: 1200px;
    --section-padding: clamp(60px, 10vw, 120px) 20px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fluid Typography & Premium Tokens */
:root {
    --fs-h1: clamp(2.8rem, 10vw, 5.5rem);
    --fs-h2: clamp(2.2rem, 7vw, 3.8rem);
    --fs-h3: clamp(1.4rem, 5vw, 2rem);
    --fs-p: clamp(1rem, 2.5vw, 1.2rem);
    
    --accent: #FF6B00;
    --accent-dark: #cc5500;
    --surface: #121212;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, #FF6B00 0%, #FF9E5E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px; /* Pill shape for premium look */
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn i, .btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.btn:hover i, .btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    left: 120%;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #FF8C38 100%);
    color: #fff;
    box-shadow: 0 10px 25px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-github {
    background: #24292e;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-github:hover {
    background: #333;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
}

header.sticky {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 80px; /* Adjusted for better visibility */
    width: auto;
    object-fit: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

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

.nav-links a.active {
    color: var(--text-primary);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Toggle Animation */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: clamp(100px, 15vw, 180px) 0 clamp(60px, 10vw, 100px);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://res.cloudinary.com/dodqchd7y/image/upload/v1777661860/restaurant-app_qtwtb8.png');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    filter: blur(40px);
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(40px, 8vw, 80px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content .lead {
    font-size: var(--fs-p);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-showcase {
    width: 100%;
    max-width: 1100px;
    perspective: 2000px;
}

.hero-cover-wrapper {
    background: #000;
    border-radius: clamp(20px, 4vw, 32px);
    padding: clamp(6px, 1.5vw, 12px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.8),
        inset 0 0 40px rgba(255,255,255,0.02);
    overflow: hidden;
    position: relative;
    transform: rotateX(8deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cover-wrapper:hover {
    transform: rotateX(0deg) translateY(-10px);
}

.hero-cover-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 3;
}

.hero-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(14px, 3vw, 24px);
}

.phone-mockup {
    width: min(85%, 320px);
    height: auto;
    aspect-ratio: 9 / 20;
    background: #000;
    border-radius: 44px;
    padding: 12px;
    border: 10px solid #222;
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    /* Skeleton loader for hero */
    background: linear-gradient(110deg, #1a1a1a 8%, #252525 18%, #1a1a1a 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.phone-mockup img.loaded {
    opacity: 1;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

/* Features */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: var(--fs-h2);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-carousel-container {
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-item {
    flex: 0 0 350px;
    scroll-snap-align: center;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 30px;
    background: var(--accent);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 280px;
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshots Gallery */
.platform-gallery {
    margin-bottom: 60px;
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    padding-left: 10px;
}

.gallery-title i {
    color: var(--accent);
}

.screenshots-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--card-bg);
}

/* Custom Scrollbar for Chrome/Safari */
.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.screenshot-card {
    flex: 0 0 260px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
    scroll-snap-align: start;
    cursor: grab;
}

.screenshot-card:active {
    cursor: grabbing;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 1 / 2; /* Ensure consistent height before load */
    border-radius: 18px;
    margin-bottom: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    background: #252525; /* Simple skeleton placeholder */
    opacity: 0;
}

.screenshot-card img.loaded {
    opacity: 1;
}

.screenshot-card span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Download CTA */
.download-cta-section {
    padding-top: 40px;
}

.download-banner {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: clamp(24px, 5vw, 40px);
    padding: clamp(40px, 8vw, 80px);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.download-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.download-content h2 {
    font-size: var(--fs-h2);
    margin-bottom: 20px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.download-stats {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
}

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

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

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

@media (max-width: 992px) {
    .download-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .download-content p {
        margin: 0 auto 40px;
    }
    
    .download-stats {
        justify-content: center;
        gap: 60px;
    }
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.tech-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* About Developer */
.about-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: clamp(24px, 4vw, 32px);
    padding: clamp(30px, 6vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--glass-border);
    gap: clamp(30px, 5vw, 60px);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

.about-content {
    flex: 1;
    z-index: 1;
}

.about-content h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.about-content .role {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content .bio {
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 30px;
}

.about-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.developer-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0.9);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-container.open {
        right: 0;
    }

    .nav-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content .lead {
        margin: 0 auto 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-card {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px;
        gap: 40px;
    }
    
    .about-content .bio {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}
