/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-cyan: #14E5D1;
    --dark-teal: #073C3B;
    --text-main: #0A2F2E;
    --text-sec: #5E8F8C;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(124deg, #fff 0%, #fff 0%, #e7f0dc 37%, #acf6ee 100%);
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%,   
        rgba(255, 255, 255, 0) 25%,   
        rgba(255, 255, 255, 0) 75%,  
        rgba(255, 255, 255, 1) 100%   
    );
    pointer-events: none; 
    z-index: -2; 
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 35%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 35%);
    pointer-events: none;
    z-index: -2;
}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    body::before {
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(255, 255, 255, 0) 10%, 
            rgba(255, 255, 255, 0) 90%, 
            rgba(255, 255, 255, 1) 100%
        );
    }

    body::after {
        background: 
            radial-gradient(circle at top right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 20%),
            radial-gradient(circle at top left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 20%);
    }

    .hero::before {
        background-size: 250px auto, 280px auto; 
        opacity: 0.5;
    }
}

/* --- Container Fix for Navbar --- */
.container.full-width-nav {
    max-width: 100%; 
    width: 95%;     
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative; 
}

/* --- Navigation Layout --- */
.nav-buttons-container {
    margin-right: auto; 
    display: flex;
    align-items: center;
}
.nav {
    display: flex;
    flex: 1;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* --- Header / Navbar Styles --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    top: 20px; 
    width: 90%; 
    max-width: 1000px; 
    left: 50%;
    transform: translateX(-50%) !important;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px; 
    border: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(7, 60, 59, 0.1);
}

/* --- Responsive fix for Tablet/iPad Pro Navbar to prevent overlapping --- */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .nav-links {
        position: static;
        transform: none;
        gap: 15px;
        margin: 0 auto;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    .nav-buttons {
        gap: 10px;
    }
}

.header.scrolled .container.full-width-nav {
    padding: 0 30px; 
}

.logo img { height: 45px; }

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover { color: var(--primary-cyan); }

/* --- Mobile Menu Styles (Menu List) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        margin-right: auto;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--dark-teal);
        transition: 0.3s;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav.active { left: 0; }

    .nav-links {
        position: static;
        flex-direction: column;
        transform: none;
        align-items: center;
        width: 100%;
    }

    .nav-buttons-container {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 80%;
    }

    .header.scrolled {
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0; 
        left: 0;
        transform: none !important; 
        border-left: none;
        border-right: none;
    }
}

/* --- Buttons --- */
.login-btn { 
    background: transparent; 
    border: 1.5px solid var(--primary-cyan); 
    padding: 10px 25px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-family: 'Cairo';
    font-weight: 700; 
    color: var(--text-main);
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: color 0.5s;
    z-index: 1;
}

.login-btn:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--primary-cyan);
    height: 180px; 
    width: 250px; 
    border-radius: 50%;
    top: 100%;
    left: 100%;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); 
}

.login-btn:hover {
    color: #fff;
}

.login-btn:hover:before {
    top: -50px;
    left: -20px;
}

.login-btn:active:before {
    background: var(--primary-cyan);
    transition: background 0s;
}

.cta-main-btn {
    background: var(--primary-cyan);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo';
    font-weight: 700;
    position: relative;
    transition: all 0.2s ease;
    z-index: 1;
}

.cta-main-btn:active {
    transform: scale(0.96);
}

.cta-main-btn:before,
.cta-main-btn:after {
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    background-repeat: no-repeat;
}

.cta-main-btn:hover:before {
    top: -70%;
    background-image: radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, transparent 20%, var(--primary-cyan) 20%, transparent 30%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, var(--primary-cyan) 15%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: greentopBubbles 0.6s ease;
}

.cta-main-btn:hover::after {
    bottom: -70%;
    background-image: radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, var(--primary-cyan) 15%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%),
        radial-gradient(circle, var(--primary-cyan) 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 0.6s ease;
}

