/* Responsive Design */

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-overlay {
        background-size: 50px 50px;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 130px;
        padding-right: 130px;
    }
    
    .navbar .container-fluid {
        padding-left: 130px;
        padding-right: 130px;
    }
    
    .hero-section .container-fluid {
        padding-left: 130px;
        padding-right: 130px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
    
    .hero-logo {
        margin: 0 0 0 170px;
        justify-content: flex-start;
    }
    
    .hero-logo .logo2 {
        width: 35vw;
        max-width: 600px;
        min-width: 300px;
    }
}

/* Laptop devices (1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container-fluid {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .navbar .container-fluid {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .hero-section .container-fluid {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .hero-logo .logo2 {
        width: 33vw;
        max-width: 500px;
        min-width: 280px;
    }
    
    .hero-logo {
        margin: 0 0 0 100px;
        justify-content: flex-start;
    }
}

/* Responsive Design for Project Pages */
@media (max-width: 991px) {
    .project-item {
        padding: 2rem;
    }
    
    .project-content {
        padding: 0;
        margin-top: 1rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container-fluid {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .navbar .container-fluid {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-section .container-fluid {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        padding-top: 200px;
    }

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

    .navbar
    {
        text-align: center;
    }
    .navbar-logo-img {
        width: 100px;
    }
    .hero-logo {
        margin: 0 auto;
    }
    .hero-logo .logo2 {
        display: none;
    }
}

/* Responsive Loading Animation */
@media (max-width: 768px) {
    .quantum-sphere {
        width: 80px;
        height: 80px;
    }
    
    .quantum-sphere img {
        width: 60px;
        height: 60px;
    }
    
    .quantum-particles {
        width: 150px;
        height: 150px;
    }
    
    .particle:nth-child(1), .particle:nth-child(3) {
        top: 0;
        left: 50%;
    }
    
    .quantum-text {
        font-size: 1rem;
    }
    
    .quantum-progress {
        width: 150px;
    }
}


/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .navbar .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin: 200px 0 0 0;
    }

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

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .logo-q {
        font-size: 6rem;
        width: 100px;
        height: 100px;
    }

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

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

    .navbar-logo-text {
        font-size: 1.1rem;
    }

    .navbar-logo-img {
        width: 85px;
    }

    .hero-section {
        min-height: 80vh;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .portfolio-item {
        margin-bottom: 2rem;
    }

    .hero-logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-logo .logo2
    {
        display: none;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin: 100px 0 0 0;
    }

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

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

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .contact-item-compact {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .contact-icon-circle {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }

    .contact-icon-circle i {
        font-size: 1rem;
    }

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

    .contact-value {
        font-size: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .social-icons-compact {
        gap: 0.75rem;
    }

    .social-icon-circle {
        width: 36px;
        height: 36px;
    }

    .social-icon-circle i {
        font-size: 0.9rem;
    }

    .logo-q {
        font-size: 5rem;
        width: 80px;
        height: 80px;
    }

    .logo-title {
        font-size: 1.8rem;
    }

    .logo-tagline {
        font-size: 0.9rem;
    }

    .navbar-logo-text {
        font-size: 1rem;
    }

    .navbar-logo-img {
        width: 75px;
    }

    /* Hero Logo Mobile Responsive */
    .hero-logo {
        margin: 2rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-logo .logo2 {
        display: none;
    }

    /* Mobile Background Adjustments */
    .hero-section .floating-shapes::before,
    .hero-section .floating-shapes::after {
        width: 60px;
        height: 60px;
    }

    .hero-section .floating-shapes .shape-1 {
        width: 50px;
        height: 50px;
    }

    .hero-section .floating-shapes .shape-2 {
        width: 40px;
        height: 40px;
    }

    .hero-section .floating-shapes .shape-3 {
        width: 60px;
        height: 60px;
    }

    .hero-section .floating-shapes .shape-4 {
        width: 35px;
        height: 35px;
    }

    .hero-section .floating-shapes .shape-5 {
        width: 45px;
        height: 45px;
    }

    .logo-container {
        max-width: 100%;
    }

    .logo-img img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-card,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card h4 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .portfolio-item img {
        height: 180px;
    }

    .portfolio-overlay {
        padding: 1.5rem;
    }

    .portfolio-overlay h5 {
        font-size: 1.2rem;
    }

    .portfolio-overlay p {
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .feature-item h5 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin: 0 0.5rem;
    }

    .social-links a i {
        font-size: 0.9rem;
    }

    /* Improve touch targets */
    .nav-link,
    .btn,
    .portfolio-item {
        min-height: 44px;
    }

    /* Better spacing for mobile */
    .py-5 {
        padding: 3rem 0 !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .hero-logo
    {
        display: none;
    }
}

/* Ultra small devices (very small phones, less than 400px) */
@media (max-width: 399px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .navbar-logo-img {
        width: 65px;
    }

    /* Hero Logo Ultra Small Mobile */
    .hero-logo {
        margin: 1.5rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-logo .logo2 {
        display: none;
    }

    .logo-img img {
        max-width: 70%;
        height: auto;
    }

    .hero-section {
        min-height: 60vh;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-logo {
        margin: 0 auto;
    }

    .service-card,
    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .portfolio-item img {
        height: 160px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
        margin: 200px 0 0 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Hero Logo Landscape */
    .hero-logo {
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-logo .logo2 {
        display: none;
    }

    .logo-img img {
        max-width: 60%;
        height: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-overlay {
        background-size: 50px 50px;
    }
}

/* Responsive Design for Project Pages */
@media (max-width: 991px) {
    .project-item {
        padding: 2rem;
    }
    
    .project-content {
        padding: 0;
        margin-top: 1rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

/* Responsive Design for Feature Items and Projects */
@media (max-width: 767px) {
    .feature-item {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item .icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .feature-item i {
        font-size: 1.8rem;
    }
    
    .feature-item h5 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item p {
        font-size: 0.95rem;
    }
    
    /* Contact section responsive adjustments */
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Project responsive adjustments */
    .project-header {
        margin-top: 70px;
        padding: 3rem 0;
    }
    
    .project-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .project-description {
        text-align: center;
    }
    
    .project-technologies {
        justify-content: center;
    }
    
    .project-actions {
        text-align: center;
    }
    
    .project-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb-nav {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575px) {
    .feature-item {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-item .icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-item i {
        font-size: 1.6rem;
    }
    
    .feature-item h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    /* Project responsive adjustments for small screens */
    .project-header {
        padding: 2rem 0;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .tech-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section .lead {
        font-size: 1rem;
    }
}
