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

/* FIX: This prevents horizontal scrolling on mobile devices */
html, body {
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}
body {
    font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-bg-dark);
}

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

a {
    color: aliceblue;
    text-decoration: none;
    transition: color 0.3s ease;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-light);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Header */
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.header .logo {
    font-size: 1.8em;
    font-weight: 700;
   & span{
     color: rgb(129 140 248);
   }
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.nav-menu ul li a:hover{
    color:rgb(129 140 248) ;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://public.youware.com/users-website-assets/prod/4df5af48-8694-4b08-a198-c11f504ff3c0/44eb6940d8d9433482b3db4d1f61c2af.jpg') no-repeat center center/cover;
    background-position: center;
    background-size: cover;
    position: relative;
    padding-top: 80px;
    background-attachment: fixed;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    margin-top: 8rem;
}

.hero-section h1 {
    color: #fff;
    font-size: 4.5em;
    margin-bottom: 40px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    & span{
        color: rgb(129 140 248);
    }
    animation: floating 3s ease-in-out infinite;
}

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

.hero-section p {
    font-size: 1.5em;
    color: #fff;
    opacity: .9;
    margin-bottom: 20px;
}
#btn {
   color: white;
    padding: 12px 25px;
    border-radius: 5px;
    background: linear-gradient(to left, #9333ea, #6366f1);;
    font-weight: 600;
  font-size: 1.2rem;
    border: none;
    cursor: pointer;
  transition: transform 0.3s ease-in-out;
    opacity: .8;
    word-spacing: 2px;
}

#btn:hover {
   transform: scale(1.05);
  opacity: 1;
}

/* Section Styling */
section:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

