/* ==========================================
            PROJECTS PAGE
========================================== */

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

html{
    scroll-behavior:smooth;
}

img{
    max-width:100%;
    height:auto;
}

html, body{
    max-width:100%;
    overflow-x:hidden;
}

body{
    background:var(--bg-primary);
    color:var(--text-primary);
    font-family:'Poppins',sans-serif;
    position:relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   Loading Screen
========================================== */
#loader {
    position: fixed;
    inset: 0;
    background: #0a192f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
#loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.loader-logo span {
    color: #64ffda;
}
.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(100, 255, 218, 0.15);
    border-radius: 3px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #64ffda, #00b8a9);
    animation: loadFill 1.2s ease forwards;
}
@keyframes loadFill {
    to { width: 100%; }
}

[data-theme="light"] #loader {
    background: #f8f9fa;
}
[data-theme="light"] .loader-logo {
    color: #0a192f;
}

/* ==========================
        VARIABLES
========================== */

:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-card: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-hover: #00b8a9;
    --border: #1d3557;
    --shadow: rgba(0, 0, 0, 0.4);

    --bg: var(--bg-primary);
    --card: var(--bg-card);
    --text: var(--text-primary);
    --primary: var(--accent);
    --secondary: var(--accent-hover);
    --purple: #7C3AED;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0a192f;
    --text-secondary: #495670;
    --accent: #00b8a9;
    --accent-hover: #008f82;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);

    --bg: var(--bg-primary);
    --card: var(--bg-card);
    --text: var(--text-primary);
    --primary: var(--accent);
    --secondary: var(--accent-hover);
    --purple: #7C3AED;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0.35;
}

/* Theme & Language Switchers */
.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    padding: 0;
    transition: transform 0.2s, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover,
.lang-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.theme-toggle i {
    font-size: 16px;
    pointer-events: none;
}

.lang-toggle span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* RTL Support */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

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

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

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

/* ==========================
        BACKGROUND
========================== */

body::before{

    content:"";

    position:fixed;

    width:650px;

    height:650px;

    top:-250px;

    left:-250px;

    border-radius:50%;

    background:radial-gradient(circle,
    rgba(0,212,255,.18),
    transparent 70%);

    filter:blur(100px);

    z-index:-2;

}

body::after{

    content:"";

    position:fixed;

    width:650px;

    height:650px;

    bottom:-250px;

    right:-250px;

    border-radius:50%;

    background:radial-gradient(circle,
    rgba(124,58,237,.18),
    transparent 70%);

    filter:blur(100px);

    z-index:-2;

}

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

.navbar{

    position:fixed;

    top:20px;

    left:50%;

    transform:translateX(-50%);

    width:min(1200px,92%);

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 35px;

    border-radius:18px;

    background:var(--bg-card);

    backdrop-filter:blur(18px);

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

    z-index:999;

}

.logo{
    text-decoration:none;
    font-size:30px;
    font-weight:700;
    color:var(--text-primary);

}

.logo .dot{

    color:var(--primary);

}

.navbar ul{

    display:flex;

    gap:35px;

    list-style:none;

}

.navbar ul a{
    text-decoration:none;
    color:var(--text-primary);

    transition:.3s;

}

.navbar ul a:hover,

.navbar ul a.active{

    color:var(--primary);

}

.hire-btn{

    text-decoration:none;

    padding:13px 28px;

    border-radius:40px;

    background:linear-gradient(135deg,var(--accent),var(--accent-hover));

    color:#0a192f;

    font-weight:600;

    transition:.3s;

}

.hire-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 0 25px var(--accent);

}

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

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

    padding:150px 8% 80px;

}

.hero-content{

    max-width:620px;

}

.hero-tag{

    color:var(--secondary);

    letter-spacing:3px;

    font-weight:600;

}

.hero h1{

    font-size:72px;

    line-height:1.1;

    margin:20px 0;

}

.hero p{

    color:var(--text-secondary);

    line-height:1.9;

    font-size:18px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:45px;

}

