:root {
    --midnight-blue: #05111f; /* Darkened base color */
    --navy-blue: #05111f;     /* Slightly lighter variant */
    --desert-gold: #E6AF2E;
    --soft-mint: #B8D8BA;
    --white: #FFFFFF;
    --light-gray: #f9fafb;
    --dark-text: #333;
}
#main-nav.active {
    display: flex;
}

.mobile-menu-btn.active {
    color: var(--desert-gold);
}

    #main-header .logo img {
        max-height: 60px; /* Adjust the height as needed */
        width: auto; /* Maintain aspect ratio */
    }

    #main-header {
        display: flex;
        align-items: center;
        padding: 10px 20px; /* Adjust padding if necessary */
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* New Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

/* Example Usage */
.hero h1 {
    animation: fadeIn 1.5s ease forwards;
}

.section-image {
    animation: slideInLeft 1s ease forwards;
}

.section-content {
    animation: slideInRight 1s ease forwards;
}


body {
    overflow-x: hidden;
}

.arabic {
    font-family: 'Noto Kufi Arabic', sans-serif;
    direction: rtl;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    padding: 1.5rem 5%;
    background: var(--midnight-blue); /* Changed from white to dark */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3); /* Darker shadow */
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.98); /* Darker with transparency */
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--desert-gold); /* Changed from midnight-blue to gold */
    color: var(--midnight-blue); /* Text color to dark */
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.logo:hover .logo-circle {
    transform: rotate(15deg);
    background: var(--desert-gold);
}

.logo-text {
    font-weight: 700;
    color: var(--white);
        font-size: 1.2rem;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: rgba(255,255,255,0.9); /* White links */
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--desert-gold);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--desert-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
  }
/* Hero Section */
.hero {
    padding: 180px 5% 100px;
    background: linear-gradient(135deg, var(--midnight-blue), #0a1120);
    color: var(--desert-gold);
    text-align: center;
    position: relative;
    overflow: hidden;

}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1350') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Section Common Styles */
.section {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section-content {
    max-width: 600px;
}

.section-icon {
    font-size: 3.5rem;
    color: var(--desert-gold);
    margin-bottom: 1.5rem;
}

.section-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

h2 {
    font-size: 2.8rem;
    color: var(--midnight-blue);
    margin-bottom: 1.5rem;
    line-height: 1.3;

}

h3 {
    font-size: 1.5rem;
    color: var(--midnight-blue);
    margin-bottom: 1rem;
}

p {
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    line-height: 1.6;
    list-style: none;
}

/* CTA Button */
.cta-button {
    padding: 1rem 2rem;
    background: var(--desert-gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.cta-button:hover {
    background: #e05a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 2.5rem;
    color: var(--midnight-blue);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-item:hover {
    opacity: 1;
    color: var(--desert-gold);
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input, textarea {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--desert-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Testimonials */
.testimonials {
    padding: 6rem 5%;
    background: var(--midnight-blue);
    color: var(--white);
    text-align: center;
}

.testimonials h2 {
    color: var(--white);
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    backdrop-filter: blur(5px);
}

.testimonial-card p {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-name {
    font-weight: 600;
    color: var(--white);
}

.client-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: var(--navy-blue);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-circle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--desert-gold);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.8);
}

.contact-item i {
    color: var(--desert-gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--desert-gold);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    #main-nav {
        background: var(--midnight-blue);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 2rem;
        display: none;
    }
    
    nav a {
        margin: 1rem 0;
        color: rgba(255,255,255,0.9);
    }
    .section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 6rem 5%;
    }

    .section-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .tech-stack {
        justify-content: center;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #main-nav {
          display: none;
          flex-direction: column;
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background: rgba(0, 0, 0, 0.9);
          padding: 1rem;
          text-align: center;
  
    .hero {
        padding: 150px 5% 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-icon {
        font-size: 2.8rem;
    }
    #main-nav.active {
        display: flex;
      }

      #main-nav a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .mobile-menu-btn {
        display: block;
      }

      /* Three dots styling */
      .fa-ellipsis-vertical {
        vertical-align: middle;
      }
}}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}


