/* ==========================================
   NELCODE LANDING PAGE
   Part 1
========================================== */

:root {

    --primary: #22366F;
    --secondary: #F5BC00;

    --dark: #1F2937;
    --text: #4B5563;

    --background: #FFFFFF;
    --section: #F8F9FC;

    --border: #E5E7EB;

    --radius: 18px;

    --shadow:
        0 10px 30px rgba(0, 0, 0, .08);

    --transition: .35s ease;

}

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

html {

    scroll-behavior: smooth;

}

body {

    font-family: 'Inter', sans-serif;

    background: var(--background);

    color: var(--dark);

    line-height: 1.7;

    overflow-x: hidden;

}

img {

    display: block;

    max-width: 100%;

}

a {

    text-decoration: none;

}

ul {

    list-style: none;

}

.container {

    width: min(1180px, 90%);

    margin: auto;

}

section {

    padding: 110px 0;

}

[dir="ltr"] section {
    text-align: left;
}

html[lang="en"] {
    direction: ltr;
}

[dir="ltr"] .section-title {
    text-align: center;
}

[dir="ltr"] .hero-grid {
    text-align: left;
}

[dir="ltr"] .principles-grid,
[dir="ltr"] .package-grid,
[dir="ltr"] .cards {
    direction: ltr;
}

/* ========================= */

.section-title {

    text-align: center;

    margin-bottom: 70px;

}

.section-title h2 {

    font-size: 2.7rem;

    color: var(--primary);

    margin-bottom: 18px;

    font-weight: 800;

}

.section-title p {

    color: var(--text);

    max-width: 650px;

    margin: auto;

}

/* ========================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 16px 34px;

    border-radius: 999px;

    font-weight: 600;

    transition: var(--transition);

    border: none;

}

.btn-primary {

    background: var(--secondary);

    color: #000;

    position: relative;

}

.btn-primary:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 30px rgba(245, 188, 0, .35);

}

.btn-secondary {

    border: 2px solid var(--primary);

    color: var(--primary);

}

.btn-secondary:hover {

    background: var(--primary);

    color: white;

}

/* ==========================================
   NAVBAR
====================================== */

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, .88);

    backdrop-filter: blur(18px);

    z-index: 999;

    border-bottom: 1px solid rgba(0, 0, 0, .05);

}

.navbar {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul {

    display: flex;

    gap: 40px;

}

.nav-actions {

    display: flex;

    gap: 16px;

    align-items: center;

}

.mobile-menu-btn {

    display: none;

    background: transparent;

    border: none;

    cursor: pointer;

    padding: 12px;

    margin-left: 8px;

}

.mobile-menu-btn span {

    display: block;

    width: 24px;

    height: 2px;

    background: var(--dark);

    margin: 5px 0;

    border-radius: 999px;

    transition: transform 0.25s ease, opacity 0.25s ease;

}

nav.open ul {

    display: flex;

    flex-direction: column;

    position: absolute;

    top: 90px;

    left: 0;

    right: 0;

    background: rgba(255, 255, 255, 0.98);

    padding: 20px 24px 24px;

    gap: 16px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    z-index: 998;

}

nav.open ul li {

    width: 100%;

}

nav.open ul li a {

    width: 100%;

    display: inline-block;

    padding: 12px 0;

}

@media(max-width:768px) {

    .navbar {

        justify-content: space-between;

        height: 90px;

        gap: 0;

        align-items: center;

    }

    .logo {
        flex-shrink: 0;
        margin: 0;
        order: 1;
    }

    .mobile-menu-btn {

        display: block;

        flex-shrink: 0;

        margin: 0 8px;

        padding: 8px;

        z-index: 1000;

        position: relative;

        order: 2;

    }

    nav ul {

        display: none;

    }

    nav {
        flex: 0;
        order: 2;
    }

    .nav-actions {

        display: flex;

        gap: 6px;

        align-items: center;

        flex-shrink: 0;

        white-space: nowrap;

        z-index: 1001;

        position: relative;

        order: 3;

        margin-left: 0;

        margin-right: 0;

    }

    .nav-actions .btn,

    .nav-actions .lang-btn {

        width: auto;

        flex: none;

        padding: 6px 10px;

        font-size: 11px;

        white-space: nowrap;

    }

}

.lang-btn {

    padding: 8px 16px;

    background: transparent;

    border: 2px solid var(--primary);

    color: var(--primary);

    border-radius: 999px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    font-size: 14px;

}

.lang-btn:hover {

    background: var(--primary);

    color: white;

}

nav a {

    color: var(--dark);

    font-weight: 600;

    transition: .3s;

}

nav a:hover {

    color: var(--secondary);

}

/* ======================================
HERO
====================================== */

.hero {

    padding-top: 180px;

    padding-bottom: 130px;

    background:
        radial-gradient(circle at top right,
            rgba(245, 188, 0, .15),
            transparent 40%),

        radial-gradient(circle at left,
            rgba(34, 54, 111, .08),
            transparent 45%);

}

.hero-grid {

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 70px;

    align-items: center;

}

.badge {

    display: inline-block;

    background: #FFF6D9;

    color: #A06C00;

    padding: 10px 18px;

    border-radius: 999px;

    font-weight: 600;

    margin-bottom: 24px;

}

.hero h1 {

    font-size: 4.2rem;

    line-height: 1.15;

    margin-bottom: 25px;

    font-weight: 800;

}

.hero h1 span {

    color: var(--primary);

}

.hero p {

    color: var(--text);

    font-size: 1.15rem;

    max-width: 620px;

    margin-bottom: 40px;

}

.hero-buttons {

    display: flex;

    gap: 18px;

    margin-bottom: 45px;

}

.hero-features {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

}

.hero-features div {

    background: white;

    padding: 16px 20px;

    border-radius: 14px;

    box-shadow: var(--shadow);

    font-weight: 600;

    transition: .3s;

}

.hero-features div:hover {

    transform: translateY(-6px);

}

/* ======================================
RIGHT SIDE
====================================== */

.hero-visual {

    display: flex;

    justify-content: center;

    align-items: center;

}

.glass-card {

    width: 430px;

    min-height: 520px;

    border-radius: 28px;

    padding: 50px;

    background: rgba(255, 255, 255, .72);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .4);

    box-shadow:
        0 20px 60px rgba(34, 54, 111, .15);

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

}

