/* ================= Mobile / Tablet Navbar ================= */
@media(max-width:900px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: var(--bg);
        padding: 80px 20px 30px 20px;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
        transform: translateY(-100%);
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 20px;
        margin: 5px 0;
        border-radius: 12px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .close-nav {
        display: block;
    }
}

/* ================= Mobile & Tablet Responsive (≤992px) ================= */
@media (max-width: 992px){
  /* Sections stack vertically */
  section {
    flex-direction: column;
    text-align: center;
    gap: 35px;
    padding: 100px 6% !important;
  }

  /* Home Section → image upar, text + stats neeche */
  #home .home {
    flex-direction: column;
    gap: 30px;
  }

  #home .home-img {
    order: 0;
    margin-bottom: 25px;
  }

  #home .home-img img {
    width: 100%;
    max-width: 420px;
    height: auto;
  }

  #home .home-content {
    order: 1;
  }

  #home .home-content h1 {
    font-size: 2.5rem;
  }

  #home .home-content h3 {
    font-size: 1.4rem;
  }

  /* About Section → image upar, text neeche */
  #about .home {
    flex-direction: column;
  }

  #about .home-img {
    order: 0;
    margin-bottom: 25px;
  }

  #about .home-img img {
    width: 90%;
    max-width: 380px;
  }

  #about .home-content {
    order: 1;
  }

  /* About Section Buttons Responsive */
  #about .home-content .home-btn {
    display: inline-block;
    margin: 8px 5px;
    width: auto;
    transition: all 0.3s ease;
  }

  #about .home-content .home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  /* Medium containers */
  .medium, .medium-2 {
    padding: 30px 25px;
    margin: 30px auto;
  }

  /* Stats */
  .stats {
    justify-content: center;
  }

  .stat-box {
    min-width: 160px;
  }
}
/* ================= Tablet Responsive (768px - 992px) ================= */
@media (min-width: 768px) and (max-width: 992px) {

  /* Home Section */
  .home {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .home-img {
    order: 0;
    margin-bottom: 25px;
  }

  .home-img img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.15);
  }

  .home-content h1 {
    font-size: 2.5rem;
  }

  .home-content h3 {
    font-size: 1.4rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  /* Stats */
  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-box {
    min-width: 170px;
    padding: 18px 25px;
  }

  /* About Section */
  #about .home {
    flex-direction: column;
    text-align: center;
    gap: 35px;
  }

  #about .home-img img {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Buttons centered */
  #about .home-content .home-btn {
    display: inline-block;
    width: auto;
    margin: 8px 8px;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Portfolio Masonry */
  .masonry {
    column-count: 2;
    gap: 18px;
  }

  /* Social Box - Floating below image in About */
  #about .social-box {
    position: absolute !important;
    bottom: -28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 20px !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
  }

  #about .social-box a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
  }

  #about .home-img {
    position: relative !important;
    padding-bottom: 35px !important;
  }
}
/* ================= Mobile Responsive (≤768px) ================= */
@media (max-width: 768px) {

  /* Section layout */
  section {
    flex-direction: column !important;
    text-align: center !important;
    gap: 30px !important;
    padding: 90px 5% !important;
    min-height: auto !important;
  }

  /* Home Section — image upar, text neeche */
  #home .home {
    flex-direction: column !important;
    text-align: center !important;
    gap: 25px !important;
  }

  #home .home-img {
    order: 0 !important;
    margin-bottom: 20px !important;
  }

  #home .home-img img {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    border-radius: 18px !important;
  }

  #home .home-content {
    order: 1 !important;
  }

  #home .home-content h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }

  #home .home-content h3 {
    font-size: 1.2rem !important;
  }

  #home .home-content p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Buttons center me */
  #home .home-content .home-btn {
    display: inline-block !important;
    margin: 8px 5px !important;
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
  }

  /* About Section — image upar, text neeche */
  #about .home {
    flex-direction: column !important;
    text-align: center !important;
  }

  #about .home-img {
    order: 0 !important;
    margin-bottom: 25px !important;
  }

  #about .home-img img {
    width: 90% !important;
    max-width: 340px !important;
    height: auto !important;
  }

  #about .home-content {
    order: 1 !important;
  }

  #about .home-content h1 {
    font-size: 2rem !important;
  }

  #about .home-content h3 {
    font-size: 1.2rem !important;
  }

  #about .home-content p {
    font-size: 0.95rem !important;
  }

  /* Buttons center me */
  #about .home-content .home-btn {
    display: inline-block !important;
    margin: 8px 5px !important;
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
  }

  /* Stats align center */
  .stats {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .stat-box {
    min-width: 180px !important;
    width: 100% !important;
    max-width: 250px !important;
    padding: 18px 25px !important;
  }

  .stat-box h2 {
    font-size: 1.8rem !important;
  }

  .stat-box p {
    font-size: 0.9rem !important;
  }

  /* Social Box - Keep floating below image in About section */
  #about .social-box {
    position: absolute !important;
    bottom: -25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 10px 18px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
  }

  #about .social-box a {
    font-size: 1.1rem !important;
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
  }

  /* Keep image container positioned */
  #about .home-img {
    position: relative !important;
    padding-bottom: 30px !important;
  }

  /* Contact Social Icons */
  .contact-social {
    margin-bottom: 35px !important;
  }

  .contact-social a {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    margin: 0 8px !important;
  }

  /* Footer Social Icons */
  .footer .social-icons {
    justify-content: center !important;
    gap: 12px !important;
  }

  .footer .social-icons a {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
  }

  /* Medium containers */
  .medium, .medium-2 {
    padding: 25px 20px !important;
    margin: 25px 10px !important;
    border-radius: 18px !important;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .skill-card {
    padding: 20px 15px !important;
  }

  .skill-card img {
    width: 45px !important;
    height: 45px !important;
  }

  .skill-card h3 {
    font-size: 1rem !important;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .service-card {
    padding: 25px 20px !important;
  }

  .service-card i {
    font-size: 2.5rem !important;
  }

  /* Portfolio Masonry */
  .masonry {
    column-count: 1 !important;
    gap: 15px !important;
  }

  .masonry-item {
    margin-bottom: 15px !important;
  }

  /* Contact */
  .contact-box {
    flex-direction: column !important;
    padding: 25px 20px !important;
  }

  .contact-info {
    text-align: center !important;
    margin-bottom: 25px !important;
  }

  .contact-info h2 {
    font-size: 1.4rem !important;
  }

  .info-line {
    justify-content: center !important;
    font-size: 0.9rem !important;
  }

  .contact-form {
    width: 100% !important;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
  }

  /* Footer */
  .footer {
    padding: 40px 5% !important;
  }

  .footer-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 30px !important;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    width: 100% !important;
  }

  .footer-links a {
    margin-bottom: 10px !important;
  }

  /* Tech Scroll */
  .tech-track span {
    font-size: 1.1rem !important;
    margin: 0 25px !important;
  }

  .tech-track span i {
    font-size: 1.3rem !important;
  }

  /* Theme Panel */
  .theme-panel {
    width: 92% !important;
    height: 75vh !important;
    padding: 35px 25px !important;
  }

  .theme-options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .color-option {
    width: 110px !important;
    height: 90px !important;
  }

  /* Theme Trigger */
  .theme-trigger {
    padding: 12px 18px !important;
    font-size: 13px !important;
  }
}

