/* Basic reset and default styles */
body{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
}

html{
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Main container styling */
.container{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px; /* Space between sections */
    background-color: #001f7c38; /* Semi-transparent background color */
}

/* Background video styling */
.back-vid{
    position: fixed; /* Fixed position to stay in background */
    right: 0;
    bottom: 0;
    z-index: -1; /* Behind other content */
    mix-blend-mode:overlay; /* Blend mode for video */
}

/* Header styling */
header{
    display: flex;
    position: absolute; /* Positioned relative to the container */
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Blur effect for background */
    box-shadow: 0 0 15px #72a1dea2; /* Shadow effect */
    z-index: 999; /* On top of other content */
}

/* Left section of header (logo and title) */
.left{
    display: flex;
    align-items: center;
}

.left img{
    width: 40px;
    margin: 0 15px;
}

/* Header navigation list styling */
header ul{
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
}

header ul li{
    list-style: none; /* Remove default list styling */
}

header ul a{
    text-decoration: none; /* Remove default link underline */
    color: white;
    font-weight: 700;
    transition: 0.3s; /* Smooth transition for hover effect */
    margin: 0 10px;
}

header ul a:hover{
    text-shadow: 0 0 15px black; /* Text shadow on hover */
}

/* Social media icons in header */
.box-icons{
    display: flex;
    gap: 40px; /* Space between icons */
}



/* Change the selector from 'p' to 'a' */
.box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #72a1de;
    border-radius: 50%; /* Circular border */
    cursor: pointer;
    transition: 0.5s;
    /* Add this line to inherit the icon color correctly */
    color: inherit;
    /* Add this to remove the default link underline */
    text-decoration: none;
}

/* Change the selector from 'p:hover' to 'a:hover' */
.box-icons a:hover {
    background-color: #72a1de;
    color: black; /* This color will be inherited by the <i> tag on hover */
    box-shadow: 0 0 15px #72a1de;
}



/* Blackhole video container styling */
.blackhole-box{
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1; /* Behind other content */
    mix-blend-mode: lighten; /* Blend mode for video */
  }

.blackhole-box video{
    width: 100%;
    margin-top: -23.5%; /* Adjust vertical position */
}

/* Hero section styling */
.hero{
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh; /* Full viewport height */
    align-items: center;
    justify-content: space-between;
}

/* Hero information text styling */
.hero-info{
    position: absolute;
    left: 5%;
}

.hero-info .hero-info-title{
    color: #72a1de;
    padding: 8px 5px;
    border-radius: 50px;
    border: 1px solid #72a1de94;
    width: 300px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
}

.hero-info h1{
    font-size: 60px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p{
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}

/* Updated rule to style both button and link */
.hero-info button,
.hero-info a {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    /* Add this line to remove the default link underline */
    text-decoration: none; 
}

/* Updated hover rule */
.hero-info button:hover,
.hero-info a:hover {
    box-shadow: 0 0 15px #72a1de81;
}

/* Gradient text animation */
.gradient{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%; /* For animation effect */
    background-clip: text;
    -webkit-background-clip: text; /* For Safari/Chrome */
    -webkit-text-fill-color: transparent; /* For Safari/Chrome */
    animation: animate-gradient 2.5s linear infinite; /* Animation definition */
}
@keyframes animate-gradient {
    to{
        background-position: 200%; /* Moves the gradient */
    }
}

/* Skills video container in hero section */
.skills-video-box{
    position: absolute;
    right: 3%;
}

.skills-video{
    height: 900px;
    mix-blend-mode:lighten;
}

/* Scroll down indicator styling */
.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
  }
  .scroll-down::before, /* Arrow parts */
  .scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite; /* Animation for scroll indicator */
  }
  .scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
  }

  @keyframes scroll-down { /* Scroll down animation keyframes */
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    60% {
      opacity: 1;
    }
    100% {
      top: 90%;
      opacity: 0;
    }
  }

/* Information section styling */
.info-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin-top: 100px;
}

