/* ============================================= */
/* GRANDIOZE GROUP - RESPONSIVE REDESIGN         */
/* ============================================= */

/* Large Desktops (1440px and above) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    h1 { font-size: 4.8rem; }
    .hero-text h1 { font-size: 5rem; }
}

/* Desktop (1200px - 1439px) */
@media screen and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }
}

/* Laptop (992px - 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.6rem; }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 50px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Tablet (768px - 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 25px;
    }
    
    .nav-container {
        padding: 16px 25px;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        display: block;
        padding: 18px 0;
        font-size: 1.15rem;
        color: var(--text-primary);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: transparent;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li a {
        padding: 12px 0;
        color: var(--text-secondary);
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 10000;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 140px 0 80px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    /* Sections */
    section {
        padding: 90px 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    /* Services Grid */
    .services-grid {
        gap: 30px;
    }

    .services-grid > .service-card {
        flex-basis: calc(50% - 15px);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .footer-main {
        padding: 80px 0 60px;
    }
    
    /* CTA */
    .cta-section {
        padding: 100px 0;
    }
    
    .cta-title {
        font-size: 2.8rem;
    }
    
    .cta-text {
        font-size: 1.15rem;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 16px 20px;
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
    
    /* Hero */
    .hero-section {
        padding: 120px 0 70px;
    }
    
    .hero-text h1 {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Sections */
    section {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.05rem;
    }
    
    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .about-feature {
        padding: 40px 30px;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 2.2rem;
    }
    
    /* Services */
    .services-grid {
        gap: 25px;
    }

    .services-grid > .service-card {
        flex-basis: 100%;
        aspect-ratio: auto;
        padding: 35px 28px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
    
    /* Why Choose */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .why-card {
        padding: 35px 28px;
    }
    
    .why-icon {
        width: 75px;
        height: 75px;
        font-size: 2.2rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 35px 30px;
    }
    
    /* CTA */
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        padding: 60px 0 50px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
        font-size: 1.3rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 14px 16px;
    }
    
    .nav-menu {
        width: 100%;
        padding: 90px 30px 30px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.4rem; }
    
    p {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-section {
        padding: 110px 0 60px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 14px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .btn-hero,
    .btn-primary,
    .btn-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 45px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .section-title::after {
        width: 60px;
        height: 4px;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* About Feature */
    .about-feature {
        padding: 35px 24px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .feature-title {
        font-size: 1.4rem;
    }
    
    /* Service Cards */
    .services-grid > .service-card {
        padding: 30px 24px;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        border-radius: 16px;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    /* Why Choose */
    .why-card {
        padding: 30px 24px;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .why-title {
        font-size: 1.25rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 24px;
    }
    
    .testimonial-card::before {
        font-size: 6rem;
        top: 20px;
        left: 20px;
    }
    
    .author-avatar {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .author-name {
        font-size: 1.05rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 70px 0;
    }
    
    .cta-title {
        font-size: 1.9rem;
    }
    
    .cta-text {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }
    
    .btn-cta {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 50px 0 40px;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .footer-heading {
        font-size: 1.2rem;
    }
    
    .footer-social a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
    
    .mouse {
        width: 24px;
        height: 42px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media screen and (max-width: 375px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-icon,
    .why-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.7rem;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .back-to-top,
    .scroll-indicator,
    #particles-js,
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .service-card,
    .why-card,
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================= */
/* END OF RESPONSIVE.CSS                         */
/* ============================================= */