/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    --primary: #6ab0e6; /* Luminous Light Blue from Logo */
    --primary-dark: #4b8cc0;
    --dark-bg: #112240; /* Navy Blue from Logo */
    --dark-light: #1a2f54;
    --gray-bg: #f5f7fa;
    --text-main: #333333;
    --text-light: #a8b2d1;
    --text-white: #e6f1ff;
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-main: 'Cairo', sans-serif;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --glow: 0 0 15px rgba(106, 176, 230, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-white);
}

.bg-gray {
    background-color: var(--gray-bg);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary);
    text-shadow: var(--glow);
}

.bg-dark .section-header h2 {
    color: var(--text-white);
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
    box-shadow: var(--glow);
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn i {
    margin-right: 8px;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--dark-bg);
    color: var(--dark-bg);
}

.btn-outline-dark:hover {
    background-color: var(--dark-bg);
    color: #fff;
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-logo {
    text-align: center;
}

.loader-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--primary);
    animation: loading 1s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-3d-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    perspective: 1000px;
}

.logo-3d-wrapper h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    transition: var(--transition);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    transition: transform 0.3s;
    text-shadow: var(--glow);
}

.logo:hover .logo-icon {
    transform: rotateY(180deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary);
    text-shadow: var(--glow);
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.slogan {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    border-right: 3px solid var(--primary);
    padding-right: 15px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.badge i {
    color: var(--primary);
    margin-left: 5px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item span {
    color: #777;
    font-weight: 600;
}

/* 3D MULTI-LAYERED VISUAL */
.about-3d-visual {
    position: relative;
    height: 400px;
    width: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.layer-1 { transform: translateZ(-50px); }
.layer-2 { transform: translateZ(0px); }
.layer-3 { transform: translateZ(50px); }
.layer-4 { transform: translateZ(100px); }

.glass-card {
    width: 80%;
    height: 80%;
    background: rgba(10, 14, 23, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(10, 14, 23, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.abstract-shape {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.8;
}

.logo-big {
    font-size: 8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 25px rgba(106, 176, 230, 0.8));
}

.text-layer {
    flex-direction: column;
    text-align: center;
}

.text-layer h3 {
    font-size: 2rem;
    color: var(--dark-bg);
    background: rgba(255,255,255,0.8);
    padding: 5px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    backdrop-filter: blur(5px);
}

.text-layer span {
    background: var(--primary);
    color: #fff;
    padding: 2px 15px;
    border-radius: 30px;
    font-weight: 600;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-light);
    border-radius: 10px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    transform: translateX(100%);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 176, 230, 0.2);
    border-color: rgba(106, 176, 230, 0.5);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(106, 176, 230, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.read-more i {
    margin-right: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* =========================================
   WHY US SECTION
========================================= */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-list li {
    display: flex;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(106, 176, 230, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-left: 20px;
    flex-shrink: 0;
}

.features-list h4 {
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.features-list p {
    color: #666;
}

.why-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--gray-bg), #e2e8f0);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.f-card {
    position: absolute;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--dark-bg);
    animation: float 6s ease-in-out infinite;
}

.f-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.f-card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.f-card-2 {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.f-card-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    background-color: var(--dark-light); /* Fallback */
}

.bg-p1 { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=600&q=80'); }
.bg-p2 { background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=600&q=80'); }
.bg-p3 { background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=600&q=80'); }
.bg-p4 { background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=600&q=80'); }


.project-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.2) 100%);
}

.project-info {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-info span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.project-info h4 {
    font-size: 1.2rem;
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

.project-item:hover .project-info {
    transform: translateY(0);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    margin-bottom: 20px;
}

.contact-list i {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

.contact-list strong {
    display: block;
    color: var(--dark-bg);
}

.contact-list span {
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    background: #fcfcfc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-block {
    width: 100%;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-newsletter h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 0 4px 4px 0;
    outline: none;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .about-grid, .why-grid, .contact-wrapper, .footer-grid {
        grid-template-columns: 1fr;
    }
    .slide-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 30px; }
    
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content h3 { font-size: 1.5rem; }
}

 / *   P R O J E C T S   L I S T   V I E W   * / 
 . p r o j e c t s - l i s t - g r i d   { 
         b a c k g r o u n d :   # f f f ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         p a d d i n g :   4 0 p x ; 
         b o x - s h a d o w :   0   1 5 p x   4 0 p x   r g b a ( 0 , 0 , 0 , 0 . 0 5 ) ; 
 } 
 . c l e a n - p r o j e c t s - l i s t   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 3 0 0 p x ,   1 f r ) ) ; 
         g a p :   2 0 p x ; 
 } 
 . c l e a n - p r o j e c t s - l i s t   l i   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   f l e x - s t a r t ; 
         p a d d i n g :   1 5 p x ; 
         b a c k g r o u n d :   v a r ( - - g r a y - b g ) ; 
         b o r d e r - r a d i u s :   8 p x ; 
         t r a n s i t i o n :   v a r ( - - t r a n s i t i o n ) ; 
         b o r d e r - r i g h t :   4 p x   s o l i d   t r a n s p a r e n t ; 
 } 
 . c l e a n - p r o j e c t s - l i s t   l i : h o v e r   { 
         b a c k g r o u n d :   # f f f ; 
         b o x - s h a d o w :   0   5 p x   1 5 p x   r g b a ( 1 0 6 ,   1 7 6 ,   2 3 0 ,   0 . 1 5 ) ; 
         b o r d e r - r i g h t - c o l o r :   v a r ( - - p r i m a r y ) ; 
         t r a n s f o r m :   t r a n s l a t e X ( - 5 p x ) ; 
 } 
 . c l e a n - p r o j e c t s - l i s t   l i   i   { 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         m a r g i n - l e f t :   1 5 p x ; 
         f o n t - s i z e :   1 . 2 r e m ; 
         m a r g i n - t o p :   3 p x ; 
         t e x t - s h a d o w :   v a r ( - - g l o w ) ; 
 } 
  
 