/* About Me Section */
.about-section {
    text-align: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url("https://public.youware.com/users-website-assets/prod/4df5af48-8694-4b08-a198-c11f504ff3c0/ef3e6c224d164e19840f3b4a81a63a8d.jpg");
    background-size: cover;
    background-position: center;
    & h2{
        font-size: 3.2rem;
        font-weight: 600;
    }
}
.kire{
    padding-top: 3rem ;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.modhu{
    margin-top: 2rem;
}
 .image img{
    border-color: rgb(129 140 248 );
   border-style: solid;
   border-width: .5rem;
    width:   16rem;
    height:   16rem;
    border-radius: 9999px;
    margin-top: 4rem;
    object-fit: cover;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.3em;
    font-weight: 600;
    color: #999;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 1;
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 2px solid rgb(129 140 248 );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.stat-icon-wrapper i {
    font-size: 2.5em;
    color: rgb(129 140 248 );
    transition: color 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    background-color: rgb(129 140 248 );
    border-color: rgb(129 140 248 );
}

.stat-item:hover .stat-icon-wrapper i {
    color: #2c2c2c;
}


.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.stat-description {
    font-size: 1.1em;
    color: #b0b0b0;
    line-height: 1.3;
}


/* Portfolio Section */
.portfolio-section {
    text-align: center;
    background-color: rgb(31 41 55 );
    padding-top: 6.5rem ;
    padding-bottom: 4rem;
    & h2{
        font-size: 3.2rem;
    line-height: 2.5rem;
    }
    p{
        font-size: 1.3rem;
        font-weight: 400;
        color: #cfc8c8;

    }
}

.filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#oi {
    background: linear-gradient(to left, #9333ea, #6366f1);
   color: #fff;
    padding: .75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 650;
    transition: all 0.3s ease;
}
.filter-btn{
    color: rgb(209 213 219 );
    background-color: rgb(55 65 81);
     padding: .75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 650;
}

.filter-btn:hover{
     background: linear-gradient(to left, #9333ea, #6366f1);
   color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 5rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-bg-dark);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.view-btn{
    margin-top: 4rem;
    & button{
          color: white;
    padding: 12px 25px;
    border-radius: 5px;
    background: linear-gradient(to left, #9333ea, #6366f1);
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 2rem;
   transition: transform 0.3s ease-in-out;
   opacity: .8;
    }
    & p{
        color: #fff;
    }
}
.nilay:hover{
transform: translateY(-5px);
opacity: 1;
}

/* Contact Section */
.contact-section {
    background-image: url("https://public.youware.com/users-website-assets/prod/4df5af48-8694-4b08-a198-c11f504ff3c0/551c3e38aae44b90a5fbcb5216f92e9c.jpg");
    background-size: cover;
    background-position: center 0%;
    position: relative;
    overflow: hidden;
    z-index: 0;
    width: 100%;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(29, 39, 53, 0.8), rgba(29, 39, 53, 0.8));
  z-index: 1;
}

.contact-section .container {
    position: relative;
      z-index: 2;
}
.cont-header{
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    & p{
        font-size: 1.2rem;
        font-weight: 500;
        color: #bdb9b9;
    }
}
.main-div{
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-bottom: 6rem;
}
.div1{
      box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    background-color: rgb(31 41 55 / 1);
    padding: 2rem;
   border: 1px solid rgb(129 140 248 /.3);
   outline: none;
       border-radius: 0.75rem;
    width: 430px;
             & label{
                color: rgb(209 213 219 );
                font-weight: 500;
                margin-bottom: 0.5rem;
                display: block;
            }
           input, select{
       border: none;
       padding: .75rem 1rem;
       outline: none;
       background-color:rgb(55 65 81);
       width: 100%;
       border-radius: 0.5rem;
       color: rgb(209 213 219 );
       font-weight: 600;
       font-size: 1.1rem;
}
}
input:focus{
    border: 1px solid rgb(129 140 248 /.7) ;
}
select:focus{
    border: 1px solid rgb(129 140 248 /.7) ;
}
.send-message-btn{
      color: white;
    padding: 12px 25px;
    border-radius: 5px;
    background: linear-gradient(to left, #9333ea, #6366f1);
    font-weight: 600;
   width: 100%;
  font-size: 1.1rem;
    border: none;
    cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.send-message-btn:hover{
      transform: scale(1.05);
}

.info-item{
display: flex;
gap: 1rem;
align-items: center;
    padding: 1.5rem;
background-color: rgb(31 41 55 / 1);
 border: 1px solid rgb(129 140 248 /.3);
    border-radius: 0.75rem;
width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;

    & i{
        padding: 0.75rem;
        background-color: rgb(224 231 255 );
        border-radius: 9999px;
        color: rgb(79 70 229);
        font-size: 1.25rem;
    line-height: 1.75rem;
        font-weight: 900;
}
    & h3{
        color: rgb(243 244 246 );
        font-weight: 600;
    }
& p{
    color: rgb(209 213 219);
}
}
.follow-me{
background-color: rgb(31 41 55 / 1);
 border: 1px solid rgb(129 140 248 /.3);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
      padding: 1.5rem;
        & h3{
        color: rgb(243 244 246 );
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    & i{
        padding: 0.75rem;
        background-color: rgb(224 231 255 );
        border-radius: 9999px;
        color: rgb(79 70 229);
        font-size: 1.25rem;
    line-height: 1.75rem;
        font-weight: 900;
        margin-left: .5rem;
}
}
.follow-me i:hover{
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: rgb(17 24 39);
    color: aliceblue;
    padding: 60px 0 20px 0;
    text-align: center;
    border-top: 1px solid rgb(55 65 81);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
#ses{
  font-size: 1.7em;
  & span{
    color: rgb(129 140 248);
  }
}
.footer-col h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 600;
}

.footer-col p,
.footer-col ul li {
    font-size: 1em;
    color: #999;
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li i {
    margin-right: 10px;
    color: #999;
}

.footer-col .social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-col .social-icons a {
    color: #999;
    font-size: 1.5em;
    transition: color 0.3s ease;
    transition: transform 0.3s ease-in-out;
}

.footer-col .social-icons a:hover {
    color: var(--accent-purple);
    transform: translateY(-5px);
}
hr{
    width: 80%;
    margin: 0 auto;
    opacity: .1;
}
.copyright {
    margin-top: 20px;
    font-size: 1.1em;
    color: #999;
    text-align: center;
    font-weight: 500;
}

/* ---  Responsive Adjustments --- */
@media (max-width: 1024px) {
    /* General adjustments for tablets and smaller desktops */
    .header {
        padding: 1rem 2rem;
    }

    .hero-section h1 {
        font-size: 3.8em;
    }

    .hero-section p {
        font-size: 1.3em;
    }

    .kire {
        flex-direction: column;
        gap: 1.5rem;
    }

    .image img {
        margin-top: 2rem; /* Adjust margin for stacked layout */
    }

    .about-section p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    /* Fix: about section too tall on mobile */
    .kire {
        padding-top: 1.5rem;
        gap: 1rem;
    }

    .image img {
        width: 11rem;
        height: 11rem;
        margin-top: 1.5rem;
        border-width: 0.35rem;
    }

    .modhu {
        margin-top: 0.5rem;
    }

    .about-section h2 {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .about-stats {
        margin-top: 30px;
        padding-top: 25px;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .stat-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .stat-icon-wrapper i {
        font-size: 1.8em;
    }

    .stat-number {
        font-size: 2em;
    }

    .filter-buttons {
        gap: 10px;
        padding: 0 10px;
    }

    .filter-btn, #oi {
        padding: .6rem 1.2rem;
        font-size: 1.1em;
    }

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

    .main-div {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .div1 {
        width: 90%; /* Make form wider on smaller screens */
        max-width: 500px; /* Limit max width */
    }

    .info-item, .follow-me {
        width: 90%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {


.header .logo {
    font-size: 1.3rem;
}
    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    /* Fix: hero too tall on mobile */
    .hero-section {
        height: auto;
        min-height: 0;
        padding-top: 100px;
        padding-bottom: 50px;
        background-attachment: scroll;
    }

    .hero-section .container {
        margin-top: 0;
    }

    /* Fix: about section too tall on mobile */
    .kire {
        padding-top: 1.5rem;
        gap: 1rem;
    }

    .image img {
        width: 11rem;
        height: 11rem;
        margin-top: 0.5rem;      /* was 1.5rem — reduces gap under image */
        border-width: 0.35rem;
    }

    .modhu {
        margin-top: 0.5rem;
    }

    .about-section h2 {
        font-size: 2rem !important;
        margin-bottom: 12px;
        margin-top:-50px;
    }

    .about-stats {
        margin-top: 20px;        /* was 30px */
        padding-top: 18px;  
        padding-bottom: 20px;     /* was 25px */
        gap: 18px;
    }

    .stat-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .stat-icon-wrapper i {
        font-size: 1.8em;
    }

    .stat-number {
        font-size: 2em;
    }

    .about-section p {
        font-size: 1em;
        margin-bottom: 15px;     /* was 20px */
    }

    /* Reduce portfolio section top padding on mobile */
    .portfolio-section {
        padding-top: 3rem;       /* was 6.5rem — removes big gap after stats */
    }

    /* Fix: contact section padding too large on mobile */
    .cont-header {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .main-div {
        padding-bottom: 3rem;
        gap: 2rem;
    }

    /* Reduce info card padding and spacing on mobile */
    #mahabur{
        width: 100%;
    }
    .info-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
  
    }

    .info-item i {
        padding: 0.5rem;
        font-size: 1rem;
        line-height: 1.4rem;
        flex-shrink: 0;
    }

    .info-item h3 {
        font-size: 0.95rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }

    .follow-me {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }

    .follow-me i {
        padding: 0.5rem;
        font-size: 1rem;
        line-height: 1.4rem;
        margin-left: 0.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info-block {
        width: 100%;
        min-width: unset;
    }

    .contact-form .form-group {
        flex-direction: column;
        gap: 0;
    }

    .contact-form input,
    .contact-form select {
        margin-bottom: 20px;
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .filter-buttons {
        flex-direction: column;
    }

    /* Hero: extra compact on small phones */
    .hero-section {
        padding-top: 85px;
        padding-bottom: 40px;
    }

    .hero-section h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
        margin-top: 10px;
    }

    .hero-section p {
        font-size: 1em;
        margin-bottom: -8px;
    }

    /* About/stats: 2-column grid, smaller icons */
    .image img {
        width: 9rem;
        height: 9rem;
        margin-top: 0;           /* no extra gap under image on tiny screens */
    }

    .about-section p {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 15px;
        padding-top: 15px;
    }

    /* Portfolio top padding on very small screens */
    .portfolio-section {
        padding-top: 2.5rem;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .stat-icon-wrapper i {
        font-size: 1.4em;
    }

    .stat-number {
        font-size: 1.6em;
    }

    .stat-description {
        font-size: 0.85em;
    }

    /* Contact: tighter padding */
    .cont-header {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .cont-header h1 {
        font-size: 2rem;
    }

    .main-div {
        padding-bottom: 2.5rem;
    }
}

/* =================================================================== */
/* === START: RESPONSIVE NAVIGATION MENU STYLES ADDED === */
/* =================================================================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 25px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.35s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header .container {
        flex-direction: row;
        align-items: center;
    }

    /* Compact dropdown: full width, auto height, slides top→bottom */
    .nav-menu {
        position: fixed;
        top: 65px;                  /* sits flush below header */
        left: 0;
        width: 100%;
        height: auto;               /* only as tall as the links */
        background-color: rgba(15, 23, 42, 0.92);  /* dark navy, matches site theme */ 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        /* slide-down animation */
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        pointer-events: none;
        transition: clip-path 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    opacity 0.35s ease;
        /* reset old properties */
        display: block;
        justify-content: unset;
        align-items: unset;
        transform: none;
    }

    .nav-menu.active {
        clip-path: inset(0 0 0% 0);
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: left;
        margin: 0;
        padding: 0.3rem 0;
        width: 100%;
    }

    .nav-menu ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .nav-menu ul li a {
        display: block;
        width: 100%;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 0.9rem 1.8rem;
        color: rgba(255,255,255,0.82);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav-menu ul li a:hover {
        background-color: rgba(129, 140, 248, 0.15);
        color: rgb(129 140 248);
    }
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* === END: RESPONSIVE NAVIGATION MENU STYLES ADDED === */