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

html {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b3d 100%);
    background-attachment: fixed;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --bg-primary: #0f1729;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #0a0e27;
    --border-color: #2d3748;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b3d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 41, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

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

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 120px 0 80px;
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
    pointer-events: none;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideIn 0.8s ease 0.3s backwards;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

/* About Section */
.about {
    background: transparent;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
}

/* Featured App */
.featured-app {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b3d 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

#apps {
    padding-top: 0;
    padding-bottom: 0;
}

.featured-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.featured-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.featured-image-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85) contrast(1.1);
    animation: imageFadeIn 1.5s ease-out;
    transform: translateZ(0);
    will-change: auto;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 14, 39, 0.4) 0%,
            rgba(26, 31, 58, 0.3) 50%,
            rgba(45, 27, 61, 0.5) 100%);
    pointer-events: none;
}

.floating-app-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 2;
}

.floating-app-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}


.app-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(102, 126, 234, 0.5));
    position: relative;
    z-index: 1;
    border-radius: 22%;
}

.featured-content-section {
    display: flex;
    align-items: center;
    padding: 60px 50px;
    background: rgba(26, 31, 58, 0.3);
}

.featured-content {
    max-width: 600px;
    animation: contentSlideIn 1s ease-out 0.3s backwards;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}


.featured-name {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease backwards;
}

