/* ========================================
   RESPONSIVE DESIGN UNIVERSAL
   Cubre TODOS los dispositivos del mercado
   ========================================
   
   BREAKPOINTS:
   - 2560px+: 4K/5K Displays
   - 1920px+: Full HD Desktop
   - 1440px: Laptops estándar
   - 1280px: Laptops pequeñas
   - 1024px: Tablets (iPad, Surface)
   - 768px: Tablets pequeñas / Phablets
   - 640px: Móviles grandes (Pro Max, Ultra)
   - 480px: Móviles estándar (iPhone, Galaxy)
   - 414px: Móviles compactos (mini, SE)
   - 375px: Móviles pequeños (SE 2020)
   - 360px: Móviles muy pequeños
   - 320px: Wearables / Smartwatches
   ======================================== */

/* ========================================
   4K / 5K DISPLAYS (2560px+)
   ======================================== */
@media (min-width: 2560px) {
    :root {
        --container-max: 1800px;
        --container-padding: 4rem;
    }

    .hero-title {
        font-size: clamp(4rem, 8vw, 16rem);
    }

    .section-title,
    .section-title-dark {
        font-size: clamp(3rem, 6vw, 6rem);
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 2.5rem;
    }

    .project-glass,
    .project-card {
        min-height: 550px;
    }

    .skill-tags {
        gap: 1.25rem;
    }

    .skill-tag {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* ========================================
   FULL HD DESKTOP (1920px - 2559px)
   ======================================== */
@media (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --container-max: 1600px;
        --container-padding: 3rem;
    }

    .hero-title {
        font-size: clamp(3.5rem, 7vw, 14rem);
    }

    .section-title,
    .section-title-dark {
        font-size: clamp(2.5rem, 5vw, 5rem);
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }
}

/* ========================================
   LAPTOPS GRANDES (1441px - 1919px)
   ======================================== */
@media (min-width: 1441px) and (max-width: 1919px) {
    :root {
        --container-max: 1300px;
        --container-padding: 2.5rem;
    }
}

/* ========================================
   LAPTOPS ESTÁNDAR (1281px - 1440px)
   ======================================== */
@media (min-width: 1281px) and (max-width: 1440px) {
    :root {
        --container-max: 1200px;
        --container-padding: 2rem;
    }
}

/* ========================================
   TABLETS LARGE / LAPTOPS PEQUEÑAS (max 1280px)
   ======================================== */
@media (max-width: 1280px) {
    .project-featured,
    .blog-featured {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .skills-grid,
    .contact-grid {
        gap: 3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 10rem);
    }
}

/* ========================================
   TABLETS ESTÁNDAR (769px - 1024px) LANDSCAPE
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xl: 4rem;
    }

    .nav-container {
        padding: 1rem var(--container-padding);
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .project-glass {
        padding: 1.75rem;
        min-height: 400px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .specialty-card {
        flex-direction: row;
        text-align: left;
    }

    .specialty-icon {
        margin: 0;
    }
}

/* ========================================
   TABLETS PEQUEÑAS / PHABLETS (max 768px)
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem var(--container-padding);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link,
    .nav-item-btn {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    #userNavContainer {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
        width: 100%;
    }

    .settings-dropdown {
        width: 100%;
    }

    #settingsBtn {
        width: 100%;
        justify-content: space-between;
    }

    .settings-menu {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        min-width: unset !important;
        margin-top: 0.5rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
        padding: 0.5rem;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--color-white);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --container-padding: 1.5rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 8rem);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .scroll-indicator {
        font-size: 0.8rem;
    }

    .section-title,
    .section-title-dark {
        font-size: clamp(1.75rem, 6vw, 3rem);
        margin-bottom: 2rem;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
        gap: 1.25rem;
    }

    .project-glass {
        padding: 2rem;
        min-height: 400px;
    }

    .project-card {
        min-height: 450px;
    }

    .project-image-top {
        height: 200px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1.05rem;
    }

    .about-intro {
        font-size: 1.15rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1.5rem;
    }

    .specialty-card {
        flex-direction: row;
        text-align: left;
    }

    .specialty-icon {
        margin: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .modal-content {
        width: 90%;
        max-width: 500px;
    }

    .modal-body {
        padding: 2rem;
    }

    .admin-container {
        width: 90%;
        max-width: 600px;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-detail-container {
        width: 90%;
        padding: 2rem;
    }

    .blog-detail-img {
        max-height: 300px;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .toast {
        min-width: 280px;
        max-width: 90%;
    }
}

/* ========================================
   MÓVILES GRANDES (max 640px) - Pro Max, Ultra
   ======================================== */
@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.25rem;
    }

    .nav-logo {
        font-size: 1.35rem;
    }

    .nav-links {
        width: 80%;
        padding: 4.5rem 1.75rem 2rem;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11vw, 4.5rem);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .scroll-indicator {
        font-size: 0.75rem;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 3rem 1.25rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }

    .project-glass {
        padding: 1.75rem;
        min-height: 380px;
    }

    .project-title {
        font-size: 1.65rem;
    }

    .project-description {
        font-size: 0.975rem;
    }

    .project-card {
        min-height: 420px;
    }

    .project-image-top {
        height: 190px;
    }

    .project-tech {
        gap: 0.65rem;
    }

    .tech-tag {
        font-size: 0.825rem;
        padding: 0.45rem 0.9rem;
    }

    .blog-image {
        height: 190px;
    }

    .blog-title {
        font-size: 1.35rem;
    }

    .blog-excerpt {
        font-size: 0.925rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .tech-badge {
        font-size: 0.825rem;
        padding: 0.45rem 0.85rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1.35rem;
    }

    .skill-card-title {
        font-size: 1.35rem;
    }

    .skill-tag {
        font-size: 0.875rem;
        padding: 0.55rem 1.1rem;
    }

    .specialty-card {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
    }

    .specialty-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .specialty-title {
        font-size: 1.15rem;
    }

    .specialty-description {
        font-size: 0.925rem;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }

    .contact-title {
        font-size: 1.875rem;
    }

    .contact-description {
        font-size: 0.975rem;
    }

    .contact-info-item {
        font-size: 0.925rem;
    }

    .contact-info-item svg {
        width: 21px;
        height: 21px;
        min-width: 21px;
    }

    .footer {
        padding: 3rem 1.25rem 2rem;
    }

    .footer-brand h3 {
        font-size: 1.35rem;
    }

    .modal-content {
        width: 92%;
        max-width: 450px;
    }

    .modal-body {
        padding: 1.75rem;
    }

    .modal-title {
        font-size: 2.25rem;
    }

    .admin-container {
        width: 92%;
        max-width: 550px;
    }

    .admin-header h2 {
        font-size: 1.65rem;
    }

    .blog-detail-container {
        width: 92%;
        padding: 1.75rem;
    }

    .blog-detail-img {
        height: 220px;
    }

    .blog-detail-title {
        font-size: 1.875rem;
    }

    .toast {
        min-width: 270px;
        padding: 0.9rem 1.35rem;
        font-size: 0.925rem;
    }
}