.glass-card::before {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    background: var(--secondary);

    filter: blur(90px);

    opacity: .25;

    right: -60px;

    top: -60px;

}

.glass-card h3 {

    font-size: 2rem;

    color: var(--primary);

    margin-bottom: 45px;

}

.flow {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 22px;

    font-size: 1.25rem;

    font-weight: 700;

}

.flow span {

    transition: .3s;

}

.flow span:hover {

    color: var(--secondary);

    transform: scale(1.08);

}

/* ==========================================
   PART 2
   Problem • Principles • Packages
==========================================*/


/* ==========================================
   WHY APPS FAIL
==========================================*/

.problem {

    background: var(--section);

}

.cards {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.card {

    background: white;

    padding: 45px 35px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: var(--transition);

    border: 1px solid transparent;

    position: relative;

    overflow: hidden;

}

.card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 5px;

    background: var(--secondary);

    transform: scaleX(0);

    transform-origin: left;

    transition: .4s;

}

.card:hover {

    transform: translateY(-12px);

    border-color: rgba(245, 188, 0, .3);

}

.card:hover::before {

    transform: scaleX(1);

}

.card h3 {

    color: var(--primary);

    font-size: 1.45rem;

    margin-bottom: 18px;

}

.card p {

    color: var(--text);

    font-size: 1rem;

}


/* ==========================================
   PRINCIPLES
==========================================*/

.principles {

    background: white;

}

.principles-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.principle {

    background: linear-gradient(180deg,
            #ffffff,
            #f8f9fc);

    padding: 40px;

    border-radius: 22px;

    border: 1px solid var(--border);

    transition: var(--transition);

    position: relative;

}

.principle::after {

    content: "";

    position: absolute;

    width: 0;

    height: 4px;

    left: 0;

    bottom: 0;

    background: var(--secondary);

    transition: .4s;

}

.principle:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 50px rgba(34, 54, 111, .12);

}

.principle:hover::after {

    width: 100%;

}

.principle h3 {

    color: var(--primary);

    margin-bottom: 18px;

    font-size: 1.35rem;

}

.principle p {

    color: var(--text);

}


/* ==========================================
   PACKAGES
==========================================*/

.packages {

    background: var(--section);

}

.package-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;

    align-items: stretch;

}

.package {

    background: white;

    border-radius: 26px;

    padding: 45px 38px;

    box-shadow: var(--shadow);

    transition: .35s;

    position: relative;

    border: 2px solid transparent;

    display: flex;

    flex-direction: column;

}

.package:hover {

    transform: translateY(-14px);

}

.package h3 {

    color: var(--primary);

    font-size: 1.6rem;

    margin-bottom: 18px;

}

.price {

    font-size: 2.8rem;

    color: var(--secondary);

    font-weight: 800;

    margin-bottom: 35px;

}

.package ul {

    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-bottom: 40px;

    flex: 1;

}

.package li {

    color: var(--text);

    padding-left: 10px;

}

