*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    
}


@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


.roboto-style {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  font-variation-settings:
    "wdth" 100;
}


:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;  
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    /* scroll-padding-top: 30px; */
    overflow-x: hidden;


}


body {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: #f0f0f0;

}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo{
   display: flex;
  align-items: center;
  /* gap: 0.5rem;  */
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);

}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;

}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;

}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;

}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;

}

.home-img img{
    width: 25vw; /* Keep original width or adjust as needed */
    animation: floatImage 4s ease-in-out infinite;
    /* Add the following for the desired shape and overflow handling */
    border-radius: 50% 50% 0 0; /* Creates the irregular, rounded shape */
    box-shadow: 0 -20px 50px rgba(0, 238, 255, 0.7); /* Adds a glow effect */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block; /* Ensures proper box model behavior */

}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    
     50% {
        transform: translateY(-2.4rem);
    }
    
     100% {
        transform: translateY(0);
    }
    
}

.home-content p{
    font-size: 1.9rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;

}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);

}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;

}

.btn:hover{
     box-shadow: none;
     transition: .5s ease;
}
 
.heading {
    text-align: center;
    font-size: 4.5rem;
}



.about-content p {
    /* font-size: 1.7rem; Slightly larger for readability */
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #e0e0e0; /* Softer white for body text */
}
.about-text-container p {
    font-size: 1.85rem;
}


.services h2 {
    margin-bottom: 5rem;   
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);   
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.8rem;
    margin: 1rem 0 3rem;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;

}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.5 ease;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);

}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}


/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

     
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    
    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%; 
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;

    }
    }

    .services h2 {
        margin-bottom: 3rem;
    }

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-content p,
.about-text-container p,
.services-box p {
    font-size: 1.95rem; /* For tiny screens – ensure visual clarity */
}
    .multiple-text {
        font-size: 3.4rem;
    }

    .contact form .input-box input {
        width: 100%;
        margin-bottom: 5rem;
    }

    .contact form .btn {
        margin-top: 5rem;
     /* Add bottom spacing before footer */
  }

  .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }

     .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: 2.2rem;
  }
}

    @media (max-width: 405px) {
        .multiple-text {
        font-size: 3rem;
    }
    }

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    .multiple-text {
        font-size: 2.3rem;
    }

    /* .about-img img {
        width: 90vw;
    } */

    /* .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    } */
}

 .reveal-item {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
  will-change: opacity, transform;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
} 

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  max-width: 400px;
  margin: 1rem auto;
}

.float-text {
  animation: floatIn 1.2s ease-in-out forwards;
  opacity: 0;
}
@keyframes floatIn {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* --- ABOUT SECTION STYLING (Refined for Centering) --- */

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 12rem 9% 5rem;
  background: linear-gradient(135deg, #1A1A2E, #0F3460);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: visible;
  min-height: 100vh; /* ✅ Key fix */
  max-width: 1400px;
  margin: 0 auto;
}


/* Optional: Subtle texture */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZSI+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTggLTgpIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjAuMDMiPgogICAgICAgICAgICA8cGF0aCBkPSJNNiAwaDN2NGg0djNoLTdWMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4IDBoM3Y0aDR2M2gtN1YyeiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTAgMGgzdjRoNHYzLTdWMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTcgMjFoM3Y0aDR2M2gtN1YyMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI5IDIxSDMyVjI1SDM2VjI4SDI5VjIxeiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTEgMjFoM3Y0aDR2M2gtN1YyMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTYgNDJoM3Y0aDR2M2gtN1YzNnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4IDQyaDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTAgNDJoM3Y0aDR2M2gtN1YzNnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTYgNjNoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4IDYzaDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkM001MCA2M2gzdjRoNHYzLTdWMzZ6Ii8+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik03IDg0aDN2NGh0diM3VjY2eiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNMjkgODRoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTUxIDg0aDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNyAxMDVoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI5IDEwNWgzdjRoNHYzLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTEgMTA1aDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+');
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
}

.about .heading {
    color: var(--text-color);
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

/* Profile Picture Container Styling */
.about-img {
    position: relative;
    z-index: 2;
    /* Crucial for centering its content when it's the flex item */
    display: flex;
    justify-content: center; /* Center image horizontally within this container */
    align-items: center; /* Center image vertically if needed, or for consistency */
     /* Allow it to take full width to center effectively in column layout */
    max-width: 450px;
    flex-shrink: 0; /* Optional: Sets a max width for the container itself on larger screens */
    /* Remove any conflicting margins like 'margin-top' if they were on this container */
}

.about-img img {
    width: 30vw; /* Base width */
    max-width: 400px; /* Max size for the image itself */
    height: auto;
    border-radius: 50% 50% 0 0;
    object-fit: cover;
    display: block; /* Ensure it's a block element for width/margin-auto to work */
    border: .2rem solid var(--main-color);
    box-shadow: 0 -20px 80px rgba(0, 238, 255, 0.4);
    transition: all 0.5s ease;
    /* Explicitly add auto margins for centering in case flex fails */
    margin: 0 auto;
}

.about-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 -20px 100px rgba(0, 238, 255, 0.6), 0 0 20px rgba(0, 238, 255, 0.2);
}

