*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "Poppins",sans-serif;
    margin: 0;
    padding: 0;
    color:#333;
      background: linear-gradient(-45deg, #4f46e5, #6d28d9, #3b82f6, #8b5cf6);


}

.main-header {
    background: #0f172a;
    color: #fff;
    padding: 1rem 0;
    position:sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 1rem;


}

.logo{
    background: white;
    color: #4f46e5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    color:#fff;
    font-size: 1.5rem;
    font-weight:700;
    text-decoration: none;
}

/* Nav Links*/

.nav-links {
    list-style: none;
    display:flex;
    gap: 2rem;
    margin:0;
    padding:0;

}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;

}

.nav-links a:hover{
    color: #38bdf8;
    transform:translateX(4px);
    text-decoration: none;

}

.nav-links a.active {
    /*border-bottom: 2px solid white ;*/
    padding-bottom:3px;
    transition: all 0.3s ease;
}


.has-submenu{
    position: relative;
}

.submenu {
    position: absolute;
    top: 1.2rem;
    left: 0;
    background: #1e293b;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 100;
}

.submenu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #e2e8f0;

}

.submenu li a:hover{
    background: #334155;
    color: #38bdf8;

}

.has-submenu:hover .submenu{
    display: block;

}

/* Hamburger*/
.haeader-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;

}

