/* Responsive Styles */

/* Mobile Header Styles */
#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.377);
    z-index: 998;
    padding: 0 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    padding-top: 3vw;
}

.mobile-logo h3 {
    font-family: 'font1', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #000, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

#mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
}

#mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.533);
    backdrop-filter: blur(10px);
    border-radius: 5vw;
    z-index: 999;
    justify-content: flex-end;
    align-items: flex-start;
    transition: all 0.9s ease-in;
    margin-left: 35vw;
}

#mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 30px;
    text-align: center;
    margin-top: 60px;
    margin-right: 30px;
}

#mobile-nav ul li {
    font-size: 24px;
    font-weight: 600;
}

#mobile-nav ul li a {
    text-decoration: none;
    color: #fff;
    
}

#mobile-nav ul li a:hover {
    color: #ff0000;
}

.close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Large Desktop (1200px and up) */
@media only screen and (min-width: 1201px) {
    .hero-left img {
        width: 350px;
        height: 350px;
    }
}

/* Desktop (992px to 1200px) */
@media only screen and (max-width: 1200px) {
    .hero-left img {
        width: 300px;
        height: 300px;
    }
    
    .about-hero-section-left {
        width: 400px;
        height: 350px;
    }
    
    .hero-section-right-content-left,
    .hero-section-right-content-right {
        width: 350px;
    }
    
    .projects-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .projects-content {
        width: 45%;
    }
}

/* Tablet (768px to 991px) */
@media only screen and (max-width: 991px) {
    #web-nav {
        display: none;
    }
    
    #mobile-header {
        display: flex;
    }
    
    #mobile-nav-toggle {
        display: block;
    }
    
    section {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
        padding-top: 100px; /* Add space for fixed mobile header */
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
    }
    
    .hero-left,
    .hero-right {
        width: 100%;
        height: auto;
        padding: 0;
    }
    
    .hero-right h5 {
        font-size: 16px;
    }
    
    .hero-right h1 {
        font-size: 32px;
    }
    
    .hero-right h2 {
        font-size: 18px;
    }
    
    .hero-right-buttons a {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 6vw;
    }
    
    .about-hero-section {
        flex-direction: column;
    }
    
    .about-hero-section-left {
        width: 80%;
        height: 300px;
        margin-bottom: 30px;
    }
    
    .about-hero-section-right {
        width: 100%;
        height: auto;
        margin-left: 0;
    }
    
    .hero-section-right-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-section-right-content-left,
    .hero-section-right-content-right {
        width: 80%;
    }
    
    .about-heading h1,
    .projects-headings h1,
    .contact-headings h1 {
        font-size: 28px;
    }
    
    .about-heading h5,
    .projects-headings h5,
    .contact-headings h5 {
        font-size: 14px;
    }
    
    .projects-content {
        width: 90%;
        height: auto;
    }
    
    .contact-headings {
        padding-bottom: 30px;
    }
    
    .contact-container {
        gap: 30px;
        padding: 0 10px;
    }
    
    .contact-card {
        width: 100%;
        max-width: 300px;
        padding: 20px;
    }
}

/* Mobile (576px to 767px) */
@media only screen and (max-width: 767px) {
    #about{
        margin-top: -30vw;
        margin-bottom: 30vw;
    }
    .hero-left img {
        width: 300px;
        height: 300px;
    }
    
    .about-hero-section-left {
        width: 90%;
        height: 200px;
    }
    #para{
        font-size: 17px;
        margin-top: 5vw;
    }
    
    .hero-section-right-content-left,
    .hero-section-right-content-right {
        width: 90%;
        height: 150px;
        padding: 10px;
    }
    
    .hero-section-right-content-left i,
    .hero-section-right-content-right i {
        font-size: 18px;
    }
    
    .hero-section-right-content-left h3,
    .hero-section-right-content-right h3 {
        font-size: 18px;
    }
    .projects-content {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .projects-content .projects-image {
        width: 100%;
        margin-left: 0;
        background-position: center;
        background-size: cover;
    }
    
    .projects-image h1 {
        font-size: 18px;
        margin-top: 3vw;
        margin-bottom: 3vw;
    }
    
    .projects-btns a {
        font-size: 12px;
        padding: 8px 16px;
        border-radius: 6vw;
    }
    #contact {
        margin-top: -30vw;
        margin-bottom: 30vw;
    }
    .contact-headings{
        padding: 0 10px;
        margin-top: -20vw;
        margin-bottom: 20vw;
    }
    .contact-headings-part2 {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        width: 90%;
    }
    
    footer a {
        font-size: 16px;
        margin-right: 10px;
    }
}

/* Small Mobile (up to 575px) */
@media only screen and (max-width: 575px) {
    .hero-right h1 {
        font-size: 28px;
    }
    
    .hero-right h2 {
        font-size: 16px;
    }
    
    .hero-right-buttons {
        flex-direction: column;
    }
    
    .about-hero-section-right p {
        padding: 10px;
        font-size: 14px;
    }
    
    .hero-section-right-content-left h5,
    .hero-section-right-content-right h5 {
        font-size: 12px;
    }
    
    .contact-headings-part2 h4 {
        font-size: 14px;
    }
    
    footer a {
        font-size: 14px;
        margin-right: 8px;
    }
    
    footer h6 {
        font-size: 12px;
    }
}