.img-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.founder-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--main-color);
  background: rgba(0, 238, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}


.about-content {
    flex: 1;
    padding-left: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    /* Also center its content for good measure */
    display: block;
   /* Center text content within this box */
    text-align: left; /* For text elements not controlled by flex */
}

.about-content h2 {
    text-align: center; /* Override left for small screens if needed */
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-content h3 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    /* font-size: 1.7rem; */
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%; /* Ensure it takes full width for its content to center */
    align-items: center; /* Center its own children */
    
}

.about-info-box {
    width: 100%; /* Ensure it takes full width of its parent (.about-text-container) */
    max-width: 450px; /* Optional: Sets a max width for the info box itself */
    margin-left: 0; /* Ensure no residual margins from small screen centering */
    margin-right: 0;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.1);
    transition: all 0.4s ease;
    width: 90%; /* Adjust width of info box to prevent overflow on small screens */
    max-width: 400px; /* Limit max width for readability */
    text-align: left; /* Keep text aligned left within the box */
}

.about-info-box:hover {
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
    transform: translateY(-5px);
}

.about-info-box h4 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 238, 255, 0.5);
    padding-bottom: 0.5rem;
}

.about-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-info-box ul li {
    font-size: 1.6rem;
    color: #c0c0c0;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.about-info-box ul li::before {
    content: '\2022';
    color: var(--main-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}


/* --- RESPONSIVENESS FOR ABOUT SECTION --- */
@media (max-width: 991px) {
    .about {
        flex-direction: column; /* Stack image and content */
        gap: 3rem;
        align-items: center;
        max-width: 100%;
        margin: 0;
        padding: 8rem 3% 2rem; /* Crucial: Centers flex items horizontally when in column */
        /* min-height: auto; // Already added above, ensuring it's not fixed height */
    }

    .about-img {
        margin-bottom: 3rem;
        width: 100%; /* Space below image when stacked */
        /* No need for explicit width here if it's already 100% and centering its content */
    }

    .about-img img {
        width: 50vw; /* Adjust image size for smaller screens */
        max-width: 350px; /* Maintain a reasonable max size */
        margin: 0 auto; /* Ensure auto margins for centering in case */
    }

    .about-content {
        padding-left: 0; /* Remove left padding when stacked */
        width: 90%; /* Give some side padding to the content box itself */
        max-width: 500px; /* Prevent content box from getting too wide */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center text content within this box */
        text-align: center; /* For text elements not controlled by flex */
    }

    .about-content h2 {
        text-align: center; /* Center the "About Me" heading specifically */
    }

    .about-text-container {
        align-items: center; /* Center its own children */
    }

    .about-info-box {
        width: 90%; /* Adjust width of info box to prevent overflow on small screens */
        max-width: 400px;
        margin: 0 auto; /* Center individual info boxes */
    }
}

@media (max-width: 768px) {
    .about-img img {
        width: 70vw; /* Larger on tablets */
        max-width: 400px; /* Increase max-width if 70vw is too small */
        margin: 0 auto;
    }
    .about-content {
        padding: 2rem; /* Adjust padding for smaller screens */
    }
    .about-content h3 {
        font-size: 2.4rem;
    }
    /* .about-content p {
        font-size: 1.5rem;
    } */
    .about-info-box h4 {
        font-size: 2rem;
    }
    .about-info-box ul li {
        font-size: 1.5rem;
    }
}

@media (max-width: 450px) {
    .about-img img {
        width: 85vw; /* Make it take more space on very small screens */
        max-width: none; /* Let it scale freely up to 85vw */
        margin: 0 auto;
    }
    .about-content {
        padding: 1.5rem; /* Further reduce padding */
        width: 95%; /* Adjust width for very small screens */
    }
    .about-info-box {
        width: 100%; /* Allow info boxes to fill available width */
        padding: 1.5rem;
    }
}

/* --- PORTFOLIO SECTION STYLING (Premium/Agency Redesign - Corrected Grid) --- */

.portfolio {
    /* Premium/Agency Gradient Background (consistent with About section) */
    background: linear-gradient(135deg, #1A1A2E, #0F3460);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
    position: relative;
    overflow: hidden;
    padding: 10rem 9% 2rem; /* Consistent padding */
    display: flex; /* Use flex to center its content horizontally */
    flex-direction: column; /* Stack heading and container */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center heading text */
}

/* Optional: Add a subtle texture or pattern for more depth (copy from About section if desired) */
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d2wudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZSI+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTggLTgpIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjAuMDMiPgogICAgICAgICAgICA8cGF0aCBkPSJNNiAwaDN2NGg0djNoLTdWMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4IDBoM3Y0aDR2M2gtN1YyeiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTAgMGgzdjRoNHYzLTdWMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTcgMjFoM3Y0aDR2M2gtN1YyMnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI5IDIxSDMyVjI1SDM2VjI4SDI5VjIxeiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTEgMjFoM3Y0aDR2M2gtN1YyMnoiLz4KICAgICAgICAgICAgPHBhdGQIIGQ9Ik02IDQyaDN2NGg0djNoLTdWMzZ6Ii8+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yOCA0MmgydjNoNHYzLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTAgNDJoM3Y0aDR2M2gtN1YzNnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTYgNjNoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI4IDYzaDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTAgNjNoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTcgODRoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTI5IDg0aDN2NGh0diM3VjY2eiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTEgODRoM3Y0aDR2M2gtN1Y2NnoiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTcgMTA1aDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNMjkgMTA1aDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgICAgICA8cGF0aCBkPSJNNTEgMTA1aDN2NGg0djNoLTdWMzZ6IiIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+');
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
}

.portfolio h2 {
    margin-bottom: 5rem; /* Increased margin for better spacing */
    color: var(--text-color); /* Ensure heading color is white */
    position: relative;
    z-index: 2;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* DEFAULT: 3 columns for large screens */
    align-items: center;
    gap: 3rem; /* Slightly increased gap for more breathing room */
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure container takes available width */
    max-width: 1200px; /* Limit overall width for aesthetic balance on very large screens */
    /* margin: 0 auto; - Already handled by parent .portfolio using flex and align-items: center */
}

.portfolio-container .portfolio-box {
     position: relative;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    height: 300px; /* Default height for desktop */
}


.portfolio-container .portfolio-box:hover {
    border-color: var(--main-color);
    transform: translateY(-8px) scale(1.02); /* Lift and scale effect */
    box-shadow: 0 15px 50px rgba(0, 238, 255, 0.4), 0 0 20px rgba(0, 238, 255, 0.2); /* Stronger, more vibrant glow */
}

.portfolio-box video {
    width: 100%;
    height: 100%; /* Make video fill the box height initially */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 2rem 2rem 0 0; /* Match top border-radius of the box */
    display: block; /* Remove any inline spacing issues */
}

.project-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1rem 1rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    z-index: 1;
    transition: opacity 0.4s ease;
    opacity: 1; /* default visible */
    pointer-events: none;
}