.hamburger span{
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/*transform hamburger X*/

/*hero section*/
.hero {
    height: 90vh;
    background: linear-gradient(-45deg, #4f46e5, #6d28d9, #3b82f6, #8b5cf6);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;

}

.hero-content {
    max-width: 700px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn-primary {
    background: white;
    color: #4f46e5;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover{
    transform: scale(1.05);
    background: #e0e7ff;
}

/* About us*/
.about, .services, .cta {
    background: #e0e7ff;
    width: 90%;
    max-width: 1100px;
    margin: 4rem auto;
    text-align:  center;
    border: 1rem;
    border-radius: 10px;
}
.about p {
    
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.6;
    color: #555;
}
/*team section*/
.team-section {
    background: #f8fafc;
    padding:  80px 20px;
    text-align: center;

}

.team-section h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.team-intro {
    color: #475569;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.team-grid  {
    display: #fff;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    justify-content: center;    
}

.team-member {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover{
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #38bdf8;

}

.team-member h3{
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.team-member .role  {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;

}


/*social icons*/
.social-links a {
    color:#0f172a;
    font-size: 1.1rem;
    margin: 0 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover{
    color: #38bdf8;
    transform: scale(1.2);
}




/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 2rem;
    margin-top: 2rem;
    border: 1rem;
    border-radius: 10px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.10),
    0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-card:hover{
    transform: translateY(-10px);
}
/* CTA */
.cta {
    background: white;
 
    padding: 4rem 2rem;
    border-radius:20px;
}

.cta h2 {
    margin-bottom: 2rem;
}

.cta-section {
    text-align: center;
    background: linear-gradient(to right, #0ea5e9, #38bdf8);
    color: #fff;
    padding: 80px 20px;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    background: #fff;
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-btn:hover{
    background: #0f172a;
    color: #fff;
}

/*contact page*/

.contact {
    background: linear-gradient(90deg, #4f46e5, #6d28d9);
    background-size: 400% 400%;
    width: 90%;
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    border: 1px solid #4f46e5;
    border-radius: 20px;
}

.contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: white;
    line-height: 1.6;

}

.contact-form{
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align:left;
   

}

.contact-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-top: 40px;
}

.contact-image {
    flex: 1;
}

.contact-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    object-fit: cover;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-status{
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.form-status.loading {
    color: #6b7280;
}

.form-status.success{
    color: #10b981;
    background: #ecfdf5;
    padding: 0.5rem;
    border-radius: 8px;
}

.form-status.error {
    color: #ef4444;
    background: #fee2e2;
    padding: 0.5rem;
    border-radius: 8px;
}


label {
    display: block;
    font-weight: 600;
    margin-bottom:0.5rem;
}

input,textarea {
    width: 100%;
    padding:0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s;

}

input.focus, textarea:focus{
    border-color: #4f46e5;
    outline:none;

}

button.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
}

.success-msg {
    color: #10b981;
    background:#ecfdf5;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;

}

.error-msg{
    color: #ef4444;
    background:#fee2e2;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* About Us */
.about-hero {
     background: linear-gradient(90deg, #4f46e5, #6d28d9);;
    color: #fff;
    text-align: center;
    padding: 100px 20px 80px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;

}

.about-hero p {
    font-size: 1.2rem;
    color:#cbd5e1;

}
.about-content {
    padding: 60px 20px;
    background: #f8fafc;
    text-align: center;
}

.about-grid {
    max-width: 900px;
    margin: 0 auto;
}

.about-grid h2{
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 40px; /*space before each new heading*/
    margin-bottom: 10px; /*tighter space between h2 and p*/
}
.about-grid p {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.7;
    margin: 0 auto 20px; /*small spacing after each paragraph*/
    max-width: 700px;
}

.about-text {
    text-align: left;
}
.about-text h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 10px;
}
.about-text p {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 25px;
}
.about-image {
    display: flex;
    justify-content: center;
}
.about-image img{
    width: 100%;
    max-width: 500px auto;
    max-height: 500px;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Values section*/

.about-values {
    background: #0f172a;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.about-values h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:30px;
    
}

.value-box {
    background: #1e293b;
    border-radius: 1rem;
    padding: 30px 20px;
    transition: transform 0.3s ease;
    box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),  /* white outline */
    0 8px 25px rgba(255, 255, 255, 0.2); /* glow */
}

.value-box:hover {
    transform: translateY(-8px);
}



/* fade section */
.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Web Development*/
.webdev-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.webdev-hero  .hero-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;    
    background-image: url('../images/webdev-bg.jpg');    
    /*background-color: black;*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.7);
    z-index: 1;
}

.webdev-hero .hero-content {
    position: relative;
    z-index: 2;
}

.webdev-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.webdev-hero p{
    font-size:  1.2rem;
    color: #cbd5e1;
}

/* Overview */
.service-overview {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
}

.service-overview h2{
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 20px;
}

/* Grid */
.service-grid {
    background: #fff;
    padding: 80px 20px;
}

.service-grid h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #0f172a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

.card {
    background: #f8fafc;
    border-radius: 1rem;
    text-align:center;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

/* Process */
.development-process{
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.development-process h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step:hover {
    transform: translateY(-8px);
}

.step span{
    display: inline-block;
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

/* App Development */
.appdev-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.appdev-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/appdev-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.5);
    z-index: 1;
}
.appdev-hero .hero-content {
    position: relative;
    z-index: 2;
}

.appdev-process {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 80px 20px;

}

.appdev-process h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

.appdev-process .step{
    background: #1e293b;
    border-radius: 1rem;
    padding: 30px 20px;
    transition: tarnsform 0.3s ease;
}

.appdev-process .step:hover{
    transform: translateY(-8px);
}

.appdev-process .step span{
    display: inline-block;
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom:  10px;
}

/* Potfolio page */

.portfolio-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;

}

.portfolio-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;  
    width: 100%;
    height: 120%;
    background-image: url('../images/portfolio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.5);
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* FIlter Menu */
.portfolio-filter {
    text-align: center;
    background: #f8fafc;
    padding: 40px 0;
}

.filter-menu {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;

}

.filter-menu li {
    padding: 10px 20px;
    border-radius: 25px;
    background: #e2e8f0;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;    
}

.filter-menu li.active, .filter-menu li:hover {
    background: #0ea5e9;
    color: #fff;
}

/* portfolio grid */

.portfolio-grid {
    background: #fff;
    padding: 80px 20px;
}

.portfolio-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgb(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:  opacity 0.3s ease;
}

.project-card:hover .overlay{
    opacity: 1;
}

.overlay p {
    color: #38bdf8;
    font-weight: 600;
}










/* Footer */

.footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

@keyframes gradientMove {
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}
/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.4s ease;

}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animate to X when active */
.hamburger.active {
    transform: rotate(180deg) scale(1.05);
    transition: transform 0.3s ease-out;
}

.hamburger.active:hover {
    transform: rotate(180deg) scale(1.1);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}



/*Mobile styles*/
@media (max-width: 768px){
    .hamburger {
        display: flex;

    }

    .navbar {
        position: absolute;
        /*top: 70px; left: 0; width: 100%; display: flex; align-items:  center;*//*puts the nav left side of the screen*/
        top: 100%;
        right: 0;
        width: auto;
        min-width: 200px;        
        background: rgba(15, 23, 42, 0.95); /*slightly transparent*/
        backdrop-filter: blur(10px);
        border-radius:  0.75rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        flex-direction:  column;
        z-index: 1000;

    }
    /*smooth open animation*/
    .navbar.open {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction:  column;
        align-items:  flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.6rem 0;
        color: #fff;
        text-decoration: none;
        transition: colorr 0.2s ease, transform 0.2s ease;
    }

    .nav-links a:hover {
        color: #38bdf8;
        transform: translateX(4px);
        text-decoration: none;
    }

    .has-submenu:hover .submenu{
        display: block;

    }

    /*overlay backgorund*/
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgb(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 900;

    }

    .menu-overlay.show{
        display: block;
        opacity: 1;
    }

    .submenu {
        position: static;
        background: #1e293b;
        display: none;
        transition: all 0.3s ease;
    }

    .submenu.open {
        display: block;
    }

    .has-submenu > a::after {
        content:  "▸";
        margin-left: 5px;
        transition: transform 0.3s ease;

    }

    .has-submenu.open > a::after {
        content: '▾';
    }

    .hamburger.active span:nth-child(1){
        transform:rotate(45deg) translateY(5px, 5px);
        
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;

    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translateY(6px, -6px);
    }

    .haeader-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align:  center;
    }
    .team-grid{
        gap: 20px;
    }

    .team-member{
        padding: 20px 15px;
    }

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

    .contact-image img {
     max-width: 100%;
    }


}