/* css/responsive.css */

/* Tablet and smaller (e.g., up to 992px) */
@media (max-width: 992px) {
    html {
        font-size: 9.5px; 
    }
    .section-title {
        font-size: 2.8rem;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }

    .builder-layout {
        grid-template-columns: 1fr; 
    }
    .preview-container-wrapper {
        position: relative; 
        top: 0;
        margin-top: 3rem; 
        max-height: none;
        overflow-y: visible;
    }
    .preview-cnt {
        grid-template-columns: 1fr; 
    }
    .preview-cnt-l {
        padding: 2.5rem;
        text-align: center; 
    }
    .preview-cnt-l .preview-blk-title h3 {
        display: block; 
        text-align: center;
    }
     .preview-cnt-l .contact-info-blk .preview-item {
        justify-content: center; 
    }
    .preview-cnt-r {
        padding: 2.5rem;
    }
}

/* Mobile devices (e.g., up to 768px) */
@media (max-width: 768px) {
    html {
        font-size: 9px;
    }
    :root {
        --header-height: 60px;
    }
    .section-padding {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2.6rem;
        margin-bottom: 3rem;
    }
    .hero-section {
        margin-top: var(--header-height);
        height: auto; 
        min-height: calc(100vh - var(--header-height));
        padding: 5rem 0;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-subtitle {
        font-size: 1.6rem;
    }
    .btn-hero {
        padding: 1.2rem 2.5rem;
        font-size: 1.6rem;
    }

    /* Navbar Mobile */
    .menu-toggle {
        display: block; 
        z-index: 1002; 
    }
    .navbar-menu {
        position: fixed;
        top: 0;
        right: 0; 
        width: 70%; 
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        padding: calc(var(--header-height) + 3rem) 2rem 2rem; 
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%); 
        z-index: 1001; 
    }
    .navbar-menu.active {
        transform: translateX(0); 
    }
    .navbar-menu li {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    .nav-link {
        font-size: 1.8rem;
        display: block; 
    }

    .form-container {
        padding: 2rem;
    }
    .form-grid.cols-2 {
        grid-template-columns: 1fr; 
    }
    .repeater-remove-btn {
        position: relative; /* Change from absolute */
        bottom: auto;
        right: auto;
        display: block;
        width: 100%;
        margin-top: 1rem;
    }
    .repeater-item .cv-form-row {
        padding-bottom: 1.5rem; /* Reset padding when button is not absolute */
    }
    .skill-repeater-item .repeater-remove-btn.small-remove-btn {
        width: auto; /* Allow small remove button to not be full width */
        margin-top: 0; /* Align with skill input if needed */
    }


    .features-grid {
        grid-template-columns: 1fr; 
    }

    .contact-form {
        padding: 2rem;
    }
    .contact-form .form-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Smaller mobile devices (e.g., up to 480px) */
@media (max-width: 480px) {
    html {
        font-size: 8.5px;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .btn {
        padding: 1rem 2rem;
        font-size: 1.5rem;
    }
    .preview-image {
        width: 100px;
        height: 100px;
    }
    .preview-item-name .preview-item-val {
        font-size: 2rem;
    }
     .preview-cnt-l, .preview-cnt-r {
        padding: 2rem 1.5rem; /* Reduce padding further on very small screens */
    }
}