/* =============================================
   GAGANDEEP'S PORTFOLIO - RESPONSIVE STYLESHEET
   Author: Gagandeep Singh
   Version: 1.0
   Description: Responsive styles for all devices
============================================= */

/* =============================================
   BREAKPOINTS:
   - Mobile: < 576px
   - Mobile Landscape: 576px - 767px
   - Tablet: 768px - 991px
   - Desktop: 992px - 1199px
   - Large Desktop: 1200px+
============================================= */

/* =============================================
   LARGE DESKTOP (1400px and up)
============================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* =============================================
   DESKTOP TO LARGE DESKTOP (1200px - 1399px)
============================================= */
@media (max-width: 1399px) and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* =============================================
   TABLET TO DESKTOP (992px - 1199px)
============================================= */
@media (max-width: 1199px) {

    /* Typography Adjustments */
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Grid Adjustments */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About Section */
    .about-content {
        gap: 60px;
    }

    .about-image img {
        max-width: 400px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* =============================================
   TABLET (768px - 991px)
============================================= */
@media (max-width: 991px) {

    /* Top Bar */
    .top-bar {
        font-size: 0.8rem;
    }

    .top-bar-left {
        gap: 20px;
    }

    .top-bar-item:nth-child(3) {
        display: none;
    }

    /* Navigation */
    .navbar {
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }

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

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

    .nav-link::after {
        bottom: -8px;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }

    /* Hero Section */
    .hero {
        padding: 140px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin: 0 auto;
    }

    .hero-img-wrapper img {
        max-width: 350px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
    }

    .about-text {
        order: 2;
    }

    .about-text h3 {
        text-align: left;
    }

    .about-text p {
        text-align: left;
    }

    .about-experience {
        right: 20px;
        bottom: -20px;
    }

    /* Services */
    .service-card {
        padding: 30px;
    }

    /* Portfolio */
    .portfolio-filter {
        flex-wrap: wrap;
    }

    /* Skills */
    .skills-list {
        gap: 15px;
    }

    .skill-item {
        min-width: 100px;
        padding: 20px 15px;
    }

    /* Footer */
    .footer-content {
        text-align: center;
    }

    
}

/* =============================================
   MOBILE LANDSCAPE (576px - 767px)
============================================= */
@media (max-width: 767px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2,
    .section-title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Top Bar */
    .top-bar-left {
        gap: 15px;
    }

    .top-bar-item span {
        display: none;
    }

    .top-bar-right {
        gap: 8px;
    }

    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Navigation */
    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }

    /* About */
    .about-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-experience {
        position: static;
        margin-top: 30px;
        width: 100%;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-img {
        height: 250px;
    }

    /* Skills */
    .skills-category h3 {
        font-size: 1.5rem;
    }

    .skills-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .skill-item {
        padding: 15px 10px;
    }

    .skill-item i {
        font-size: 1.75rem;
    }

    .skill-item span {
        font-size: 0.75rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* =============================================
   MOBILE (< 576px)
============================================= */
@media (max-width: 575px) {

    /* Section Spacing */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

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

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-img-wrapper img {
        max-width: 280px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    /* About */
    .about-image img {
        max-width: 100%;
    }

    .about-experience h3 {
        font-size: 2rem;
    }

    .about-experience p {
        font-size: 0.875rem;
    }

    /* Service Cards */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Portfolio */
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .portfolio-info h3 {
        font-size: 1.25rem;
    }

    /* Skills Grid on Very Small Screens */
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }

    /* Back to Top Button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* =============================================
   EXTRA SMALL DEVICES (< 400px)
============================================= */
@media (max-width: 399px) {

    

   

    /* Hero */
    .hero {
        padding: 100px 0 50px;
    }

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

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

    /* Reduce all paddings */
    .service-card,
    .testimonial-card,
    .card-body {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
}

/* =============================================
   LANDSCAPE ORIENTATION FIXES
============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px;
    }

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

/* =============================================
   PRINT STYLES
============================================= */
@media print {

    /* Hide unnecessary elements */
    .top-bar,
    .navbar,
    .hero-bg-pattern,
    .back-to-top,
    .portfolio-filter,
    .cta,
    .footer-social,
    .social-link,
    .nav-cta,
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Reset colors for print */
    body {
        background: white;
        color: black;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    /* Ensure images print */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* =============================================
   HIGH DPI DISPLAYS
============================================= */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper borders and shadows */
    .btn,
    .card,
    .service-card,
    .portfolio-item {
        border-width: 0.5px;
    }
}

/* =============================================
   DARK MODE SUPPORT (if implemented)
============================================= */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* =============================================
   MOTION PREFERENCES
============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg-pattern,
    .back-to-top,
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none !important;
    }
}


.footer-column{
    text-align: left;
}