@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700;900&display=swap');
:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 30, 0.7);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}


.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    overflow: hidden;
}


.bg-animation span {
    position: absolute;
    display: block;
    
    background: rgba(255, 255, 255, 0.1); 
    animation: move 25s linear infinite;
    bottom: -150px;
    border-radius: 50%; 
}

@keyframes move {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}


h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   HOME PAGE STYLES (NAV + SLIDER)
   ========================================= */

/* --- Home Page Navigation --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    letter-spacing: 2px;
}

.nav-center {
    display: flex;
    gap: 20px;
}

.nav-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3), transparent);
    transition: 0.5s;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* දැනට සිටින පිටුවට අදාළ Tab එක (Active State) */
.nav-card.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    color: var(--primary-color);
    pointer-events: none; /* ආයෙත් Click කරන්න බැරි වෙන්න හදනවා */
    cursor: default; /* Mouse pointer එක අතක් වෙනුවට සාමාන්‍ය ඊතලයක් වෙනවා */
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-auth {
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-auth:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-auth.signup {
    background: var(--primary-color);
    color: #000;
}

.btn-auth.signup:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--secondary-color);
}

/* --- Slideshow Section --- */
.slider-section {
    height: 100vh; /* Screen එක පුරාම පෙන්නන්න */
    position: relative;
    overflow: hidden;
    display: flex; /* අකුරු මැදට ගේන්න */
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 15, 0.5);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); /* කලු පාට ශේඩ් එකක් */
    z-index: 1;
}

/* Background Images */
.slide:nth-child(1) {
    background: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&q=80') no-repeat center center/cover;
}

.slide:nth-child(2) {
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&q=80') no-repeat center center/cover;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-content {
    position: relative;
    z-index: 2;
}

.slide-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    text-transform: uppercase;
}

.slide-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}


.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    color: #cccccc;
    max-width: 600px;
    margin-bottom: 40px;
}

@keyframes glow {
    from { 
        
        text-shadow: 0 0 5px var(--primary-color); 
    }
    to { 
        
        text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color); 
    }
}

.btn-main {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: var(--bg-color);
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-main:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary-color);
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 80px 0 40px;
    color: var(--secondary-color);
}

.apps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 300px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}


.app-icon {
    width: 100px;
    height: 100px;
    background: #000; 
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; 
    z-index: 1;
}


.app-icon::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
   
    background: conic-gradient(transparent, transparent, transparent, var(--primary-color));
    animation: rotate-border 4s linear infinite; 
    z-index: -2;
}


.app-icon::after {
    content: '';
    position: absolute;
    inset: 3px; 
    background: var(--card-bg); 
    border-radius: 18px;
    z-index: -1;
}


.app-icon img {
    z-index: 2;
    position: relative;
    width: 100%;        
    height: 100%;       
    object-fit: cover;  
    border-radius: 18px; 
    padding: 6px;       
}


@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.app-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.app-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: 0.5s;
}

.download-btn:hover::before {
    left: 0;
}

.download-btn:hover {
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}


.bg-gradient-text {
    font-size: 2rem;       
    font-weight: 800;      
    display: inline-block;
    margin-top: 10px;
    
    
    background: linear-gradient(
        90deg, 
        var(--primary-color) 0%, 
        #ffffff 50%, 
        var(--primary-color) 100%
    );
    
    background-size: 200% auto; 
    
    
    color: transparent; 
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
   
    animation: shine-flow 3s linear infinite;
}


@keyframes shine-flow {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Slider එක ඇතුලේ තියෙන බොත්තම */
.slide-btn {
    display: inline-block;
    margin-top: 30px; /* අකුරු වලින් ටිකක් පහළට කරලා පෙන්වන්න */
}

footer {
    background: #020202;
    padding: 20px;
    text-align: center;
    color: #555;
    border-top: 1px solid #222;
}


.smart-text {
    word-spacing: 5px; 
    white-space: nowrap; 
}


/* =========================================
   MOBILE RESPONSIVE FIX (PHONE VIEW)
   ========================================= */



#apps {
    scroll-margin-top: 120px; 
}



body {
    
    user-select: none;
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
}

img {
    
    -webkit-user-drag: none;
    
    
    
    pointer-events: none; 
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; 
    backdrop-filter: blur(5px); 
}


.popup-content {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid var(--primary-color); 
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px var(--primary-color); 
    animation: popupFadeIn 0.5s ease;
}


.popup-content h2 {
    color: #ffcc00; 
    margin-bottom: 15px;
    font-size: 24px;
    letter-spacing: 2px;
}

.popup-content p {
    color: #fff;
    margin-bottom: 25px;
    font-size: 16px;
}


.popup-content button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.popup-content button:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

/* --- Mobile Menu Icon (Desktop එකේදී hide කරලා තියෙන්නේ) --- */
.menu-icon {
    display: none;
    font-size: 2.2rem;
    color: var(--primary-color);
    cursor: pointer;
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================
   NEW MOBILE RESPONSIVE UI (APP-LIKE FEEL)
   ========================================= */
@media (max-width: 768px) {
    /* Top Nav Fixes */
    .top-nav {
        padding: 15px 20px !important;
        background: rgba(5, 5, 10, 0.95) !important;
        border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    }

    .nav-logo-text {
        font-size: 1.3rem; /* Logo එක ෆෝන් එකට ගැලපෙන සයිස් කිරීම */
    }

    .nav-logo-img {
        height: 35px;
    }

    .menu-icon {
        display: block !important; 
        z-index: 1002; /* Menu එකට උඩින් තියන්න */
        transition: 0.3s ease;
    }

    /* Modern Full-Screen Slide Menu */
    .nav-links-container {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%; /* දකුණු පැත්තෙන් එන්න හදලා තියෙන්නේ */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 0;
        border: none;
    }

    .nav-links-container.show-menu {
        right: 0;
    }

    .nav-center {
        flex-direction: column !important;
        gap: 20px !important;
        width: 85% !important;
        margin-bottom: 40px;
    }

    .auth-buttons {
        flex-direction: column !important;
        width: 85% !important;
        gap: 15px !important;
        margin-top: 0 !important;
    }

    /* Mobile Buttons & Cards */
    .nav-card {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1.2rem !important;
        text-align: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
    }

    .btn-auth {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1.1rem !important;
        border-radius: 12px;
    }

    /* Home Page Slider Mobile Fixes */
    .slider-section {
        min-height: 100vh !important;
        padding: 100px 20px 40px !important; 
    }

    .slide-content h2 {
        font-size: 2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 1.05rem !important;
        line-height: 1.6;
        text-align: center; /* ෆෝන් එකේ කියවන්න ලේසි වෙන්න */
        padding: 0 10px;
    }

    .slide-btn {
        display: block !important;
        width: 80%;
        margin: 30px auto 0 !important;
        text-align: center;
        padding: 15px !important;
        border-radius: 8px;
    }

    /* Softwares Page Mobile Fixes */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .bg-gradient-text {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .apps-container {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        padding: 10px 20px;
    }

    .app-card {
        width: 100%;
        max-width: 350px; /* ෆෝන් එකේ ලස්සනට පේන්න size කිරීම */
    }

    .section-title {
        font-size: 2rem;
        margin: 60px 0 30px;
    }

    /* Popup Mobile Fix */
    .popup-content {
        width: 85%;
        padding: 25px 20px;
    }
}


@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}