/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    /* Colors inspired by ChuleSoft Logo */
    --primary-blue: #1b365d;
    /* Dark navy blue */
    --secondary-blue: #427299;
    /* Mid blue */
    --accent-aqua: #2fa5bd;
    /* Aqua/Cyan */

    /* Play Store Colors */
    --play-green: #01875f;

    /* Neutral colors */
    --bg-dark: #0a1128;
    --bg-light: #f8faff;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Montserrat', 'Outfit', sans-serif;
    --font-logo: 'Century Gothic', 'Tw Cen MT', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(27, 54, 93, 0.1), 0 4px 6px -2px rgba(27, 54, 93, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(27, 54, 93, 0.15), 0 10px 10px -5px rgba(27, 54, 93, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--play-green), #02b681);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(1, 135, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(1, 135, 95, 0.4);
    color: var(--text-light);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(30, 53, 98, 0.08);
}

.navbar.scrolled .container {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(30, 53, 98, 0.15);
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    /* Blends the white JPG background into the glassmorphism header */
}

.footer-brand-img {
    height: 60px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: white;
    padding: 8px 12px;
    mix-blend-mode: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
    font-size: 1.05rem;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--play-green);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 28px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 6px;
    transition: var(--transition);
    border-radius: 3px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(47, 165, 189, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(1, 135, 95, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(47, 165, 189, 0.1);
    color: var(--accent-aqua);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.hero-title span {
    background: linear-gradient(135deg, var(--play-green), var(--accent-aqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}

.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 165, 189, 0.15), rgba(1, 135, 95, 0.1));
    filter: blur(60px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

/* =========================================
   STATS SECTION
========================================= */
.stats {
    background: var(--bg-dark);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-aqua);
    margin-bottom: 15px;
}

.stat-item h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* =========================================
   PORTFOLIO APPS SECTION
========================================= */
.portfolio {
    padding: 100px 0;
    background-color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--play-green);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.app-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 165, 189, 0.15);
    border-color: #d0e3f5;
    /* Borde celeste claro distintivo al pasar el mouse */
}

.app-cover {
    height: 180px;
    border-radius: 15px;
    margin-bottom: -30px;
    background-size: cover;
    background-position: center;
}

.app-bg-1 {
    background: linear-gradient(135deg, #1b365d, #427299);
}

.app-bg-2 {
    background: linear-gradient(135deg, #2fa5bd, #1b365d);
}

.app-bg-3 {
    background: linear-gradient(135deg, #01875f, #2fa5bd);
}

.app-info {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    border: 4px solid #fff;
    background: #fff;
}

.app-details {
    padding-bottom: 5px;
}

.app-details h3 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.app-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.app-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    padding: 0 10px;
    flex-grow: 1;
    text-align: justify;
}

.btn-app-store {
    margin-top: auto;
    align-self: flex-start;
    padding: 0 10px;
    transition: var(--transition);
}

.btn-app-store:hover {
    transform: scale(1.05);
}

.btn-app-store img {
    height: 48px;
}

/* In Development Modifier */
.app-card.app-in-dev {
    cursor: default;
    filter: grayscale(0.6);
    opacity: 0.8;
}

.app-card.app-in-dev:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Same as default, no lift */
    border-color: transparent;
    /* No hover border */
}

.dev-badge {
    margin-top: auto;
    align-self: flex-start;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed #cbd5e1;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.15rem;
    text-align: justify;
}

.about-features {
    margin-top: 35px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.about-features i {
    color: var(--play-green);
    background: rgba(1, 135, 95, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.glass-image {
    position: relative;
    border-radius: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
}

.app-mockup-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-logo {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    animation: float 6s ease-in-out infinite alternate;
}

.badge-number {
    font-size: 3rem;
    color: var(--play-green);
}

.badge-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    max-width: 320px;
    font-size: 1.05rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--play-green);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--play-green);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* =========================================
   MODAL GALLERY
========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-aqua);
    transform: scale(1.1);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: simpleFade 0.15s ease-out;
}

@keyframes simpleFade {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--play-green);
}

.gallery-nav.prev {
    left: -20px;
}

.gallery-nav.next {
    right: -20px;
}

.gallery-indicators {
    text-align: center;
    margin-top: 20px;
}

.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-aqua);
    transform: scale(1.3);
}

/* =========================================
   ANIMATIONS & MEDIA QUERIES
========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .navbar .container {
        padding: 10px 15px;
        /* Reduce horizontal padding to give logo more space */
    }

    .brand-logo {
        height: 40px;
        /* Slightly smaller on very narrow screens */
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-light);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;

        /* Bulletproof mobile hide */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .line2 {
        opacity: 0;
    }

    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}