/* RESET AND BASE STYLES */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* NAVBAR STYLES - FIXED VERSION */
.navbarbox {
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    z-index: 1001;
}

/* DESKTOP NAV MENU */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* HAMBURGER - HIDDEN ON DESKTOP */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* BODY PADDING FOR FIXED NAVBAR */
body {
    padding-top: 70px;
}

/* MATRIX BACKGROUND */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(156, 110, 110);
    z-index: -1;
}

/* HOME SECTION */
.home {
    color: whitesmoke;
    display: flex;
    justify-content: space-evenly;
    height: 100vh;
    width: 100vw;
}

.profile-pic {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #343a40;
}

.profile-pic-anmol {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

.home-left {
    padding-top: 15vh;
}

.home-right {
    padding-top: 15vh;
}

.home-right h2 {
    font-size: 4.8rem;
}

.home-right p {
    font-size: 1.8rem;
}

.home-para {
    width: 40vw;
}

.btn-size {
    width: 20vh;
    height: 10vh;
    text-align: center;
}

.link-box {
    display: flex;
    justify-content: space-around;
    padding-top: 15vh;
    text-align: center;
    align-items: center;
}

.link-box a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.glass-effect {
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}

.glass-effect:hover {
    backdrop-filter: blur(9px);
    transform: scale(1.05);
}

/* PROJECTS SECTION */
.project {
    height: auto;
    min-height: 100vh;
    width: 100vw;
    color: whitesmoke;
    padding-bottom: 2rem;
}

.project h1 {
    font-size: 3.8rem;
    text-align: center;
    padding-top: 10vh;
}

.project-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding-top: 10vh;
    flex-wrap: wrap;
    gap: 2rem;
}

.amazon-image-size {
    width: 100%;
    max-width: 20vw;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px 10px 0px 0px;
}