.btn-primary{

    padding:16px 34px;

    border-radius:40px;

    text-decoration:none;

    background:var(--primary);

    color:#0a192f;

    font-weight:600;

    transition:.3s;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:0 0 30px var(--primary);

}

.btn-outline{

    padding:16px 34px;

    border-radius:40px;

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

    text-decoration:none;

    color:var(--text-primary);

    transition:.3s;

}

.btn-outline:hover{

    background:var(--primary);

    color:#0a192f;

}

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:min(380px, 85vw);
    max-width:100%;
    height:auto;

    border-radius:30px;

    box-shadow:

    0 0 35px rgba(0,212,255,.35);

}
/* ==========================================
        STATS
========================================== */

.stats{

    width:min(1200px,92%);

    margin:0 auto 80px;

    display:grid;

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

    gap:30px;

}

.stat-card{

    background:var(--bg-card);

    backdrop-filter:blur(20px);

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

    border-radius:22px;

    padding:35px;

    text-align:center;

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-10px);

    border-color:var(--accent);

    box-shadow:

        0 0 25px rgba(0,212,255,.25);

}

.stat-card h2{

    font-size:48px;

    color:var(--accent);

    margin-bottom:10px;

}

.stat-card p{

    color:var(--text-secondary);

    letter-spacing:1px;

}


/* ==========================================
        SEARCH
========================================== */

.search-section{

    width:min(1200px,92%);

    margin:0 auto 40px;

}

.search-box{

    position:relative;

    max-width:650px;

    margin:auto;

}

.search-box i{

    position:absolute;

    left:22px;

    top:50%;

    transform:translateY(-50%);

    color:var(--accent);

    font-size:18px;

}

.search-box input{

    width:100%;

    height:62px;

    border:none;

    outline:none;

    padding:0 25px 0 60px;

    border-radius:50px;

    color:var(--text-primary);

    font-size:16px;

    background:var(--bg-card);

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

    backdrop-filter:blur(18px);

    transition:.35s;

}

.search-box input:focus{

    border-color:var(--accent);

    box-shadow:0 0 20px rgba(0,212,255,.25);

}

.search-box input::placeholder{

    color:var(--text-secondary);

}


/* ==========================================
        FILTERS
========================================== */

.filter-section{

    width:min(1200px,92%);

    margin:0 auto 70px;

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}

.filter-btn{

    padding:14px 28px;

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:40px;

    background:var(--bg-card);

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

    color:var(--text-primary);

    font-size:15px;

    transition:.35s;

}

.filter-btn:hover{

    border-color:var(--accent);

    color:var(--accent);

    transform:translateY(-4px);

}

.filter-btn.active{

    background:var(--accent);

    color:#0a192f;

    font-weight:600;

}


/* ==========================================
        PROJECTS SECTION
========================================== */

.projects{

    width:min(1200px,92%);

    margin:auto;

    padding-bottom:120px;

}

.projects-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));

    gap:35px;

}
/* ==========================================
        STATS
========================================== */

.stats{

    width:min(1200px,92%);

    margin:0 auto 80px;

    display:grid;

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

    gap:30px;

}

.stat-card{

    background:var(--bg-card);

    backdrop-filter:blur(20px);

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

    border-radius:22px;

    padding:35px;

    text-align:center;

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-10px);

    border-color:var(--accent);

    box-shadow:

        0 0 25px rgba(0,212,255,.25);

}

.stat-card h2{

    font-size:48px;

    color:var(--accent);

    margin-bottom:10px;

}

.stat-card p{

    color:var(--text-secondary);

    letter-spacing:1px;

}


/* ==========================================
        SEARCH
========================================== */

.search-section{

    width:min(1200px,92%);

    margin:0 auto 40px;

}

.search-box{

    position:relative;

    max-width:650px;

    margin:auto;

}

.search-box i{

    position:absolute;

    left:22px;

    top:50%;

    transform:translateY(-50%);

    color:var(--accent);

    font-size:18px;

}

