body{
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    margin:0;
}
html{
    scroll-behavior: smooth;
}
h1,h2,h3,h4,h5,h6,p,img,span,ul{
    margin: 0;
    padding: 0;
}
.button{
    font-size: 1.1rem;
    font-weight: 600;
}
a{
    text-decoration: none;
}
.container{
    padding: 0 15%;
    margin: auto;
}
.main-heading{
    font-size: 2.5rem;
    margin-bottom: 3%;
}
h2{
    font-size: 2rem;
    color: #32325d;
}
h3{
    margin-bottom: 2.5%;
    font-size: 1.5rem;
    color: #32325d;
    font-weight: 500;
}
p{
    font-size: 1.25rem;
    line-height: 1.7;
}
.logo img{
    width:3vw;
}

/****navbar***/
.home nav{
    background: #3434341c !important;
    position: fixed;
    top: 0;
    left: 0;                 /* important */
    width: 100%;
    padding: 12px 8%;
    backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;  /* VERY IMPORTANT */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links a:hover{
    opacity: 0.50;
}
.nav-links img:hover{
    opacity: 0.50;
    cursor: pointer;
}
.nav-links a{
    color: white;
    transition: 0.3s;
}
.nav-links img{
    height: 25px;
    transition: 0.3s;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero h1{
    font-family: "Ms Madi", cursive;
    font-size: 6rem;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

/* Optional dark overlay for readability */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.contact-btn{
    padding: 2% 4%;
    text-decoration: none;
    border:none;
    border-radius: 5px;
    display: inline-block;
    color: #32325d;
    font-weight: 600;
    font-size: 1rem;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/****about me section***/
/**** About Me Section ****/
.about-section {
    padding: 8% 10%;
    background-color: #ffffff; /* Or your preferred background */
}

.about-section .container {
    display: flex;
    padding-left:0;
    padding-right:0;
    align-items: center; /* Centers items vertically */
    justify-content: space-between;
    gap: 60px;
}

.left-side {
    flex: 1.2;
    text-align: left;
}

.right-side {
    flex: 1;
}

/* Typography Enhancements */
.headings {
    font-size: 2.5rem;
    font-weight: 800 !important;
    margin-bottom: 20px;
    position: relative;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.skills-title {
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.3rem;
}

/* Skills Grid (Right Side) */
.logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a clean 3x2 grid */
    gap: 20px;
}

.skill-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-box img {
    width: 60px; /* Consistent sizing */
    height: 60px;
    object-fit: contain;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }
    .left-side {
        text-align: center;
    }
    .logos {
        grid-template-columns: repeat(3, 1fr); /* Keeps grid on tablet */
    }
}

@media (max-width: 480px) {
    .logos {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on small phones */
    }
}

.projects-section {
    padding: 6% 8%;
    color: #003b56;
    text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 16px;
border: 1px solid #e3e3e3;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img {
  transform: scale(1.1);
}
.project-content {
  padding: 1.4rem;
}
.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.project-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

nav {
  background: #003b56;
  padding: 12px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo img {
  width: 45px;
}
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  opacity: 0.7;
}
.project-hero-pro {
  color: white;
  padding: 100px 0;
}

.p1 {
    position: relative;
    overflow: hidden;
}

.p1::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project1/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p1::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p1 > * {
    position: relative;
    z-index: 1;
}

/** P2 ***/
.p2 {
    position: relative;
    overflow: hidden;
}

.p2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project2/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p2 > * {
    position: relative;
    z-index: 1;
}

/**p3 **/

.p3 {
    position: relative;
    overflow: hidden;
}
.p3::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project3/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p3::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p3 > * {
    position: relative;
    z-index: 1;
}

/**p4 **/

.p4 {
    position: relative;
    overflow: hidden;
}
.p4::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project4/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p4::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p4 > * {
    position: relative;
    z-index: 1;
}


/**p3 **/

.p5 {
    position: relative;
    overflow: hidden;
}
.p5::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project5/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p5::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p5 > * {
    position: relative;
    z-index: 1;
}


/**p6 **/

.p6 {
    position: relative;
    overflow: hidden;
}
.p6::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project6/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p6::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p6 > * {
    position: relative;
    z-index: 1;
}

/**p7 **/

.p7 {
    position: relative;
    overflow: hidden;
}
.p7::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project7/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p7::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p7 > * {
    position: relative;
    z-index: 1;
}

.p8 {
    position: relative;
    overflow: hidden;
}
.p8::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/project8/blurimage.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1); /* prevents blur edge cut */
    z-index: -2;
}

.p8::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
    z-index: -1;
}

.p8 > * {
    position: relative;
    z-index: 1;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.95;
}
.hero-buttons {
  margin-top: 15px;
}
.main-btn {
  display: inline-block;
  padding: 12px 22px;
  background: white;
  color: #0369a1;
  border-radius: 6px;
  font-weight: 600;
  margin-right:10px;
  transition: 0.3s;
}
.main-btn:hover{
  opacity:0.5;
}
.outline-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.project-overview {
  padding:55px 0;
}