.project-btn {
    width: 100%;
    max-width: 20vw;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #495057;
    color: white;
    transition: all 0.3s ease;
    border-radius: 0px 0px 10px 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-btn:hover {
    backdrop-filter: blur(9px);
    transform: scale(1.05);
}

.animation {
    transition: transform 0.3s ease-in-out;
}

.animation:hover {
    transform: scale(1.02);
}

.animation2 {
    transition: transform 0.4s ease-in-out;
}

.animation2:hover {
    transform: scale(1.05);
    box-shadow: 0px 2px 4px 0 rgba(41, 40, 40, 0.2);
}

/* SKILLS SECTION */
.skills {
    height: auto;
    min-height: 100vh;
    width: 100vw;
    padding-bottom: 2rem;
}

.skills h1 {
    font-size: 3.8rem;
    text-align: center;
    padding-top: 10vh;
    color: whitesmoke;
}

.skills-container {
    height: auto;
    min-height: 70vh;
    width: 100vw;
    display: flex;
    justify-content: space-evenly;
    padding-top: 10vh;
    flex-wrap: wrap;
    font-size: 1.2rem;
    gap: 2rem;
    padding: 2rem;
}

.skills-sub-container {
    width: 100%;
    max-width: 25vw;
    height: auto;
    min-height: 50vh;
    padding: 3rem;
    border-radius: 2rem;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-item-container {
    padding-top: 2rem;
}

.skills-item {
    width: 100%;
    max-width: 90rem;
    height: auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.box-one-skills {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ACHIEVEMENTS SECTION */
.achivements {
    height: auto;
    min-height: 100vh;
    width: 100vw;
    padding-bottom: 2rem;
}

.achive-h1 {
    font-size: 3.8rem;
    text-align: center;
    padding-top: 10vh;
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}

.achive-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.achievement-card {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    padding: 15px;
    margin: 15px;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-pic-achive {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.image-container {
    height: 250px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.carousel-inner img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

  /* ////////////////////////////////////////////////////////////CONTACT\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  
  *, *:before, *:after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1.4px;
  }
  
  .background {
    display: flex;
    min-height: 100vh;
  }
  
  .container {
    flex: 0 1 700px;
    margin: auto;
    padding: 10px;
    width: 100%;
  }
  
  .screen {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .screen:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  }
  
  .screen {
    position: relative;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1 px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
  }
  
  .screen:hover::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
  }
  
  .screen:hover {
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease-in-out;
    transform: scale(1.05);
  }
  
  .screen-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  
  .screen-header-left {
    margin-right: auto;
  }
  
  .screen-header-button {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 8px;
    background: white;
  }
  
  .screen-header-button.close {
    background: #ed1c6f;
  }
  
  .screen-header-button.maximize {
    background: #e8e925;
  }
  
  .screen-header-button.minimize {
    background: #74c54f;
  }
  
  .screen-header-right {
    display: flex;
  }
  
  .screen-header-ellipsis {
    width: 3px;
    height: 3px;
    margin-left: 2px;
    border-radius: 8px;
    background: #999;
  }
  
  .screen-body {
    display: flex;
    flex-wrap: wrap;
  }
  
  .screen-body-item {
    flex: 1;
    padding: 50px;
    min-width: 300px;
  }
  
  .screen-body-item.left {
    display: flex;
    flex-direction: column;
  }
  
  .app-title {
    display: flex;
    flex-direction: column;
    position: relative;
    color: #ea1d6f;
    font-size: 26px;
  }
  
  .app-title:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 25px;
    height: 4px;
    background: #ea1d6f;
  }
  
  .app-contact {
    margin-top: auto;
    font-size: 8px;
    color: #888;
    margin-top: 20px;
  }
  
  .app-form-group {
    margin-bottom: 15px;
  }
  
  .app-form-group.message {
    margin-top: 40px;
  }
  
  .app-form-group.buttons {
    margin-bottom: 0;
    text-align: right;
  }
  
  .app-form-control {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #666;
    color: #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
  }
  
  .app-form-control::placeholder {
    color: #666;
  }
  
  .app-form-control:focus {
    border-bottom-color: #ddd;
  }
  
  .app-form-button {
    background: none;
    border: none;
    color: #ea1d6f;
    font-size: 14px;
    cursor: pointer;
    outline: none;
  }
  
  .app-form-button:hover {
    color: #b9134f;
  }
  
  .social-icons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .glassIco {
    width: 60px;
    height: 60px;
    font-size: 28px;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(227, 220, 220, 0.336);
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .glassIco::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(45deg) translateX(150%);
    transition: transform 0.5s;
  }
  
  .glassIco:hover::before {
    transform: skewX(45deg) translateX(-150%);
  }
  
  .glassIco:hover {
    transform: translateY(-8px);
  }

/* ===== MOBILE RESPONSIVENESS ===== */

/* Tablet and below */
@media screen and (max-width: 768px) {
    /* HAMBURGER MENU - CRITICAL FIXES */
    .hamburger {
        display: flex !important; /* Force show hamburger */
    }
    
    .nav-menu {
        position: fixed !important;
        top: 70px !important; /* Below navbar */
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(25px) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 2rem !important;
        gap: 1.5rem !important;
        transition: left 0.4s ease !important;
        z-index: 999 !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .nav-menu a {
        width: 200px !important;
        text-align: center !important;
        padding: 15px 25px !important;
        font-size: 1.3rem !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Home section adjustments */
    .home {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .home-left, .home-right {
        padding-top: 5vh;
        width: 100%;
    }
    
    .home-para {
        width: 80%;
        margin: 0 auto;
    }
    
    .profile-pic {
        max-width: 300px;
    }
    
    .link-box {
        padding-top: 5vh;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .btn-size {
        width: 200px;
        height: 60px;
    }
    
    /* Project adjustments */
    .project-container {
        flex-direction: column;
        align-items: center;
    }
    
    .amazon-image-size {
        max-width: 80vw;
    }
    
    .project-btn {
        max-width: 80vw;
    }
    
    /* Skills adjustments */
    .skills-sub-container {
        max-width: 80vw;
        margin: 1rem 0;
    }
    
    .home-right h2 {
        font-size: 2.8rem;
    }
    
    .project h1, .skills h1, .achive-h1 {
        font-size: 2.8rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .navbarbox {
        padding: 0 1rem;
    }
    
    .nav-menu a {
        width: 180px !important;
        font-size: 1.2rem !important;
    }
    
    .home-right h2 {
        font-size: 2.2rem;
    }
    
    .home-right p {
        font-size: 1.1rem;
    }
    
    .project h1, .skills h1, .achive-h1 {
        font-size: 2.2rem;
    }
    
    .profile-pic {
        max-width: 250px;
    }
}

/* Extra small devices */
@media screen and (max-width: 360px) {
    .home-right h2 {
        font-size: 1.8rem;
    }
    
    .home-right p {
        font-size: 1rem;
    }
    
    .project h1, .skills h1, .achive-h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu a {
        width: 160px !important;
        font-size: 1.1rem !important;
    }
}