.search-box input{

    width:100%;

    height:62px;

    border:none;

    outline:none;

    padding:0 25px 0 60px;

    border-radius:50px;

    color:var(--text-primary);

    font-size:16px;

    background:var(--bg-card);

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

    backdrop-filter:blur(18px);

    transition:.35s;

}

.search-box input:focus{

    border-color:var(--accent);

    box-shadow:0 0 20px rgba(0,212,255,.25);

}

.search-box input::placeholder{

    color:var(--text-secondary);

}


/* ==========================================
        FILTERS
========================================== */

.filter-section{

    width:min(1200px,92%);

    margin:0 auto 70px;

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}

.filter-btn{

    padding:14px 28px;

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:40px;

    background:var(--bg-card);

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

    color:var(--text-primary);

    font-size:15px;

    transition:.35s;

}

.filter-btn:hover{

    border-color:var(--accent);

    color:var(--accent);

    transform:translateY(-4px);

}

.filter-btn.active{

    background:var(--accent);

    color:#0a192f;

    font-weight:600;

}


/* ==========================================
        PROJECTS SECTION
========================================== */

.projects{

    width:min(1200px,92%);

    margin:auto;

    padding-bottom:120px;

}

.projects-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));

    gap:35px;

}
/* ==========================================
            CALL TO ACTION
========================================== */

.cta{

    width:min(1200px,92%);

    margin:100px auto;

    padding:80px 50px;

    text-align:center;

    border-radius:30px;

    background:var(--bg-card);

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

    backdrop-filter:blur(20px);

}

.cta span{

    color:var(--accent-hover);

    letter-spacing:3px;

    font-size:14px;

    font-weight:600;

}

.cta h2{

    margin:20px 0;

    font-size:48px;

}

.cta p{

    max-width:700px;

    margin:0 auto 40px;

    color:var(--text-secondary);

    line-height:1.8;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

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

.footer{

    padding:70px 8% 40px;

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

}

.footer-top h2{

    font-size:38px;

    margin-bottom:15px;

}

.footer-top span{

    color:var(--accent);

}

.footer-top p{

    color:var(--text-secondary);

}

.footer-social{

    display:flex;

    justify-content:center;

    gap:18px;

    margin:35px 0;

}

.footer-social a{

    width:55px;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:var(--bg-card);

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

    color:var(--text-primary);

    text-decoration:none;

    font-size:22px;

    transition:.35s;

}

.footer-social a:hover{

    background:var(--accent);

    color:#0a192f;

    transform:translateY(-6px);

}

.footer-bottom{

    color:var(--text-secondary);

    margin-top:25px;

}

/* ==========================================
            BACK TO TOP
========================================== */

#backTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--accent);

    color:#0a192f;

    font-size:22px;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 0 25px rgba(0,212,255,.35);

    transition:.35s;

}

#backTop:hover{

    transform:translateY(-6px);

}

/* ==========================================
            RESPONSIVE
========================================== */

@media (max-width:992px){

    .hero{

        grid-template-columns:1fr;

        text-align:center;

        gap:40px;

    }

    .hero-content{

        margin:auto;

    }

    .hero-buttons{

        justify-content:center;

    }

    .stats{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    .hero{

        padding:140px 6% 80px;

    }

    .hero h1{

        font-size:48px;

    }

    .hero-image img{

        width:280px;

    }

    .projects-grid{

        grid-template-columns:1fr;

    }

    .cta{

        padding:50px 25px;

    }

    .cta h2{

        font-size:34px;

    }

}

















/*==============================
        PROJECTS
==============================*/

.projects-section{
    width:100%;
    padding:120px 8% 80px;
}

.container{
    max-width:1400px;
    margin:auto;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(300px, 100%),1fr));
    gap:35px;
}

.project-card{

    background:var(--bg-secondary);

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

    border-radius:22px;

    overflow:hidden;

    transition:.35s;

}