.section-title{
    font-size: 40px;
    font-weight: 700;
}

/* Grid layout for information cards */
.info-cards{
    display: grid;
    grid-template-columns: auto auto auto; /* Three columns */
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

/* Individual card styling */
.card{
    display: flex;
    align-items:flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden; /* Hide overflowing content */
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s; /* Smooth transition for hover */
}

.card h1{
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1; /* On top of image/video */
    color: lightgray;
}

.card p{
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 12px;
    line-height: 20px;
}

.card img{
    width: 80%;
    height: 50%;
    object-fit: cover; /* Ensure image covers the area */
}

.card video{
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

/* Updated rule to style both button and link */
.card button,
.card a {
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
    /* Add this to remove the default link underline */
    text-decoration: none;
    /* This makes the icon inside the link display properly */
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Optional: adds a little space between icon and text */
}

/* Updated hover rule */
.card button:hover,
.card a:hover {
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.card:hover{
    box-shadow: 0 0 15px rgb(211, 211, 211);
}

/* Specific card styling for layout adjustments */
.card:nth-child(3){ /* Third card spans two rows */
    grid-row: span 2;
    height: 83vh;
}

.card:nth-child(3) p{
    bottom: 12%;
}

.card:nth-child(3) h1{
    bottom: 21%;
}

.card:nth-child(4){ /* Fourth card spans two columns */
    grid-column: span 2;
}

.card:nth-child(4) p{
    max-width: 650px;
}

.card:nth-child(4) h1{
    bottom: 35%;
}

/* My Projects section styling */
.my-project {
    display: flex;
    flex-direction: column;
    /* gap: 10%; /* Consider changing this to a fixed pixel value for more control */
    gap: 60px; /* Example: 60px vertical gap between title and first card, and between cards */
    align-items: center;
    position: relative;
    width: 80%;
    height: auto; /* ALLOWS HEIGHT TO BE DETERMINED BY CONTENT */
    margin-top: 100px; /* Reduced top margin for better flow, adjust as needed */
    margin-bottom: 150px; /* STANDARD BOTTOM MARGIN for spacing before next section */
    padding-top: 50px; /* Add some internal padding at the top if title is very close to previous section */
}

.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

/* Project video container styling */
.project-vidbox{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    mix-blend-mode:exclusion; /* Blend mode for video */
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px;
}

.project-vidbox video{
    object-fit: cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}

.project-card video:hover{
    box-shadow: 0 0 25px rgb(255, 255, 255);
}

/* Project information text styling */
.project-info{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}

.project-info h1{
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap; /* Prevent text wrapping */
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p{
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}

/* Updated rule to style both button and link */
.project-info button,
.project-info a {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    /* Add this to remove the default link underline */
    text-decoration: none;
    /* This makes the icon inside the link display properly */
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Optional: adds a little space between icon and text */
}

/* Updated hover rule */
.project-info button:hover,
.project-info a:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px #72a1de81;
}

/* Hover sign for project videos */
.project-vidbox .hover-sign{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before, /* Emoji and styling */
.hover-sign::after {
    content: "👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    border-radius: 40px;
    animation: hover-animation 4s ease-in-out infinite; /* Hover animation */
}

.hover-sign.active{ /* Hide when video is playing */
    display: none;
}

@keyframes hover-animation { /* Hover animation keyframes */
  0% {
    box-shadow: 0 0 5px rgb(255, 255, 255);
    transform: translate(100%, 50%) rotate(30deg);
  }
  100% {
    box-shadow: 0 0 5px rgb(255, 255, 255);
    transform: translateX(80%, 80%) rotate(20deg);
  }
}

/* Skills section styling */
.skills-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.skills-box{
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    mix-blend-mode:lighten;
    opacity: 0.7;
}

.skills-image{
    width: 70%;
    mix-blend-mode:difference;
}

/* Designer skills text styling */
.Designer{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    left: 5%;
    max-width: 300px;
}

.Designer h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.Designer p{
    line-height: 23px;
}

/* Coder skills text styling */
.coder{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    right: 5%;
    max-width: 300px;
}

.coder h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.coder p{
    line-height: 23px;
}

.coder-text{
    font-size: 50px;
}

/* SLIDER styling (for skills icons) */
.slider{
    position: absolute;
    bottom: 5%;
    right: 20%;
    width: 60%;
    height: var(--height); /* Using CSS variables */
    overflow: hidden;
    mask-image: linear-gradient( /* Fading effect at edges */
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode:difference;
    opacity: 0.7;
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity)); /* Calculate total width of items */
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%; /* Start off-screen */
    animation: autoRun 10s linear infinite; /* Sliding animation */
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important; /* Staggered animation delay */
}
.slider .list .item img{
    width: 100%;
}
@keyframes autoRun{ /* Slider animation keyframes */
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1); /* Move to the left end */
    }
}
.slider:hover .item{ /* Pause animation on hover */
    animation-play-state: paused!important;
    filter: grayscale(1); /* Grayscale effect */
}
.slider .item:hover{ /* Remove grayscale on individual item hover */
    filter: grayscale(0);
}

/* CONTACT SECTION styling */
.contact-section{
    width: 80%;
    height: 100vh;
    display: flex;
    justify-content: center;
    gap: 10%;
    align-items: center;
    position: relative;
}

.contact-section h1{
    position: absolute;
    top: 10%;
    left: 40%;
}

/* Social contact information box */
.social-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-box a{
    color: lightgray;
    text-decoration: none;
    font-size: 20px;
    text-wrap: nowrap;
}

.social-box i{
    color: #7668ff;
    font-size: 30px;
    margin-right: 10px;
}

.social-icons a i{
    color: white;
    margin-top: 40px;
}

/* Contact form styling */
.contact-box p{
    max-width: 400px;
    margin-top: 30px;
    margin-bottom: 100px;
}

.contact-box input{
    padding: 7.5px 30px;
    background-color: lightgray;
    width: 80%;
    height: 25px;
    border: none;
    outline : none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.contact-box button,
.contact-box a {
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
    /* Add this to remove the default link underline */
    text-decoration: none;
    /* This makes the icon inside the link display properly */
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Optional: adds a little space between icon and text */
}

.contact-box button:hover,
.contact-box a:hover {
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

/* Footer styling */
.footer{
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    z-index: 999;
    padding: 0 3rem;
}

/* BLUR EFFECT ANIMATION (Scroll-triggered) */
.autoBlur{
    animation: autoBlurAnimation linear both;
    animation-timeline: view(); /* Uses browser's view timeline for scroll-triggered animation */
}
@keyframes autoBlurAnimation{
    0%{
        filter: blur(40px);
    }
    35%,65%{ /* Element is clear in the middle of the viewport */
        filter: blur(0);
        opacity: 1;
    }
    100%{
        filter: blur(40px);
        opacity: 0;
    }
}

/* AUTO DISPLAY ANIMATION (Scroll-triggered) */
.autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}
@keyframes autoDisplayAnimation{
    from{
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    } 50%{
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}

/* FADEIN_LEFT ANIMATION (Scroll-triggered) */
.fadein-left{
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}
@keyframes fadeInLeftAnimation{
    0%{
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    } 35%,65%{
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }100%{
        filter: blur(10px);
    }
}

/* Sidebar styling (for mobile/tablet) */
.menu-icon{ /* Hamburger menu icon */
    font-size: 35px;
    cursor: pointer;
    display: none; /* Hidden by default, shown in media queries */
}

.sidebar{
    position: fixed; /* Fixed position for overlay */
    right: 0;
    top: 0;
    bottom: 70%; /* Initial state for animation */
    width: 0%; /* Initial state for animation */
    background-color: #000000b8;
    z-index: 999;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(10px);
    opacity: 0; /* Initial state for animation */
    border-bottom-left-radius: 100%; /* Initial state for animation */
}

.close-icon{ /* Close button for sidebar */
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar ul{
    padding-left: 20px;
}

.sidebar ul li{
    list-style: none;
    margin-bottom: 30px;
}

.sidebar ul li a{
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 900;
    text-shadow:0 0 15px #4c4c4c;
}

.social-sidebar{
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.social-sidebar a{
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
    transition: 0.5s;
}

/* Sidebar Open ANIMATION */
.sidebar.open-sidebar{
    animation: openSideBarAnimation 1.5s forwards; /* 'forwards' keeps the end state */
}
@keyframes openSideBarAnimation {
    to{ /* Final state of the open sidebar */
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

/* Sidebar close ANIMATION */
.sidebar.close-sidebar{
    animation: closeSideBarAnimation 1.5s forwards;
}
@keyframes closeSideBarAnimation {
    from{ /* Starting state (same as open sidebar's end state) */
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
    to{ /* Final state of the closed sidebar */
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;
    }
}

/* Media Queries for Responsive Design */

/* Adjust background video for different aspect ratios */
@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: auto;
    }
}

/* Styles for screens up to 1200px wide */
@media screen and (max-width: 1200px){
    .blackhole-box video{
        margin-top: -20%;
    }

    .hero-info h1{
        font-size: 40px;
        max-width: 400px;
        line-height: 40px;
    }

    .hero-info P{
        max-width: 300px;
    }

    .skills-video-box{
        right: 0%;
    }

    .skills-video-box video{
        height: 500px;
    }

    .info-cards{
        grid-template-columns: auto; /* Single column layout for cards */
    }

    .card:nth-child(3){
        grid-column: span 2; /* Reset span for single column */
        height: 70vh;
    }

    .info-cards .card h1{
        font-size: 20px;
    }

    .info-cards .card:nth-child(3) h1{
        bottom: 25%;
    }

    .card video{
        height: 60%;
        margin-top: 5%;
    }

    .my-project{
        margin-bottom: 200px;
        scale: 0.8; /* Scale down project section */
    }

    .contact-section .section-title {
        left: 30%;
    }
}

/* Styles for screens up to 700px wide (tablets/large phones) */
@media screen and (max-width: 700px){
    header {
        position: fixed; /* Make header fixed on scroll */
        height: 50px;
    }

    header ul{
        display: none; /* Hide desktop navigation */
    }

    header .box-icons{
        display: none; /* Hide desktop social icons */
    }

    .menu-icon{
        display: inline; /* Show hamburger menu icon */
    }

    .blackhole-box video {
        width: 100%;
        margin-top: -15%;
    }

    .autoBlur{
        animation: none; /* Disable scroll-triggered blur for performance/simplicity */
    }

    .hero{
        flex-direction: column; /* Stack hero content vertically */
        top:0;
        bottom: 0;
        left: 0;
        right:0;
    }
    .hero-info{
        bottom: 5%;
    }

    .scroll-down{
        bottom: 5%;
    }

    .hero .skills-video-box{
        height: 200px;
        top: 5%;
    }

    .info-cards{
        grid-template-columns: auto; /* Ensure single column */
    }

    .card:nth-child(3){
        grid-column: span 2; /* Ensure consistent span */
        height: 70vh;
    }

    .card video{
        width: 100%;
    }

    .container{
        height: 100%;
    }

    .project-vidbox video{
        width: 250px;
        margin-left: -100px; /* Adjustments for smaller screens */
    }

    .project-info{
        overflow: hidden;
        padding-left: 0;
        margin-left: -50px;
    }

    .project-info h1{
        font-size: 20px;
        max-width: 200px;
        text-wrap: wrap; /* Allow text to wrap */
    }

    .project-info p{
        font-size: 10px;
        text-wrap: wrap;
        max-width: 200px;
        min-width: 0;
    }

    .project-info button{
        padding: 5px 10px;
    }

    .my-project{
        margin-bottom: 600px;
    }

    .project-card{
        flex-direction: column; /* Stack project card items vertically */
        margin-left: 25%;
        gap: 30px;
    }

    .project-vidbox{
        min-width: 200px;
    }

    .project-info{
        width: 85%;
    }

    .project-info h1{
        text-wrap: nowrap; /* Revert to nowrap if needed, or adjust based on design */
    }

    .project-info p{
        max-width: 300px;
    }

    /* Adjust positions for skills text */
    .Designer{
        top: 15%;
        left: 18%;
    }

    .Designer h1{
        margin-bottom: 0;
        margin-top: 70px;
    }

    .coder{
        top: 50%;
        left: 18%;
    }

    .coder h1{
        margin-bottom: 0;
    }

    .slider .list .item img{
        width: 70%; /* Smaller skill icons */
    }

    .contact-section{
        flex-direction: column; /* Stack contact elements vertically */
        margin-top: 100px;
        margin-bottom: 50px;
    }

    .footer{
        font-size: 10px; /* Smaller font in footer */
    }

    .social-box{
        margin-left: -90px; /* Adjust social box position */
    }
}

/* Styles for screens up to 480px wide (small phones) */
@media screen and (max-width: 480px) {
    .hero .skills-video-box {
        display: none; /* Hide skills video on very small screens */
    }

    .blackhole-box {
        overflow: hidden; /* Prevent overflow issues */
    }

    .blackhole-box video {
        width: 140%; /* Ensure video covers the area, might need adjustment */
        margin-top: -27%;
    }

    .left {
        scale: 0.9; /* Scale down logo/title */
        margin-left: -30px;
    }

    .left h2 {
        font-size: 20px;
    }

    .hero {
        scale: 0.9; /* Scale down hero section */
    }

    .hero-info{
        bottom: 15%;
    }

    .hero-info h1{
        font-size: 35px;
    }

    .scroll-down{
        bottom: 15%;
        left: 60%;
    }

    .section-title {
        font-size: 25px; /* Smaller section titles */
    }

    .info-cards{
        display: flex; /* Use flex for single column if grid causes issues */
        flex-direction: column;
    }

    .card {
        min-height: 20rem; /* Ensure cards have enough height */
    }

    .card h1{
        bottom: 30%;
        font-size: 5px; /* This seems too small, might be a typo or needs review */
    }

    .project-card {
        height: 50%;
    }

    .project-info p{
        margin-bottom: 15px;
    }

    .project-info{
        margin-left: -80px;
    }

    .skills-box{
        height: 120vh; /* Adjust height for skills section */
        margin-right: 30px;
    }

    .slider{
        bottom: 0%; /* Adjust slider position */
    }

    .contact-section{
        scale: 0.9; /* Scale down contact section */
        height: 120vh;
    }

    .contact-section .section-title {
        top: -30px;
        left: 25%;
    }

    .footer{
        padding: 15px; /* Adjust footer padding */
    }

    .footer h1{
        max-width: 150px; /* Limit width of footer text */
    }

    .footer .box-icons{
        gap: 10px; /* Smaller gap for footer icons */
    }
}






/* From your original style.css (around line 900+) */
@media screen and (max-width: 700px){
    /* ... other rules ... */

    
    .project-info{
        overflow: hidden;
        padding-left: 0;
        margin-left: -50px; /* Negative margin for the info box */
        width: 85%;
    }
     .project-info h1{ /* These rules also apply to all project-info h1 */
        font-size: 20px;
        max-width: 200px;
        text-wrap: wrap; /* Already wrap, 'nowrap' was on desktop */
        text-align: center; /* Ensures h1 is centered */
    }

    .project-info p{ /* These rules also apply to all project-info p */
        font-size: 10px;
        text-wrap: wrap;
        max-width: 200px;
        min-width: 0;
        text-align: center; /* Ensures p is centered */
    }
     .project-info button{ /* These rules also apply to all project-info button */
        padding: 5px 10px;
        align-items: center;
        /* To center the button if it's not already by align-items:center on .project-info */
        /* margin-left: auto; */
        /* margin-right: auto; */
        /* display: block; */ /* if it's inline */
    }


    /* ... other rules ... */
}