/* ================= Desktop / Large Devices (994px se upar) ================= */
@media (min-width: 994px) {

  /* Home Section */
  #home .home {
    display: flex !important;
    flex-direction: row !important; /* text left, image right */
    align-items: center !important;
    text-align: left !important;
    gap: 60px !important;
  }

  #home .home-content {
    order: 0 !important;
    flex: 1 1 55% !important;
  }

  #home .home-img {
    order: 1 !important;
    flex: 1 1 40% !important;
    margin-bottom: 0 !important;
  }

  #home .home-img img {
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
  }

  /* About Section */
  #about .home {
    display: flex !important;
    flex-direction: row !important; /* image left, text right */
    align-items: center !important;
    text-align: left !important;
    gap: 50px !important;
  }

  #about .home-img {
    order: 0 !important; /* image left */
    flex: 1 1 40% !important;
    margin-bottom: 0 !important;
  }

  #about .home-content {
    order: 1 !important;
    flex: 1 1 55% !important;
  }

  #about .home-img img {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* About Buttons inline */
  #about .home-content .home-btn {
    display: inline-block !important;
    margin: 0 10px 0 0 !important;
    width: auto !important;
  }

  /* Stats horizontal layout */
  .stats {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }
}
/* ================= Mobile First Responsive Design ================= */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .medium, .medium-2 {
    max-width: 1140px;
  }

  section {
    padding: 120px 10%;
  }

  .home-content h1 {
    font-size: 3.2rem;
  }

  .home-img img {
    max-width: 520px;
  }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  section {
    padding: 100px 6%;
  }
  
  .home {
    gap: 45px;
  }
  
  .home-content h1 {
    font-size: 2.6rem;
  }

  .home-content h3 {
    font-size: 1.4rem;
  }
  
  .home-img img {
    width: 100%;
    max-width: 400px;
  }
  
  .masonry {
    column-count: 2;
    gap: 18px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  section {
    padding: 85px 5%;
    min-height: auto;
  }
  
  .navbar {
    padding: 12px 20px;
  }
  
  .home {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .home-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  
  .home-content h3 {
    font-size: 1.3rem;
  }

  .home-content p {
    font-size: 0.95rem;
  }
  
  .stats {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  
  .stat-box {
    min-width: 150px;
    padding: 16px 20px;
  }

  .stat-box h2 {
    font-size: 1.6rem;
  }

  .stat-box p {
    font-size: 0.85rem;
  }
  
  .masonry {
    column-count: 2;
    gap: 15px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    padding: 30px 20px;
  }
}

/* Mobile Portrait (≤575px) */
@media (max-width: 575px) {
  /* Global */
  section {
    padding: 80px 4% !important;
    min-height: auto !important;
  }
  
  .medium, .medium-2 {
    padding: 25px 18px !important;
    margin: 25px 8px !important;
    border-radius: 16px !important;
  }
  
  /* Navigation */
  .navbar {
    padding: 10px 15px !important;
  }
  
  .logo {
    font-size: 1.1rem !important;
  }
  
  .logo span {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  
  /* Home Section */
  .home {
    flex-direction: column !important;
    text-align: center !important;
    gap: 25px !important;
  }
  
  .home-content h1 {
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
  }
  
  .home-content h3 {
    font-size: 1.2rem !important;
  }
  
  .home-content p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .home-img img {
    width: 100% !important;
    max-width: 300px !important;
  }
  
  /* Stats */
  .stats {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }
  
  .stat-box {
    width: 100% !important;
    max-width: 220px !important;
    padding: 16px 20px !important;
  }
  
  .stat-box h2 {
    font-size: 1.6rem !important;
  }
  
  .stat-box p {
    font-size: 0.85rem !important;
  }
  
  /* Buttons */
  .home-btn {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    margin: 6px 4px !important;
  }
  
  /* About Section */
  #about .home {
    flex-direction: column !important;
    text-align: center !important;
  }

  #about .home-img img {
    max-width: 280px !important;
  }

  #about .home-content h1 {
    font-size: 1.9rem !important;
  }

  #about .home-content h3 {
    font-size: 1.2rem !important;
  }

  #about .home-content p {
    font-size: 0.9rem !important;
  }
  
  /* Social Box - Keep floating in About section */
  #about .social-box {
    position: absolute !important;
    bottom: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 9px 16px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
  }

  #about .social-box a {
    padding: 9px !important;
    font-size: 1rem !important;
    width: 38px !important;
    height: 38px !important;
  }

  #about .home-img {
    position: relative !important;
    padding-bottom: 25px !important;
  }

  /* Contact Social Icons */
  .contact-social {
    margin-bottom: 30px !important;
  }

  .contact-social a {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
    margin: 0 6px !important;
  }

  /* Footer Social Icons */
  .footer .social-icons {
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  
  /* Portfolio */
  .masonry {
    column-count: 1 !important;
    padding: 15px 0 !important;
  }
  
  .masonry-item {
    margin-bottom: 15px !important;
  }
  
  /* Skills */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  
  .skill-card {
    padding: 18px 12px !important;
  }
  
  .skill-card img {
    width: 42px !important;
    height: 42px !important;
  }

  .skill-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  
  .service-card {
    padding: 22px 18px !important;
  }

  .service-card i {
    font-size: 2.3rem !important;
  }

  .service-card h3 {
    font-size: 1.2rem !important;
  }

  .service-card p {
    font-size: 0.9rem !important;
  }
  
  /* Contact */
  .contact-box {
    padding: 22px 18px !important;
    flex-direction: column !important;
  }
  
  .contact-form {
    width: 100% !important;
  }
  
  .contact-info {
    text-align: center !important;
    margin-bottom: 25px !important;
  }

  .contact-info h2 {
    font-size: 1.3rem !important;
  }
  
  .info-line {
    justify-content: center !important;
    font-size: 0.85rem !important;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
  }
  
  /* Footer */
  .footer {
    padding: 35px 4% !important;
  }

  .footer-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 25px !important;
  }
  
  .footer-brand,
  .footer-links,
  .footer-social {
    width: 100% !important;
  }

  .footer-links a {
    font-size: 0.9rem !important;
  }

  .social-icons {
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .social-icons a {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Contact Page Social */
  .contact-social {
    margin-bottom: 30px !important;
  }

  .contact-social a {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    margin: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Theme Panel */
  .theme-panel {
    width: 90% !important;
    height: 70vh !important;
    padding: 30px 20px !important;
  }
  
  .theme-options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .color-option {
    width: 100px !important;
    height: 80px !important;
  }

  .color-option span {
    font-size: 0.85rem !important;
  }
  
  /* Tech Scroll */
  .tech-track span {
    font-size: 1rem !important;
    margin: 0 20px !important;
  }
  
  .tech-track span i {
    font-size: 1.2rem !important;
  }

  /* Section Headers */
  .section-header h1 {
    font-size: 2rem !important;
  }

  .section-header p {
    font-size: 0.9rem !important;
  }
}

/* Extra Small Devices (≤375px) */
@media (max-width: 375px) {
  section {
    padding: 70px 3% !important;
  }
  
  .home-content h1 {
    font-size: 1.7rem !important;
  }
  
  .home-content h3 {
    font-size: 1.1rem !important;
  }

  .home-content p {
    font-size: 0.85rem !important;
  }

  .home-img img {
    max-width: 260px !important;
  }
  
  .skills-grid {
    grid-template-columns: 1fr !important;
  }
  
  .masonry {
    column-count: 1 !important;
  }

  .stat-box {
    max-width: 200px !important;
  }

  .theme-options {
    grid-template-columns: 1fr !important;
  }

  .color-option {
    width: 120px !important;
    height: 90px !important;
  }

  .navbar {
    padding: 8px 12px !important;
  }

  .logo {
    font-size: 1rem !important;
  }

  .logo span {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .medium, .medium-2 {
    padding: 20px 15px !important;
    margin: 20px 5px !important;
  }

  /* Social Box - Floating below image in About */
  #about .social-box {
    position: absolute !important;
    bottom: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
  }

  #about .social-box a {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    padding: 8px !important;
  }

  #about .home-img {
    position: relative !important;
    padding-bottom: 22px !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  
  /* Remove hover transforms that can cause issues on touch */
  .service-card:hover,
  .skill-card:hover,
  .masonry-item:hover {
    transform: none !important;
  }
  
  /* Improve touch targets - minimum 44x44px */
  .nav-links a,
  .home-btn,
  .social-box a,
  .contact-social a {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Better tap feedback */
  .home-btn:active,
  .nav-links a:active,
  .social-box a:active {
    opacity: 0.7 !important;
  }

  /* Prevent text selection on interactive elements */
  button,
  .home-btn,
  .nav-links a {
    -webkit-user-select: none !important;
    user-select: none !important;
  }
}

/* High Resolution Screens (Retina) */
@media (min-resolution: 192dpi) {
  .home-img img,
  .masonry-item img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* Print Styles */
@media print {
  /* Hide interactive elements */
  .theme-trigger,
  .theme-panel,
  .navbar,
  .menu-toggle,
  .social-box,
  .tech-scroll,
  .cursor-dot,
  .cursor-outline,
  .contact-form,
  #success-popup {
    display: none !important;
  }
  
  /* Adjust sections for print */
  section {
    page-break-inside: avoid !important;
    padding: 30px 20px !important;
  }

  /* Remove backgrounds for better print */
  body,
  .medium,
  .medium-2,
  .contact-box {
    background: #fff !important;
    color: #000 !important;
  }

  /* Remove shadows */
  * {
    box-shadow: none !important;
  }

  /* Show links */
  a[href]:after {
    content: " (" attr(href) ")" !important;
  }
}

/* ================= Landscape Orientation Optimization ================= */
@media (max-width: 900px) and (orientation: landscape) {
  section {
    padding: 60px 5% !important;
    min-height: auto !important;
  }

  .home {
    flex-direction: row !important;
    gap: 30px !important;
  }

  .home-img img {
    max-width: 280px !important;
  }

  .navbar {
    padding: 8px 20px !important;
  }

  .nav-links {
    height: 100vh !important;
    overflow-y: auto !important;
  }
}

/* ================= Small Landscape Phones ================= */
@media (max-width: 767px) and (orientation: landscape) {
  .home-content h1 {
    font-size: 1.6rem !important;
  }

  .home-content h3 {
    font-size: 1.1rem !important;
  }

  .home-content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .stats {
    flex-direction: row !important;
    gap: 12px !important;
  }

  .stat-box {
    padding: 12px 18px !important;
  }
}

/* ================= Foldable & Ultra-wide Screens ================= */
@media (min-width: 1400px) {
  .medium, .medium-2 {
    max-width: 1320px !important;
  }

  section {
    padding: 130px 12% !important;
  }

  .home-content h1 {
    font-size: 3.5rem !important;
  }

  .home-img img {
    max-width: 560px !important;
  }
}

/* ================= iPad Pro & Large Tablets (1024px - 1366px) ================= */
@media (min-width: 1024px) and (max-width: 1366px) {
  section {
    padding: 110px 8% !important;
  }

  .home-content h1 {
    font-size: 2.8rem !important;
  }

  .home-img img {
    max-width: 440px !important;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ================= Accessibility - Reduced Motion ================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .masonry-item,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}