.package .btn {

    width: 100%;

}


/* ==========================================
   FEATURED PACKAGE
==========================================*/

.featured {

    background: var(--primary);

    color: white;

    transform: scale(1.05);

    border: 2px solid var(--secondary);

}

.featured:hover {

    transform: scale(1.08);

}

.featured h3 {

    color: white;

}

.featured .price {

    color: var(--secondary);

}

.featured li {

    color: rgba(255, 255, 255, .9);

}

.featured .btn-primary {

    background: var(--secondary);

    color: #111;

}

.popular {

    position: absolute;

    top: 22px;

    right: -42px;

    background: var(--secondary);

    color: #111;

    font-size: .78rem;

    font-weight: 700;

    padding: 10px 55px;

    transform: rotate(45deg);

    letter-spacing: 1px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);

}


/* ==========================================
   PACKAGE DECORATION
==========================================*/

.package::before {

    content: "";

    position: absolute;

    width: 140px;

    height: 140px;

    border-radius: 50%;

    background: rgba(245, 188, 0, .08);

    right: -50px;

    top: -50px;

}

.featured::before {

    background: rgba(255, 255, 255, .08);

}


/* ==========================================
   SMALL HOVER EFFECTS
==========================================*/

.card,
.principle,
.package {

    cursor: default;

}

.package:hover .price {

    transform: scale(1.05);

    transition: .3s;

}

.principle:hover h3 {

    color: var(--secondary);

}

.card:hover h3 {

    color: var(--secondary);

}

/* ==========================================
   PART 3
   Process • CTA • Footer • Responsive
==========================================*/


/* ==========================================
   PROCESS
==========================================*/

.process {

    background: #ffffff;

}

.timeline {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 25px;

    position: relative;

    margin-top: 60px;

}

.timeline::before {

    content: "";

    position: absolute;

    top: 35px;

    left: 8%;

    width: 84%;

    height: 3px;

    background: linear-gradient(to right,
            var(--primary),
            var(--secondary));

    z-index: 0;

}

.timeline div {

    position: relative;

    z-index: 2;

    background: white;

    border-radius: 20px;

    padding: 65px 20px 30px;

    text-align: center;

    font-weight: 700;

    color: var(--primary);

    box-shadow: var(--shadow);

    transition: var(--transition);

}

.timeline div::before {

    content: "";

    position: absolute;

    top: 20px;

    left: 50%;

    transform: translateX(-50%);

    width: 28px;

    height: 28px;

    border-radius: 50%;

    background: var(--secondary);

    border: 6px solid white;

}

.timeline div:hover {

    transform: translateY(-10px);

}


/* ==========================================
   CTA
==========================================*/

.cta {

    background: linear-gradient(135deg,
            var(--primary),
            #172652);

    text-align: center;

    color: white;

    overflow: hidden;

    position: relative;

}

.cta::before {

    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    border-radius: 50%;

    background: rgba(245, 188, 0, .08);

    top: -220px;

    right: -120px;

}

.cta::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .04);

    bottom: -150px;

    left: -120px;

}

.cta .container {

    position: relative;

    z-index: 2;

}

.cta h2 {

    font-size: 3rem;

    margin-bottom: 20px;

}

.cta p {

    color: rgba(255, 255, 255, .85);

    max-width: 650px;

    margin: auto;

    margin-bottom: 45px;

    font-size: 1.1rem;

}

/* ================= CONTACT ================= */

.contact {

    background: #F8F9FC;

}

.contact form {

    max-width: 850px;

    margin: auto;

    background: white;

    padding: 50px;

    border-radius: 25px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);

}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

}

.input-group {

    display: flex;

    flex-direction: column;

    margin-bottom: 25px;

}

.input-group label {

    margin-bottom: 10px;

    font-weight: 600;

    color: #22366F;

}

.input-group input,
.input-group textarea,
.input-group select {

    padding: 16px;

    border-radius: 14px;

    border: 1px solid #ddd;

    font-size: 15px;

    transition: .3s;

    outline: none;

}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {

    border-color: #F5BC00;

    box-shadow: 0 0 0 4px rgba(245, 188, 0, .15);

}

textarea {

    resize: vertical;

}

.contact button {

    width: 100%;

}

@media(max-width:768px) {

    .form-row {

        grid-template-columns: 1fr;

    }

    .contact form {

        padding: 30px;

    }

}


/* ==========================================
   FOOTER
==========================================*/

footer {

    background: #0F172A;

    color: white;

    padding: 80px 0 40px;

}

.footer-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}

.footer-content img {

    width: 170px;

    margin-bottom: 25px;

}

