/* For screens up to 1400px wide */
@media (max-width: 1400px) {
    .hero-container {
        padding: 0 20px;
    }
    .right-content {
        margin-right: 0;
    }
    .about-me {
        width: 100%;
        padding-right: 0;
    }
    #Spinning-Text {
        font-size: 3.8rem;
    }
}

/* For screens up to 992px wide (Tablets) */
@media (max-width: 992px) {
    header {
        padding: 20px 30px;
        width: 100%;
    }
    header.sticky {
        padding: 10px 20px;
    }
    .hamburger {
        display: flex;
        z-index: 999;
        position: relative;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .nav-section {
        position: fixed;
        top: -100vh;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(30, 30, 30, .95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1;
        transition: top .5s ease;
        margin: 0;
        padding: 0;
    }
    .nav-section.active {
        top: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    nav ul li a {
        font-size: 1.5rem;
        padding: 10px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .left-content {
        max-width: 100%;
    }
    .right-content {
        margin-right: 0;
    }
    .profile-container {
        max-width: 300px;
    }
    #Spinning-Text {
        font-size: 3.5rem;
        white-space: normal;
    }
    .about-me p {
        text-align: left;
    }
    .cta-buttons {
        justify-content: center;
    }
    .about-content-wrapper {
        flex-direction: column;
    }
    .about-text {
        min-width: unset;
        max-width: 100%;
    }
    .about-image {
        margin-top: 30px;
    }
    .about-img {
        max-width: 80%;
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-form {
        min-width: 100%;
    }
    .certificates-scroll-container {
        height: 300px;
    }
    .certificate-card {
        width: 350px;
        height: 280px;
    }
}

/* For screens up to 768px wide (Small Tablets / Large Phones) */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        width: 100%;
    }
    header.sticky {
        padding: 10px 20px;
    }
    .logo img {
        height: 30px;
    }
    header.sticky .logo img {
        height: 22px;
    }
    .hero {
        padding-top: 100px;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .about-section,
    .certificates-section,
    .contact-section,
    .projects-section,
    .skills-section {
        padding: 80px 20px;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
    .project-card {
        max-width: 100%;
    }
    #Spinning-Text {
        font-size: 3rem;
    }
    .greeting {
        font-size: 1.2rem;
    }
    .about-me {
        margin-bottom: 20px;
    }
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .certificates-scroll-container {
        height: 250px;
    }
    .certificate-card {
        width: 280px;
        height: 220px;
    }
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
    nav ul li a {
        font-size: 1.3rem;
    }
    .nav-section {
        padding: 50px 20px;
    }
}

/* For screens up to 576px wide (Standard Phones) */
@media (max-width: 576px) {
    header {
        padding: 12px 15px;
        width: 100%;
        left: 0;
        right: 0;
    }
    header.sticky {
        padding: 8px 10px;
    }
    .logo img {
        height: 28px;
    }
    .hero {
        padding-top: 100px !important;
    }
    header.sticky .logo img {
        height: 20px;
    }
    .hero {
        padding-top: 100px;
    }
    .nav-section {
        width: 100vw;
    }
    .hero {
        padding: 0 20px;
    }
    #Spinning-Text {
        font-size: 2.5rem;
    }
    .profile-container {
        max-width: 250px;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        text-align: center;
    }
    .social-icons {
        gap: 10px;
    }
    .social-icons img {
        width: 28px;
    }
    .social-icons img#youtube {
        width: 35px;
    }
    .certificates-scroll-container {
        height: 220px;
    }
    .certificate-card {
        width: 240px;
        height: 190px;
    }
    .certificate-content h3 {
        font-size: 1rem;
    }
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .about-img {
        max-width: 100%;
    }
    .certificate-modal-content {
        padding: 20px 15px;
    }
    .certificate-modal-header h2 {
        font-size: 1.8rem;
    }
    .certificate-grid {
        grid-template-columns: 1fr;
    }
    .form-submit {
        width: 100%;
    }
    nav ul {
        gap: 25px;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
}

/* For screens up to 480px wide */
@media screen and (max-width: 480px) {
    header {
        padding: 12px 15px;
        width: 100%;
        max-width: none;
        margin: 0;
        left: 0;
        right: 0;
        position: fixed;
    }
    .gradient-bg {
        width: 100% !important;
    }
    .logo img {
        height: 35px;
    }
    .hero {
        padding-top: 80px;
    }
    .hamburger {
        scale: .9;
    }
    .hamburger span {
        width: 22px;
    }
    .nav-section {
        width: 100vw;
        left: 0;
        right: 0;
        padding: 0;
    }
    nav ul {
        gap: 20px;
    }
    nav ul li a {
        padding: 12px;
        display: inline-block;
    }
    .project-btn {
        padding: 8px 16px;
        margin-right: 5px;
    }
    .form-group input,
    .form-group textarea {
        padding: 14px;
    }
}

/* For screens up to 350px wide */
@media screen and (max-width: 350px) {
    header {
        padding: 10px 12px;
        width: 100% !important;
        left: 0;
        right: 0;
    }
    .logo img {
        height: 26px;
    }
    .hamburger {
        scale: .8;
    }
    .hamburger span {
        width: 20px;
    }
    nav ul {
        gap: 20px;
    }
    #Spinning-Text {
        font-size: 2rem;
    }
    .about-section,
    .certificates-section,
    .contact-section,
    .projects-section,
    .skills-section {
        padding: 60px 15px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .nav-section {
        width: 100vw;
    }
    .nav-section.active {
        top: 0;
        padding-top: 70px;
    }
    nav ul {
        gap: 15px;
    }
    nav ul li a {
        font-size: 1.1rem;
        padding: 10px;
    }
    .social-icons {
        gap: 8px;
    }
}

/* For screens up to 250px wide */
@media screen and (max-width: 250px) {
    header {
        padding: 8px 10px;
    }
    .logo img {
        height: 25px;
    }
    .hamburger {
        scale: .7;
    }
    .hamburger span {
        width: 18px;
    }
    .nav-section {
        width: 100vw;
    }
    nav ul {
        gap: 12px;
    }
    nav ul li a {
        font-size: 1rem;
        padding: 8px;
    }
    #Spinning-Text {
        font-size: 1.7rem;
    }
    .greeting {
        font-size: 1rem;
    }
    .about-me p {
        font-size: .9rem;
    }
    .certificate-card {
        width: 200px;
        height: 160px;
    }
}