.featured-tagline {
    font-size: 1.6rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.featured-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.featured-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.featured-highlights .highlight-item:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.featured-highlights .highlight-item:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.featured-highlights .highlight-item:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.featured-highlights .highlight-item:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.highlight-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.highlight-icon {
    font-size: 1.75rem;
}

.highlight-content {
    position: relative;
    z-index: 1;
}

.highlight-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.highlight-item:hover .highlight-content h4 {
    color: var(--primary-color);
}

.highlight-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.featured-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.featured-buttons .btn-primary {
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.featured-buttons .btn-secondary {
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.3rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.4);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.3rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 14px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover svg {
    transform: translateX(6px);
}

.app-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    animation: fadeInUp 0.8s ease 0.7s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease backwards;
    transition: transform 0.3s ease;
}

.stat:nth-child(1) {
    animation-delay: 0.2s;
}

.stat:nth-child(3) {
    animation-delay: 0.3s;
}

.stat:nth-child(5) {
    animation-delay: 0.4s;
}

.stat:hover {
    transform: translateY(-3px);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat:hover .stat-value {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Projects in Development */
.projects {
    background: transparent;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.projects-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.app-card {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
    transform: translateZ(0);
}


.app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-card:nth-child(3) {
    animation-delay: 0.3s;
}

.app-card:nth-child(4) {
    animation-delay: 0.4s;
}

.app-card:nth-child(5) {
    animation-delay: 0.5s;
}

.app-card:nth-child(6) {
    animation-delay: 0.6s;
}

.app-card:nth-child(7) {
    animation-delay: 0.7s;
}

.app-card.dev {
    opacity: 0.9;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), var(--shadow-glow);
    border-color: var(--primary-color);
    background: rgba(26, 31, 58, 0.8);
}

.app-card.dev:hover {
    opacity: 1;
}

.dev-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}


.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover .app-icon {
    transform: scale(1.2) rotate(5deg);
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.app-card:hover .app-name {
    color: var(--primary-color);
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.app-link::after {
    content: '→';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-link:hover {
    color: var(--secondary-color);
}

.app-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.contact .section-title {
    color: white;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.9);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer:hover p {
    opacity: 1;
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .featured-app {
        padding: 0;
    }

    .featured-hero-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .featured-image-section {
        max-height: 50vh;
        min-height: 50vh;
        order: 1;
    }

    .featured-image-container {
        max-height: 50vh;
        min-height: 50vh;
    }

    .featured-hero-image {
        max-height: 50vh;
    }

    .featured-content-section {
        order: 2;
        padding: 50px 40px;
    }

    .floating-app-icon {
        top: 15px;
        right: 15px;
        width: 100px;
        height: 100px;
    }

    .floating-app-icon::before {
        width: 130px;
        height: 130px;
    }

    .featured-name {
        font-size: 3.5rem;
    }

    .featured-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .featured-app {
        min-height: auto;
    }

    .featured-hero-wrapper {
        min-height: auto;
        max-height: none;
    }

    .featured-image-section {
        max-height: 40vh;
        min-height: 40vh;
    }

    .featured-image-container {
        max-height: 40vh;
        min-height: 40vh;
    }

    .featured-hero-image {
        max-height: 40vh;
    }

    .featured-content-section {
        padding: 40px 30px;
    }

    .featured-name {
        font-size: 2.5rem;
    }

    .featured-tagline {
        font-size: 1.2rem;
    }

    .floating-app-icon {
        top: 10px;
        right: 10px;
        width: 90px;
        height: 90px;
    }

    .floating-app-icon::before {
        width: 110px;
        height: 110px;
    }

    .featured-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .app-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: space-around;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    .featured-image-section {
        max-height: 35vh;
        min-height: 35vh;
    }

    .featured-image-container {
        max-height: 35vh;
        min-height: 35vh;
    }

    .featured-hero-image {
        max-height: 35vh;
    }

    .featured-content-section {
        padding: 35px 20px;
    }

    .featured-name {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .featured-tagline {
        font-size: 1.1rem;
    }

    .featured-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .floating-app-icon {
        top: 10px;
        right: 10px;
        width: 80px;
        height: 80px;
    }

    .floating-app-icon::before {
        width: 100px;
        height: 100px;
    }

    .highlight-item {
        padding: 1.25rem;
    }

    .highlight-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .highlight-icon {
        font-size: 1.5rem;
    }

    .highlight-content h4 {
        font-size: 1rem;
    }

    .highlight-content p {
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .app-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Additional Styles for Featured Apps */

/* Reverse layout for alternating featured sections */
.featured-hero-wrapper-reverse {
    grid-template-columns: 1fr 1fr;
}

.featured-hero-wrapper-reverse>.featured-content-section {
    order: 1;
}

.featured-hero-wrapper-reverse>.featured-image-section {
    order: 2;
}

/* Center floating app icon for sections without background images */
.floating-app-icon-center {
    position: relative;
    top: auto;
    right: auto;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.floating-app-icon-center::before {
    width: 280px;
    height: 280px;
}

.floating-app-icon-center .app-icon-image {
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

/* Background patterns for featured sections */
.fermento-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(238, 90, 111, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #1a1f3a 0%, #2d1b3d 100%);
    z-index: 0;
}

.happyhabits-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 40% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1f3a 0%, #2d1b3d 100%);
    z-index: 0;
}

/* Emoji icon for apps without icon images */
.emoji-icon {
    font-size: 8rem;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 1;
}

.emoji-icon-small {
    font-size: 4rem;
    filter: drop-shadow(0 5px 20px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 1;
}

/* Coming soon badge styling */
.coming-soon-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.badge-dot-yellow {
    background: #ffc107;
}

/* Disabled button state */
.btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Featured image section without image - center content */
.featured-image-section:has(.floating-app-icon-center) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.featured-image-section:has(.floating-app-icon-center) .featured-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .featured-hero-wrapper-reverse {
        grid-template-columns: 1fr;
    }

    .featured-hero-wrapper-reverse>.featured-content-section {
        order: 2;
    }

    .featured-hero-wrapper-reverse>.featured-image-section {
        order: 1;
    }

    .floating-app-icon-center {
        width: 150px;
        height: 150px;
    }

    .floating-app-icon-center::before {
        width: 200px;
        height: 200px;
    }

    .emoji-icon {
        font-size: 5rem;
    }

    .featured-image-section:has(.floating-app-icon-center) {
        min-height: 300px;
    }
}