/* ===================================
   Responsive Design
   Developer: Bhupesh Indurkar
   =================================== */

/* === MOBILE MENU === */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* === TABLET (768px - 1024px) === */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    /* Show Hamburger */
    .hamburger {
        display: flex !important;
    }
    
    /* Hide Navigation by default */
    nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(59, 130, 246, 0.3);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    /* Show Navigation when active */
    nav.active {
        display: block !important;
    }
    
    /* Navigation List */
    nav ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
        margin: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 1.2rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(59, 130, 246, 0.2);
    }
    
    /* Header */
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .logo-section img {
        height: 45px;
        width: 45px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .hero-content h1,
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content p,
    .hero p {
        font-size: 1rem !important;
        line-height: 1.6;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Cards */
    .card,
    .glass-card {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Container */
    .container {
        padding: 1rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem !important;
    }
}

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .hero-content h1,
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-content p,
    .hero p {
        font-size: 0.95rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card h3,
    .card h4 {
        font-size: 1.1rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .logo-section img {
        height: 40px;
        width: 40px;
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* === LARGE DESKTOP (min-width: 1400px) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* === PRINT STYLES === */
@media print {
    header,
    footer,
    .hamburger,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card,
    .card {
        border: 1px solid #ccc;
        background: white;
    }
}

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

/* === TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
    
    .card:hover,
    .glass-card:hover {
        transform: translateY(-5px);
    }
}

/* === HIGH DPI SCREENS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-section img {
        image-rendering: -webkit-optimize-contrast;
    }
}