/* ========================================
   MÓVILES ESTÁNDAR (max 480px) - iPhone, Galaxy S
   ======================================== */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        width: 82%;
        padding: 4.5rem 1.5rem 2rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.75rem);
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .scroll-indicator {
        font-size: 0.725rem;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 2.5rem 1rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .project-glass {
        padding: 1.5rem;
        min-height: 360px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.925rem;
    }

    .project-card {
        min-height: 400px;
    }

    .project-image-top {
        height: 180px;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.425rem 0.85rem;
    }

    .blog-image {
        height: 180px;
    }

    .blog-title {
        font-size: 1.25rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }

    .about-text {
        font-size: 0.975rem;
    }

    .about-intro {
        font-size: 1.075rem;
    }

    .tech-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .info-card {
        padding: 1.15rem;
    }

    .info-card h3 {
        font-size: 0.9rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1.25rem;
    }

    .skill-card-title {
        font-size: 1.25rem;
    }

    .skill-tag {
        font-size: 0.825rem;
        padding: 0.5rem 1rem;
    }

    .specialty-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .specialty-icon {
        margin: 0 auto;
        width: 50px;
        height: 50px;
    }

    .specialty-title {
        font-size: 1.1rem;
    }

    .specialty-description {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form {
        gap: 0.85rem;
    }

    .contact-form .form-group label {
        font-size: 0.8rem;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-form .form-group textarea {
        min-height: 100px;
    }

    .btn-contact {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-info-item {
        font-size: 0.9rem;
    }

    .contact-info-item svg {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 2.5rem 1rem 1.75rem;
    }

    .footer-brand h3 {
        font-size: 1.25rem;
    }

    .modal-content {
        width: 95%;
        max-width: 420px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.825rem;
    }

    .admin-container {
        width: 95%;
    }

    .admin-header h2 {
        font-size: 1.5rem;
    }

    .blog-detail-container {
        width: 95%;
        padding: 1.5rem;
    }

    .blog-detail-img {
        height: 200px;
    }

    .blog-detail-title {
        font-size: 1.75rem;
    }

    .blog-full-content {
        font-size: 0.95rem;
    }

    .toast {
        min-width: 260px;
        max-width: 95%;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   MÓVILES COMPACTOS (max 414px) - iPhone mini, SE
   ======================================== */
@media (max-width: 414px) {
    .nav-container {
        padding: 0.85rem 0.9rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 85%;
        padding: 4.5rem 1.35rem 2rem;
    }

    .hero {
        min-height: 75vh;
    }

    .hero-title {
        font-size: clamp(1.875rem, 9.5vw, 3.5rem);
        margin-bottom: 1.15rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2.25rem;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 2.35rem 0.9rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.65rem;
    }

    .project-glass {
        padding: 1.35rem;
        min-height: 340px;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .project-card {
        min-height: 380px;
    }

    .project-image-top {
        height: 170px;
    }

    .blog-image {
        height: 170px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-excerpt {
        font-size: 0.875rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1.15rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .specialty-icon {
        width: 48px;
        height: 48px;
    }

    .specialty-title {
        font-size: 1.05rem;
    }

    .contact-form-wrapper {
        padding: 1.35rem;
    }

    .contact-title {
        font-size: 1.65rem;
    }

    .contact-description {
        font-size: 0.925rem;
    }

    .contact-info-item {
        font-size: 0.875rem;
    }

    .modal-content {
        width: 96%;
    }

    .modal-body {
        padding: 1.35rem;
    }

    .modal-title {
        font-size: 1.875rem;
    }

    .btn-primary {
        padding: 0.875rem;
    }
}

/* ========================================
   MÓVILES PEQUEÑOS (max 375px) - iPhone SE 2020
   ======================================== */
@media (max-width: 375px) {
    .nav-container {
        padding: 0.75rem 0.85rem;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-links {
        width: 87%;
        padding: 4.25rem 1.25rem 2rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 3.25rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        font-size: 0.7rem;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 2.25rem 0.85rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.55rem;
    }

    .project-glass {
        padding: 1.25rem;
        min-height: 320px;
    }

    .project-title {
        font-size: 1.35rem;
    }

    .project-description {
        font-size: 0.875rem;
    }

    .project-card {
        min-height: 360px;
    }

    .project-image-top {
        height: 160px;
    }

    .tech-tag {
        font-size: 0.775rem;
        padding: 0.4rem 0.8rem;
    }

    .blog-image {
        height: 160px;
    }

    .blog-title {
        font-size: 1.15rem;
    }

    .blog-excerpt {
        font-size: 0.85rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .about-intro {
        font-size: 1.05rem;
    }

    .tech-badge {
        font-size: 0.775rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1.1rem;
    }

    .skill-card-title {
        font-size: 1.2rem;
    }

    .skill-tag {
        font-size: 0.775rem;
        padding: 0.425rem 0.85rem;
    }

    .specialty-icon {
        width: 46px;
        height: 46px;
    }

    .specialty-title {
        font-size: 1rem;
    }

    .specialty-description {
        font-size: 0.875rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .contact-form {
        gap: 0.8rem;
    }

    .contact-form .form-group label {
        font-size: 0.775rem;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.7rem;
        font-size: 0.875rem;
    }

    .contact-form .form-group textarea {
        min-height: 95px;
    }

    .btn-contact {
        padding: 0.85rem;
        font-size: 0.875rem;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-description {
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 0.9rem;
    }

    .contact-info-item {
        font-size: 0.85rem;
    }

    .contact-info-item svg {
        width: 19px;
        height: 19px;
    }

    .footer {
        padding: 2.25rem 0.85rem 1.65rem;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .modal-content {
        width: 97%;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .form-group label {
        font-size: 0.775rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .admin-container {
        width: 97%;
    }

    .admin-header h2 {
        font-size: 1.4rem;
    }

    .blog-detail-container {
        width: 97%;
        padding: 1.35rem;
    }

    .blog-detail-img {
        height: 190px;
    }

    .blog-detail-title {
        font-size: 1.65rem;
    }

    .blog-full-content {
        font-size: 0.925rem;
    }

    .toast {
        min-width: 240px;
        padding: 0.8rem 1.15rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   MÓVILES MUY PEQUEÑOS (max 360px)
   ======================================== */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.7rem 0.8rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 90%;
        padding: 4rem 1.15rem 1.75rem;
    }

    .hero {
        min-height: 65vh;
    }

    .hero-title {
        font-size: clamp(1.65rem, 8.5vw, 3rem);
        margin-bottom: 0.9rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.85rem;
    }

    .scroll-indicator {
        font-size: 0.675rem;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 2rem 0.8rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.5rem;
    }

    .project-glass {
        padding: 1.15rem;
        min-height: 300px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .project-card {
        min-height: 340px;
    }

    .project-image-top {
        height: 150px;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .blog-image {
        height: 150px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-excerpt {
        font-size: 0.825rem;
    }

    .about-text {
        font-size: 0.925rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .skill-card,
    .specialty-card {
        padding: 1rem;
    }

    .skill-card-title {
        font-size: 1.15rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .specialty-icon {
        width: 44px;
        height: 44px;
    }

    .specialty-title {
        font-size: 0.975rem;
    }

    .specialty-description {
        font-size: 0.85rem;
    }

    .contact-form-wrapper {
        padding: 1.15rem;
    }

    .contact-form {
        gap: 0.75rem;
    }

    .contact-form .form-group label {
        font-size: 0.75rem;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.675rem;
        font-size: 0.85rem;
    }

    .contact-form .form-group textarea {
        min-height: 90px;
    }

    .btn-contact {
        padding: 0.825rem;
        font-size: 0.85rem;
    }

    .contact-title {
        font-size: 1.55rem;
    }

    .contact-description {
        font-size: 0.875rem;
    }

    .contact-info {
        gap: 0.85rem;
    }

    .contact-info-item {
        font-size: 0.825rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info-item svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding: 2rem 0.8rem 1.5rem;
    }

    .footer-brand h3 {
        font-size: 1.15rem;
    }

    .modal-content {
        width: 98%;
    }

    .modal-body {
        padding: 1.15rem;
    }

    .modal-title {
        font-size: 1.65rem;
    }

    .form-group {
        gap: 0.45rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 0.825rem;
        font-size: 0.875rem;
    }

    .admin-container {
        width: 98%;
    }

    .admin-header h2 {
        font-size: 1.35rem;
    }

    .admin-tab {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    .blog-detail-container {
        width: 98%;
        padding: 1.25rem;
    }

    .blog-detail-img {
        height: 180px;
    }

    .blog-detail-title {
        font-size: 1.55rem;
    }

    .blog-full-content {
        font-size: 0.9rem;
    }

    .toast {
        min-width: 230px;
        padding: 0.75rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   WEARABLES / SMARTWATCHES (max 320px)
   ======================================== */
@media (max-width: 320px) {
    .nav-container {
        padding: 0.65rem 0.75rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-links {
        width: 92%;
        padding: 3.75rem 1rem 1.5rem;
    }

    .nav-link,
    .nav-item-btn {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.75rem);
        margin-bottom: 0.85rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.75rem;
    }

    .scroll-indicator {
        display: none;
    }

    .projects,
    .blog,
    .skills-section,
    .contact-section {
        padding: 1.85rem 0.75rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.4rem;
    }

    .project-glass {
        padding: 1rem;
        min-height: 280px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.825rem;
    }

    .project-card {
        min-height: 320px;
    }

    .project-image-top {
        height: 140px;
    }

    .tech-tag {
        font-size: 0.725rem;
        padding: 0.35rem 0.7rem;
    }

    .blog-image {
        height: 140px;
    }

    .blog-title {
        font-size: 1.05rem;
    }

    .blog-excerpt {
        font-size: 0.8rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .about-intro {
        font-size: 0.975rem;
    }

    .tech-badge {
        font-size: 0.725rem;
        padding: 0.325rem 0.65rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 0.85rem;
    }

    .skill-card,
    .specialty-card {
        padding: 0.95rem;
    }

    .skill-card-title {
        font-size: 1.1rem;
    }

    .skill-tag {
        font-size: 0.725rem;
        padding: 0.35rem 0.7rem;
    }

    .specialty-card {
        gap: 0.9rem;
    }

    .specialty-icon {
        width: 42px;
        height: 42px;
    }

    .specialty-title {
        font-size: 0.95rem;
    }

    .specialty-description {
        font-size: 0.825rem;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }

    .contact-form {
        gap: 0.7rem;
    }

    .contact-form .form-group label {
        font-size: 0.725rem;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.65rem;
        font-size: 0.825rem;
    }

    .contact-form .form-group textarea {
        min-height: 85px;
    }

    .btn-contact {
        padding: 0.8rem;
        font-size: 0.825rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-description {
        font-size: 0.85rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-info-item {
        font-size: 0.8rem;
    }

    .contact-info-item svg {
        width: 17px;
        height: 17px;
    }

    .footer {
        padding: 1.85rem 0.75rem 1.35rem;
    }

    .footer-brand h3 {
        font-size: 1.1rem;
    }

    .modal-content {
        width: 99%;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.55rem;
    }

    .form-group {
        gap: 0.425rem;
    }

    .form-group label {
        font-size: 0.725rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.675rem;
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .admin-container {
        width: 99%;
    }

    .admin-header h2 {
        font-size: 1.3rem;
    }

    .admin-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.825rem;
    }

    .blog-detail-container {
        width: 99%;
        padding: 1.15rem;
    }

    .blog-detail-img {
        height: 170px;
    }

    .blog-detail-title {
        font-size: 1.45rem;
    }

    .blog-full-content {
        font-size: 0.875rem;
    }

    .toast {
        min-width: 220px;
        padding: 0.7rem 1rem;
        font-size: 0.825rem;
    }
}