.project-card:hover{

    transform:translateY(-10px);

    border-color:var(--accent);

    box-shadow:0 0 35px rgba(0,212,255,.25);

}

.project-image{

    position:relative;

    height:230px;

    overflow:hidden;

}

.project-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}

.project-overlay{

    position:absolute;

    inset:0;

    background:rgba(8,17,31,.75);

    display:flex;

    justify-content:center;

    align-items:center;

    gap:16px;

    opacity:0;

    transition:.35s ease;

    backdrop-filter:blur(4px);

    z-index:2;

}

.project-card:hover .project-overlay{

    opacity:1;

}

.project-overlay a{

    width:48px;

    height:48px;

    border-radius:50%;

    background:var(--accent);

    color:#0a192f;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    text-decoration:none;

    transition:.3s;

}

.project-overlay a:hover{

    transform:scale(1.15);

    box-shadow:0 0 20px var(--accent);

}

.project-card:hover img{

    transform:scale(1.08);

}

.project-content{

    padding:30px;

}

.project-tag,

.project-category{

    display:inline-block;

    padding:8px 18px;

    background:rgba(0,212,255,.12);

    color:var(--accent);

    border-radius:30px;

    font-size:13px;

    margin-bottom:18px;

}

.project-content h3{

    color:var(--text-primary);

    font-size:32px;

    margin-bottom:15px;

}

.project-content p{

    color:var(--text-secondary);

    line-height:1.8;

    margin-bottom:25px;

}

.project-tech{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    margin-bottom:30px;

}

.project-tech span{

    padding:8px 18px;

    border-radius:25px;

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

    color:var(--accent);

    font-size:14px;

}

.project-links{

    display:flex;

    gap:15px;

}

.project-links a{

    flex:1;

    text-align:center;

    padding:15px;

    border-radius:14px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.live-btn{

    background:var(--accent);

    color:#0a192f;

}

.live-btn:hover{

    background:#00b8de;

}

.github-btn{

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

    color:var(--accent);

}

.github-btn:hover{

    background:var(--accent);

    color:#0a192f;

}

.project-links i{

    margin-right:8px;

}

/*==============================
      RESPONSIVE
==============================*/

@media(max-width:900px){

.projects-grid{

grid-template-columns:1fr;

}

.project-content h3{

font-size:28px;

}

.project-links{

flex-direction:column;

}

}

/*==============================
   APP CARDS & PLAY STORE
==============================*/

.project-card.app .project-image{
    display:flex;
    justify-content:center;
    align-items:center;
    background:radial-gradient(circle at center, rgba(0,212,255,.15) 0%, rgba(8,17,31,.95) 75%);
    padding:20px;
}

.project-card.app .project-image img.app-icon{
    width:130px;
    height:130px;
    max-width:130px;
    max-height:130px;
    object-fit:cover;
    border-radius:26px;
    box-shadow:0 10px 25px rgba(0,0,0,.5), 0 0 25px rgba(0,212,255,.3);
    border:1px solid rgba(255,255,255,.12);
    transition:transform .4s ease, box-shadow .4s ease;
}

.project-card.app:hover .project-image img.app-icon{
    transform:scale(1.08);
    box-shadow:0 15px 35px rgba(0,0,0,.6), 0 0 35px rgba(0,212,255,.5);
}

.project-links a.playstore-btn,
.project-links .playstore-btn{
    background:linear-gradient(135deg, var(--accent) 0%, #0099ff 100%) !important;
    color:#0a192f !important;
    font-weight:700 !important;
    display:inline-flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
    box-shadow:0 4px 15px rgba(0,212,255,.3) !important;
    border:none !important;
}

.project-links a.playstore-btn:hover,
.project-links .playstore-btn:hover{
    background:linear-gradient(135deg, #38e1ff 0%, #00b4ff 100%) !important;
    box-shadow:0 6px 25px rgba(0,212,255,.55) !important;
    transform:translateY(-2px) !important;
    color:#0a192f !important;
}