@keyframes greentopBubbles {
    0% {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
    }
    50% {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
    }
    100% {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

@keyframes greenbottomBubbles {
    0% {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
    }
    50% {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
    }
    100% {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

/* --- Hero Layout - Centered --- */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; 
    background: transparent;
}

.hero-cloud {
    position: absolute;
    pointer-events: none; 
    z-index: -1; 
    max-width: 100%;
    height: auto;
}


.cloud-tr {
    top: 0;
    right: 0;
    width: clamp(250px, 40vw, 600px);
    height: auto;
}

.cloud-tl {
    top: 0;
    left: 0;
    width: clamp(250px, 40vw, 600px);
    height: auto;
}

@media (max-width: 768px) {
    .cloud-tr, .cloud-tl {
        display: none;
        width: 180px;
    }
    .hero-cloud {
        width: 250px; 
    }
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px; 
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none; 
    z-index: 10; 
}

.hero-center-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-content-center {
    max-width: 1400px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Double Rounded Badge --- */
.hero-main-badge {
    background: white;
    padding: 6px 15px 6px 8px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(20, 229, 209, 0.2);
    margin-bottom: 25px;
}

.inner-badge {
    background: var(--primary-cyan);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-teal);
}

/* --- Typography --- */
.hero-title-main {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    color: var(--text-main);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 650px;
    margin-bottom: 35px;
}

/* --- Hero Buttons Styles and Responsiveness --- */
.hero-btns-group {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero-btns-group {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    .btn-primary-hero, .btn-secondary-hero {
        width: 100%;
    }
}

.btn-primary-hero {
    background: var(--dark-teal);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(7, 60, 59, 0.2);
    transition: 0.3s;
}

.btn-secondary-hero {
    background: white;
    color: var(--dark-teal);
    padding: 15px 35px;
    border-radius: 50px;
    border: 1px solid #eee;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Dashboard Frame - Responsive Width with Center Alignment --- */
.dashboard-frame {
     width: 95%;
    max-width: 2400px; 
    height: 900px; 
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
    margin: 40px auto 0 auto; 
    transition: all 0.3s ease;
}

.frame-browser-bar {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 25px;
    display: flex;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.frame-browser-bar .dots {
    display: flex;
    gap: 8px;
}

.frame-browser-bar .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.frame-browser-bar .dots span:nth-child(1) { background: #ff5f57; } 
.frame-browser-bar .dots span:nth-child(2) { background: #ffbd2e; } 
.frame-browser-bar .dots span:nth-child(3) { background: #28ca42; } 

.dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 0 0 15px 15px;
}

.dashboard-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #ffffff); 
    z-index: 5;
}

/* --- Media Queries for Dashboard Frame Responsiveness --- */
@media only screen and (max-width: 1200px) {
    .dashboard-frame {
        width: 97%;
        max-width: 97%;
        height: 650px;
        min-height: auto;
    }
}

@media only screen and (max-width: 768px) {
    .dashboard-frame {
        width: 96%;
        max-width: 96%;
        height: 500px;
        margin-top: 20px;
        padding: 8px;
        border-radius: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .dashboard-frame {
        width: 95%;
        max-width: 95%;
        height: 400px;
        margin-top: 15px;
        padding: 6px;
        border-radius: 15px;
    }
    .frame-browser-bar { padding: 8px 12px; }
    .dashboard-frame::after { height: 100px; }
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.play-btn-complex {
    width: clamp(75px, 12vw, 110px);
    height: clamp(75px, 12vw, 110px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--primary-cyan), var(--dark-teal));
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.2),
        inset 0 4px 6px rgba(255,255,255,0.4), 
        inset 0 -4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible; 
}

.play-btn-complex:active {
    transform: scale(0.92);
    box-shadow: 
        0 5px 10px rgba(0,0,0,0.2),
        inset 0 2px 3px rgba(255,255,255,0.2);
}

.play-btn-complex::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-cyan);
    z-index: -1; 
    animation: ring_pulse_new 2.5s infinite;
}

.play-btn-complex:hover .icon-layer {
    transform: scale(1.2);
    filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.5));
}

#stars-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(0,0,0,0.05); 
}

#stars-animation {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, #fff 1px, transparent 1px),
        radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
    animation: star_move 10s linear infinite;
    opacity: 0.6;
}

.icon-layer {
    z-index: 5;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-layer svg {
    fill: #ffffff;
    width: 100%;
    height: auto;
}

.glow-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
}

.glow-circle {
    position: absolute;
    inset: 0;
    filter: blur(1rem);
    border-radius: 50%;
    opacity: 0.5;
    animation: glow_pulse 3s infinite alternate;
}

.glow-circle:nth-child(1) { background: var(--primary-cyan); }
.glow-circle:nth-child(2) { background: #fff; opacity: 0.2; }

@keyframes ring_pulse_new {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes star_move {
    from { transform: translate(0, 0); }
    to { transform: translate(-20px, -20px); }
}

@keyframes glow_pulse {
    from { opacity: 0.3; transform: scale(0.9); }
    to { opacity: 0.6; transform: scale(1.1); }
}

@media (max-width: 768px) {
    .play-btn-complex {
        width: 65px;
        height: 65px;
    }
}