.project-overview h2 {
  margin-bottom: 20px;
  font-size: 32px;
}
.project-overview p{
    font-size: 18px;
}
.project-features {
  background: white;
  padding-bottom:80px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.feature-card {
  background: #f1f5f9;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}
.feature-card  h3{
  font-size: 1.2rem;
}
.feature-card  p{
    font-size:16px;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.project-tech {
  background: #ebf6fd;
  padding: 80px 0;
  text-align: center;
}
.project-tech h2 {
  font-size: 32px;
  margin-bottom: 40px;
}
.technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.technologies-circle {
  background: white;
  border-radius: 20px;
  padding: 25px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}
.technologies-circle img {
  width:100px;
  height: auto;
}
.technologies-circle:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.project-gallery-pro {
  padding: 80px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  transition: 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
.back-btn {
  text-align: center;
  padding: 60px 0 100px;
}

/*footer*/
.site-footer {
  background: #003b56;
  color: white;
  padding-top: 50px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}
.site-footer p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  color: white;
  font-size: 14px;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  opacity: 0.7;
  padding-left: 6px;
}
.social-icons {
  margin-top: 15px;
}
.social-icons img {
  width: 22px;
  margin-right: 12px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
}
.footer-back {
  padding: 20px 0;
}
.footer-back .container {
  display: flex;
  justify-content: flex-start;
}
.main-btn2 {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  color: #0369a1;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}
.main-btn2:hover {
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 18px 0;
  font-size: 13px;
  opacity: 0.8;
}

.footer{
    background-color: #003b56;
    color:#fff;
    text-align:center;
    padding:1% 0;
}

/******** CONNECT SECTION ********/

.connect-section {
    padding: 100px 8%;
    background-image: url(../images/contact.jpg);
    background-size: cover;
    color: #000;
}

.connect-container {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: space-between;
}

/* LEFT SIDE */
.connect-left {
    flex: 1;
}

.connect-heading {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.connect-text {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 25px;
    max-width: 500px;
}

.connect-info p {
    margin: 8px 0;
    opacity: 0.7;
}

/* RIGHT SIDE */
.connect-right {
    flex: 1;
}

/* FORM */
.connect-form {
    background: #003b56;
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.connect-form input,
.connect-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.434);
    background: transparent;
    color: #fff;
    font-size: 15px;
    transition: 0.3s ease;
    box-sizing: border-box;
}

/* Focus Effect */
.connect-form input:focus,
.connect-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 76, 96, 0.2);
}

/* Button */
.connect-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #0ea5e9;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.connect-btn:hover {
    background: #3ec2ff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .connect-container {
        flex-direction: column;
        text-align: center;
    }

    .connect-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ============================= */
/* ========= TABLET ============ */
/* ============================= */

@media (max-width: 1024px) {

  /* Container spacing */
  .container {
    padding: 0 8%;
  }

  /* Navbar */
  .nav-links {
    gap: 18px;
  }

  .logo img {
    width: 40px;
  }

  /* Hero */
  .hero h1 {
    font-size: 4rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Project Hero */
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  /* Technologies */
  .technologies {
    gap: 25px;
  }

  /* Connect */
  .connect-container {
    gap: 40px;
  }
}


/* ============================= */
/* ========= MOBILE ============ */
/* ============================= */

@media (max-width: 768px) {

  /* Navbar padding */
  .home nav {
    padding: 10px 6%;
  }

  nav {
    padding: 10px 6%;
  }

  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-content {
    padding: 0 5%;
  }

  /* About Section */
  .about-section {
    padding: 12% 6%;
  }

  /* Projects */
  .projects-section {
    padding: 12% 6%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Project Hero */
  .project-hero-pro {
    padding: 70px 6%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  /* Technologies */
  .technologies {
    gap: 20px;
  }

  .technologies-circle {
    width: 100px;
    height: 100px;
  }

  .technologies-circle img {
    width: 70px;
  }

  /* Gallery */
  .project-gallery-pro {
    padding: 60px 6%;
  }

  /* Footer */
  .footer-grid {
    text-align: center;
  }

  .footer-back .container {
    justify-content: center;
  }

  /* Connect Section */
  .connect-section {
    padding: 80px 6%;
  }

  .connect-form {
    padding: 30px;
  }

}


/* ============================= */
/* ===== SMALL PHONES ========== */
/* ============================= */

@media (max-width: 480px) {

  .hero h1 {
    font-size: 2.2rem;
  }

  .main-heading {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .nav-links {
    gap: 10px;
  }

  .project-content h3 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  .connect-heading {
    font-size: 26px;
  }

}

.hero-content {
  transition: opacity 0.8s ease;
}

.hero-content.hide {
  opacity: 0;
  pointer-events: none;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* keeps it nice on large screens */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top:20px;
  border-radius: 10px; /* optional: modern UI */
}

/* iframe fills container */
.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 📱 Mobile optimization */
@media (max-width: 768px) {
  .video-container {
    max-width: 100%;   /* full width on mobile */
    margin: 15px 0;    /* remove side spacing */
    border-radius: 8px;
  }
}

/* 📱 Small devices (extra polish) */
@media (max-width: 480px) {
  .video-container {
    margin: 10px 0;
    border-radius: 6px;
  }
}