html{
    scroll-behavior: smooth;
}
body{
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #020816;
    color: #94a3b8;
}
h1,h2,h3,h4,h5,h6,p,img,span,ul{
    margin: 0;
    padding: 0;
}
span{
    color: rgb(59, 130, 246);
}
.pt{
    padding-top: 6%;
}
.pb{
    padding-bottom: 2%;
}
.container{
    display: flex;
    padding: 0% 15%;
}
h1{
    font-size: 3.5rem;
    color: white;
    margin-bottom: 3%;
}
h2{
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2%;
}
h3{
    color: white;
    margin-bottom: 1.2%;
    font-size: 1.5rem;
}
h4{
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2%;
}
.banner .sub-heading{
    font-weight: 100;
    font-size: 1.5rem;
    margin-bottom: 3.5%;
}
.heading-div{
    padding-left: 15%;
    padding-right: 15%;
    margin-bottom: 3%;
}
.heading-div p{
    width: 60%;
}
a{
    text-decoration: none;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 10%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #020816;
}
nav a{
    color: white;
    transition: 0.3s ease;
}
nav img{
    width: 25px;
    transition: 0.3s ease;
}
nav img:hover{
    transform: scale(1.08);
}
nav .logo{
    font-size: 1.5rem;
    font-weight: 600;
}
nav ul{
    list-style: none;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 30px;
}
nav ul li a:hover{
    color:#3b82f6;
}
.banner .container{
    display: flex;
    gap: 30px;
    min-height: 70vh;
    align-items: center;
}
.banner .container .left-part, .banner .container .right-part{
    flex: 1;
}
.banner .links{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5%;
}
.blue-button{
    color: black;
    padding: 2% 3%;
    display: inline-block;
    border-radius: 10px;
    background-color: oklch(62.31% 0.1881 259.83);
    box-shadow: -3px -1px 17px 0px rgba(59,130,246,0.75);
    -webkit-box-shadow: -3px -1px 17px 0px rgba(59,130,246,0.75);
    -moz-box-shadow: -3px -1px 17px 0px rgba(59,130,246,0.75);
    transition: 0.3s;
}
.blue-button:hover{
    transform: scale(1.08);
}
.view-projects{
    padding: 2% 3%;
    border: solid 1px rgb(90, 89, 89);
    border-radius: 10px;
    color: white;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: 0.3s;
}
.view-projects:hover{
    transform: scale(1.08);
}
.banner .right-part{
    display: flex;
  justify-content: center;
  align-items: center;
}
.banner .card {
  border-radius: 16px;
  padding: 30px;
  color: white;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.banner .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dots {
  display: flex;
  gap: 8px;
}
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }    
.green { background: #27c93f; }

.filename {
  color: #94a3b8;
  font-size: 14px;
}
.code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 15px;
}
.comment { color: #64748b; }
.pink { color: #ec4899; }
.blue { color: #38bdf8; }
.purple { color: #a855f7; }
.green { color: #22c55e; }

/***about section***/
.about .left-area {
    flex: 0 0 70%;
}
.about .container{
    display: flex;
    gap: 35px;
}
.about .edu-exp{
    display: flex;
    margin-top: 3%;
    gap: 40px;
}
.about .edu-exp p{
    line-height: 1.7;
}
.edu-exp h3{
    margin-bottom: 3.2%;
}
.about .edu-exp span{
    font-weight: bold;
    color: white;
}
.about .edu, .about .exp{
    padding: 3%;
    flex: 1;
    border: solid 1px rgb(100, 100, 100);
    border-radius: 20px;
}   
.about img{
    width: 50%;
    border-radius: 70px;
    margin-bottom: 5%;
}
.about ul{
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 12% 0;
}
.about ul li{
    padding: 2% 0 0 0;
    text-align: center;
    border: solid 1px rgb(84, 84, 84);
    background-color: black;
    border-radius: 10px;
}

/***projects-section***/

.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.projects .container{
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.projects .container a{
    text-decoration: none;
    color:#94a3b8;
}
.projects .card{
    flex: 0 0 30%;
    border: solid 1px rgb(84, 84, 84);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}
.projects .card:hover{
    transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(196, 195, 195, 0.2);
}
.projects .card1{
    background-image: url('../images/project1/outer.jpg') !important;
}
.projects .card2{
    background-image: url('../images/project2/outer.jpg') !important ;
}
.projects .card3{
    background-image: url('../images/project3/outer.jpg') !important;
}
.projects .card4{
    background-image: url('../images/project4/outer.jpg') !important;
}
.projects .card5{
    background-image: url('../images/project5/outer.jpg') !important;
}
.projects .card6{
    background-image: url('../images/project6/outer.jpg') !important;
    background-position:center center;
}
.projects .card7{
    background-image: url('../images/project7/outer.jpg') !important;
}
.projects .card8{
    background-image: url('../images/project8/outer.jpg') !important;
}
.projects .card-img{
    /* background-image: url('../images/thumnail.jpg'); */
    background-size: cover;
    background-position:center;
    height: 25vh;
    background-image: url('../images/thumnail.jpg');
}
.projects .card-content{
    padding: 5%;
}

/****contact-section***/
.contact .container{
    gap: 30px;
}
.contact .socials{
    flex: 0 0 40%;
}
.contact .social-box{
    display: flex;
    gap: 15px;
    margin-bottom: 5%;
    margin-top: 5%;
}
.contact .social-box img{
    width: 25px;
}
.contact .social-box span{
    color: white;
    font-weight: 600;
}
.contact .links{
    display: flex;
    gap: 30px;
}
.contact .links img{
    width: 25px;
    background-color: #1e293b;
    border-radius: 50px;
    padding: 15px;
    transition: 0.3s;
}
.contact .links img:hover{
    opacity: 0.60;
}
.form{
    flex: 0 0 60%;
    border: solid 1px rgb(84, 84, 84);
    padding: 3%;
    border-radius: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.row {
  display: flex;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

label {
  color: white;
  font-weight: 600;
}

input,
textarea {
  background: #020617;
  border: solid 1px rgb(84, 84, 84);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
}

textarea {
  min-height: 140px;
  resize: none;
}

input:focus,
textarea:focus {
  border-color: #3b82f6;
}


.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  border-radius: 3%;
  height: 100%;
  object-fit: cover;   /* fills container without stretching */
}

.hero-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color:#fff !important;
}

.type {
  display: inline-block;
  white-space: nowrap;
  border-right: 3px solid #fff;
  padding-right: 6px;
  color:#fff !important;
  white-space: nowrap;
}


/*project1 css*/
.case-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 130px 8% 100px;
    gap: 60px;
}
.hero-text h1 {
    font-size: 47px;
}
.subtitle {
    margin: 20px 0;
    color: #94a3b8;
    font-size: 17px;
    font-weight: 500;
    line-height: 28px;
}
.hero-tags span {
    background: #1e293b;
    padding: 15px 14px;
    border-radius: 30px;
    margin-right: 10px;
    font-size: 13px;
}
.hero-image img {
    width: 100%;
    width: 460px;
    border-radius: 20px;
    box-shadow: 0 40px 70px rgba(0,0,0,0.5);
}
.section {
    padding: 61px 8%;
}
.narrow {
    max-width: 800px;
    margin: auto;
    text-align: center;
}
.narrow p{
    line-height:28px;
}
.split {
    display: flex;
    gap: 60px;
}
.split div {
    flex: 1;
    background: #111827;
    padding: 30px;
    border-radius: 20px;
}
.split p{
    line-height:28px;
}
.process .timeline {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
    margin-top: 50px;
}
.process .timeline h4{
    margin:5px 0px 10px 0px;
}
.step {
    background: #1e293b;
    padding: 25px;
    border-radius: 16px;
    position: relative;
}
.step span {
    font-size: 28px;
    color: #3b82f6;
    font-weight: bold;
}
.features {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.feature-box {
    background: linear-gradient(145deg,#1e293b,#0f172a);
    padding: 30px;
    border-radius: 20px;
    max-width: 280px;
}
.cta {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg,#1e3a8a,#0f172a);
}
.cta a {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: #fff;
    color: #111;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}
@media(max-width:1024px){
.case-hero { 
    flex-direction: column; text-align: center;
    padding: 80px 8% 100px; 
}
.split { 
    flex-direction: column; 
}
.process .timeline {
    grid-template-columns: repeat(2,1fr);
}
.features { 
    flex-direction: column; align-items: center; 
}
.gallery { 
    flex-direction: column;
}
.gallery img {
    width: 100%; 
    }
}
@media(max-width:600px){
.process .timeline { 
    grid-template-columns: 1fr; 
}
.hero-text h1 { 
    font-size: 36px; 
}
}
.impact-stats {
    display: flex;
    justify-content: center;
    gap: 120px;
    padding: 100px 8%;
    text-align: center;
    background: #0f172a;
}
.stat h3 {
    font-size: 40px;
    color: #38bdf8;
}
.before-after {
    padding: 100px 8%;
    text-align: center;
}
.comparison {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.comparison img {
    width: 100%;
    border-radius: 16px;
}
.design-system {
    padding: 100px 8%;
    background: #0f172a;
}
.design-system  h4{
    margin-bottom: 15px;
}
.design-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}
.colors span {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}
.testimonial {
    padding: 120px 20px;
    text-align: center;
    font-style: italic;
    font-size: 20px;
    max-width: 700px;
    margin: auto;
}
.testimonial span {
    display: block;
    margin-top: 15px;
    font-style: normal;
    color: #94a3b8;
}
.next-project {
    padding: 100px 8%;
    text-align: center;
}
.next-project h3{
    margin-top:4px;
}
.next-project a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    padding: 30px 60px;
    border-radius: 20px;
    background: linear-gradient(135deg,#2563eb,#1e293b);
    transition: 0.3s;
}
.next-project a:hover {
    transform: translateY(-5px);
}
@media(max-width:900px){
.impact-stats { 
    flex-direction: column; gap: 40px; 
}
.persona-card {
    flex-direction: column; text-align: center; 
}
.comparison {
     flex-direction: column; 
    }
.design-grid { 
    flex-direction: column;
     }
}

.case-hero a{
    font-size:1rem;
}
.case-hero h1{
    margin:0;
}

/* screenshots section */
.screenshots {
    text-align: center;
}

.screenshots h2 {
    margin-bottom: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.shot {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.shot img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.shot:hover img {
    transform: scale(1.05);
}

/* responsive */
@media (max-width: 992px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 10px;
}

.close,
.prev,
.next {
    position: absolute;
    color: white;
    font-size: 35px;
    cursor: pointer;
    user-select: none;
}

.close {
    top: 30px;
    right: 40px;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.prev:hover,
.next:hover,
.close:hover {
    opacity: 0.7;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #09091f;
  color: #a1a1aa;
  padding: 64px 80px 24px;
  font-family: 'Inter', sans-serif;
}

/* ===== CONTAINER ===== */
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f1f2b;
}

/* ===== BRAND ===== */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.footer-brand h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.footer-brand p {
  font-size: 13px;
  font-weight: 400;
  color: #71717a;
  margin: 4px 0 0;
}

/* ===== LINKS ===== */
.footer-links h4 {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
  color: #a1a1aa;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ===== BOTTOM ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: #71717a;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 48px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== NEW CASE STUDY UI ===== */

.image-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.image-content img {
    width: 40%;
    border-radius: 16px;
}

.image-content div {
    flex: 1;
}

.image-content.reverse {
    flex-direction: row-reverse;
}

/* DARK SECTION */
.section.dark {
    background: #0f172a;
}

/* TOOLS */
.tools-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.tool {
    background: #1e293b;
    padding: 15px 25px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool img{
    width: 50px;
    display: block;
}

/* PROCESS GRID */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
}

.process-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.process-card h4 {
    padding: 15px;
}

.process-card p {
    padding: 0 15px 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .image-content {
        flex-direction: column;
    }

    /* FORCE IMAGE ON TOP */
    .image-content img {
        width: 100%;
        order: -1;
    }

    .image-content div {
        order: 2;
    }

    /* IMPORTANT: override reverse */
    .image-content.reverse {
        flex-direction: column;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    nav{
        flex-direction: column;
        padding-right:3%;
        padding-left:3%;
    }
    nav ul {
        gap: 16px;
    }
    .hero-tags span {
        margin-right: 0;
        font-size: 10px;
    }
    .hero-image img {
        width: 100% !important;
    }
    .toolsec .tools-grid {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    }
}

.project .section p{
    line-height: 1.5rem;
}

.toolsec{
    text-align: center;
}

.toolsec .tools-grid{
    justify-content: center;
}


/* ================= RESPONSIVE FIXES ================= */

/* Tablets */
@media (max-width: 1024px) {

  .container {
    padding: 0 8%;
  }

  .heading-div {
    padding-left: 8%;
    padding-right: 8%;
  }

  .heading-div p {
    width: 100%;
  }

  /* Banner */
  .banner .container {
    flex-direction: column;
    text-align: center;
    margin-top: 70px;
    height:unset !important;
  }

  .banner .links {
    justify-content: center;
  }

  /* Projects */
  .projects .card {
    flex: 0 0 45%;
  }

  /* About */
  .about .container {
    flex-direction: column;
  }

  .about .left-area,
  .about .right-area {
    width: 100%;
  }

  /* Contact */
  .contact .container {
    flex-direction: column;
  }

  .contact .socials,
  .form {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .container {
    padding: 0 5%;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .banner .sub-heading {
    font-size: 1.1rem;
  }

  /* Projects → 1 column */
  .projects .card {
    flex: 0 0 100%;
  }

  /* About cards */
  .about .edu-exp {
    flex-direction: column;
  }

  /* Form rows */
  .row {
    flex-direction: column;
  }

  /* Video */
  .video-wrapper {
    max-width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {

  h1 {
    font-size: 1.6rem;
  }

  .blue-button,
  .view-projects {
    width: 100%;
    text-align: center;
  }

  .banner .links {
    flex-direction: column;
  }

  nav img {
    width: 20px;
  }
}