:root {
    --primary: #00d4ff;
    --secondary: #0066ff;
    --accent: #7b2cbf;
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-lg: 0 20px 60px rgba(0, 212, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==================== */
/* Cairo Font Local Import */
/* ==================== */

@font-face {
  font-family: 'Cairo';
  src: url('/fonts/Cairo-Regular.woff2') format('woff2'),
       url('/fonts/Cairo-Regular.woff') format('woff');
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap; /* مهم لتجنب FOUT */
}

@font-face {
  font-family: 'Cairo';
  src: url('/fonts/Cairo-Bold.woff2') format('woff2'),
       url('/fonts/Cairo-Bold.woff') format('woff');
  font-weight: 700; /* Bold */
  font-style: normal;
  font-display: swap;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

img {
    max-width: 80%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px)
}

.section {
    padding: 120px 0;
    position: relative
}

.cursor,
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease
}

.cursor {
    background: var(--primary);
    transform: translate(-50%, -50%)
}

.cursor-follower {
    border: 2px solid var(--primary);
    background: #fff0;
    transform: translate(-50%, -50%) scale(2);
    transition: transform 0.3s ease
}

body.cursor-hover .cursor {
    transform: translate(-50%, -50%) scale(1.5)
}

body.cursor-hover .cursor-follower {
    transform: translate(-50%, -50%) scale(3)
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    padding-bottom: 0px;
    z-index: 1000;
    background: rgb(10 14 39 / .8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(255 255 255 / .05);
    transition: var(--transition)
}

.navbar.scrolled {
    padding: 20px 0;
    padding-bottom: 0px;
    background: rgb(10 14 39 / .95)
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nav-brand .logo-text {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    background-clip: text
}




.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease
}

.nav-link:hover {
    color: var(--primary)
}

.nav-link:hover::after {
    width: 100%
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px
}

.hero {
        min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 115px;
    padding-bottom: 51px;
   
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px
}

.hero-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0
}

.hero-title {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    overflow: hidden
}

.hero-title .line {
    display: block;
    overflow: hidden
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%)
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0
}

.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .3;
    animation: float 20s infinite ease-in-out
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: 10%;
    right: -10%
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 50%;
    right: 10%;
    animation-delay: -7s
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 10%;
    right: -5%;
    animation-delay: -14s
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg)
    }
    50% {
        transform: translateY(-50px) rotate(180deg)
    }
}

.scroll-indicator {
    position: absolute;
    bottom: -35px !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary)
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDown 2s infinite
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(-20px)
    }
    50% {
        opacity: 1
    }
    100% {
        opacity: 0;
        transform: translateY(20px)
    }
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid #fff0;
    position: relative;
    overflow: hidden
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--text-primary)
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / .2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary)
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-darker)
}

.section-header {
    text-align: center;
    margin-bottom: 80px
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
    display: block
}

.section-title {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    background-clip: text
}

@media (max-width:768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: rgb(10 14 39 / .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: right 0.4s ease;
        border-left: 1px solid rgb(255 255 255 / .05)
    }
    .nav-menu.active {
        right: 0
    }
    .menu-toggle {
        display: flex
    }
    .hero-visual {
        width: 100%;
        opacity: .3
    }
    .section {
        padding: 80px 0
    }
    .hero-cta {
        flex-direction: column;
        align-items: flex-start
    }
    .btn {
        width: 100%;
        text-align: center
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 50px
    }
    .section-title {
        font-size: 35px
    }
}

.floating-actions {
    position: fixed;
    bottom: 10px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--bg-darker);
    background: var(--gradient-2);
    box-shadow: var(--shadow-lg);
    transition: var(--transition)
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05)
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, var(--primary), #25D366)
}

.floating-btn.call {
    background: linear-gradient(135deg, var(--secondary), var(--primary))
}

@media (max-width:480px) {
    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 22px
    }
    .floating-actions {
        bottom: 10px;
        left: 20px
    }
}

/* ===============================
/* =============================== */
/* Projects Filters Buttons */
/* =============================== */

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.project-filter-btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(0 212 255 / 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.project-filter-btn:hover::before {
    width: 200px;
    height: 200px;
}

.project-filter-btn:hover {
    color: var(--bg-darker);
    background: var(--primary);
}

.project-filter-btn.active {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: var(--shadow-lg);
}

@media (max-width:768px) {
    .projects-filters {
        gap: 10px;
    }
    .project-filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}


.project-card {
    display: flex;
    flex-direction: column;
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    padding-bottom: 0px !important;
    
}

/* نخلي الزر دايمًا في النص تحت */
.project-card .btn {
margin-top: 30px;
align-self: center;    /* توسيط أفقي */
}

/* =============================== */
/* Projects Filters Buttons */
/* =============================== */

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.project-filter-btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(0 212 255 / 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.project-filter-btn:hover::before {
    width: 200px;
    height: 200px;
}

.project-filter-btn:hover {
    color: var(--bg-darker);
    background: var(--primary);
}

.project-filter-btn.active {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: var(--shadow-lg);
}

@media (max-width:768px) {
    .projects-filters {
        gap: 10px;
    }
    .project-filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/* =============================== */
/* Load More Button Container */
/* =============================== */

.load-more-container {
    display: flex;
    justify-content: center; /* توسيط الزرار أفقيًا */
    margin-top: 40px;
}

.load-more-container #loadMoreBtn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Magnetic hover ripple effect */
.load-more-container #loadMoreBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.load-more-container #loadMoreBtn:hover::before {
    width: 300px;
    height: 300px;
}

@media (max-width:768px) {
    .load-more-container {
        margin-top: 30px;
    }
    .load-more-container #loadMoreBtn {
        width: 80%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width:480px) {
    .load-more-container #loadMoreBtn {
        width: 90%;
        font-size: 14px;
    }
}