.footer-content h3 {

    font-size: 2rem;

    margin-bottom: 10px;

}

.footer-content p {

    color: #CBD5E1;

    margin-bottom: 20px;

}

.footer-links {

    display: flex;

    gap: 35px;

    margin: 35px 0;

}

.footer-links a {

    color: white;

    transition: .3s;

}

.footer-links a:hover {

    color: var(--secondary);

}

.copyright {

    opacity: .65;

    font-size: .9rem;

}


/* ==========================================
   SCROLL ANIMATION
==========================================*/

.card,
.principle,
.package,
.timeline div {

    opacity: 0;

    transform: translateY(35px);

    animation: fadeUp .8s ease forwards;

}

.card:nth-child(2),
.principle:nth-child(2),
.package:nth-child(2) {

    animation-delay: .15s;

}

.card:nth-child(3),
.principle:nth-child(3),
.package:nth-child(3) {

    animation-delay: .3s;

}

.principle:nth-child(4) {

    animation-delay: .45s;

}

.principle:nth-child(5) {

    animation-delay: .6s;

}

.principle:nth-child(6) {

    animation-delay: .75s;

}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(35px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* Floating Animation */

.glass-card {

    animation: float 5s ease-in-out infinite;

}

@keyframes float {

    0% {

        transform: translateY(0px);

    }

    50% {

        transform: translateY(-12px);

    }

    100% {

        transform: translateY(0px);

    }

}


/* ==========================================
   TABLET
==========================================*/

@media(max-width:992px) {

    .hero-grid {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .hero-buttons {

        justify-content: center;

    }

    .hero-features {

        grid-template-columns: 1fr 1fr;

    }

    .glass-card {

        margin: auto;

    }

    .cards {

        grid-template-columns: 1fr;

    }

    .principles-grid {

        grid-template-columns: 1fr 1fr;

    }

    .package-grid {

        grid-template-columns: 1fr;

    }

    .featured {

        transform: none;

    }

    .timeline {

        grid-template-columns: repeat(3, 1fr);

    }

}


/* ==========================================
   MOBILE
==========================================*/

@media(max-width:768px) {

    section {

        padding: 80px 0;

    }


    nav ul {

        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;

    }

    .hero {

        padding-top: 200px;

    }

    .hero h1 {

        font-size: 2.6rem;

    }

    .section-title h2 {

        font-size: 2rem;

    }

    .hero-features {

        grid-template-columns: 1fr;

    }

    .principles-grid {

        grid-template-columns: 1fr;

    }

    .timeline {

        grid-template-columns: 1fr;

    }

    .timeline::before {

        display: none;

    }

    .cta h2 {

        font-size: 2.2rem;

    }

    .footer-links {

        flex-direction: column;

        gap: 18px;

    }

}


/* ==========================================
   SMALL MOBILE
==========================================*/

@media(max-width:480px) {

    .container {

        width: 92%;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .btn {

        width: 100%;

    }

    .hero-buttons {

        flex-direction: column;

    }

    .glass-card {

        width: 100%;

        padding: 35px;

        min-height: auto;

    }

}

/* Active Navbar Link */

nav a.active {

    color: var(--secondary);

}


/* Ripple Effect */

.btn {

    position: relative;

    overflow: hidden;

}

.ripple {

    position: absolute;

    border-radius: 50%;

    transform: scale(0);

    background: rgba(255, 255, 255, .5);

    animation: ripple .6s linear;

}

@keyframes ripple {

    to {

        transform: scale(4);

        opacity: 0;

    }

}

/* ==========================================
   MODAL & DROPDOWN STYLES
========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

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

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

.modal-content h2 {
    color: #22366F;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-body {
    margin: 25px 0;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 12px;
    color: #4B5563;
    font-size: 15px;
}

.modal-body strong {
    color: #22366F;
}

.description-text {
    background: #F8F9FC;
    padding: 12px;
    border-radius: 10px;
    margin-top: 8px !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2322366F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.input-group select:hover {
    border-color: #F5BC00;
    background-color: #FAFBFC;
}

@media(max-width:768px) {

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 90px;
        padding: 0;
        gap: 0;
    }

    .logo {
        order: 1;
        margin: 0;
    }

    nav {
        order: 0;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .nav-actions {
        order: 3;
        margin: 0;
    }

}

/* ==========================================
   RTL SUPPORT
========================================== */

[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .input-group select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 16px;
}

[dir="rtl"] .modal-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .package {
    direction: rtl;
}


/* Navbar RTL */

[dir="rtl"] .navbar {
    direction: rtl;
}

[dir="rtl"] .logo {
    margin: 0;
}

[dir="rtl"] .nav-actions {
    margin: 0;
}