.portfolio-box.playing .project-title {
    opacity: 0; /* fade out when video is playing */
}

.project-title h4 { /* Target the H4 inside project-title */
    color: var(--text-color);
    transition: 0.3s ease;
}

.portfolio-box:hover .project-title h4 {
    color: var(--main-color); /* Highlight text on hover */
    transform: translateY(-5px); /* Lift text slightly */
}


/* --- RESPONSIVENESS FOR PORTFOLIO SECTION --- */
/* For smaller desktops and large tablets (e.g., up to 1200px) */
@media (max-width: 1200px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-container .portfolio-box {
        height: 280px;
    }
}

/* For tablets and mobile (e.g., up to 768px) */
@media (max-width: 768px) {
    .portfolio h2 {
        margin-bottom: 3rem;
    }
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    .portfolio-container .portfolio-box {
        height: 250px;
    }
}

/* For very small phones (e.g., up to 450px) */
@media (max-width: 450px) {
    .portfolio {
        padding: 8rem 5% 2rem; /* Adjust padding for very small screens */
    }
    .portfolio-container {
        gap: 2rem;
    }
    .portfolio-container .portfolio-box {
        height: 220px; /* Further adjust height for small mobiles */
    }
    
}

/* --- Message Sent Pop-up Notification Styling --- */
.message-popup {
    position: fixed; /* Stays in place when scrolling */
    top: -100px; /* Start off-screen above */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background: linear-gradient(90deg, var(--main-color), rgba(0, 238, 255, 0.7)); /* Gradient matching theme */
    color: var(--bg-color); /* Text color contrasting with background */
    padding: 1.5rem 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.8rem;
    font-weight: 600;
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Hidden by default */
    transition: top 0.5s ease-out, opacity 0.5s ease-out, visibility 0s linear 0.5s; /* Animation for showing/hiding */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.message-popup.show {
    top: 5rem; /* Slide down into view */
    opacity: 1; /* Fade in */
    visibility: visible;
    transition: top 0.5s ease-out, opacity 0.5s ease-out; /* Animation for showing */
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  font-size: 2rem;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Default: not clickable */
}

/* These icons will be inserted via class */
.video-overlay.play::before {
  content: '▶';
}

.video-overlay.pause::before {
  content: '❚❚';
}

/* When JS adds 'show-controls', show overlay and make it clickable */
.video-wrapper.show-controls .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

#contact {
  min-height: 100vh; /* allows the section to grow taller than screen height */
  /* space for send button/footer */
 /* avoid hiding behind navbar */

}


