/* ============================================
   KVS INFOTECH SOLUTION - RESPONSIVE STYLESHEET
   Mobile First Approach | Tablet | Desktop
   ============================================ */

/* ===== TABLET - 768px and below ===== */
@media (max-width: 768px) {
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Navbar */
    .navbar-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .mega-menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: -500px;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 12px 12px 0 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(0);
        transition: bottom 0.3s ease;
        max-width: 100%;
        z-index: 999;
    }
    
    .mega-menu-container:hover .mega-menu {
        bottom: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .mega-menu-column h4 {
        font-size: 0.85rem;
    }
    
    .mega-menu-column a {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        height: 70vh;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Statistics Section */
    .statistics {
        padding: 3rem 1rem;
        margin-top: 0;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* About Preview Section */
    .about-preview {
        padding: 3rem 1rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Programmes Section */
    .programmes {
        padding: 3rem 1rem;
    }
    
    .programmes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .programme-card {
        padding: 1.5rem;
    }
    
    .card-header {
        font-size: 1rem;
    }
    
    .programme-card p {
        font-size: 0.85rem;
    }
    
    /* IT Courses Section */
    .it-courses {
        padding: 3rem 1rem;
    }
    
    .courses-container > h2 {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 1.5rem 1rem;
    }
    
    .course-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .course-card h3 {
        font-size: 1rem;
    }
    
    .course-card p {
        font-size: 0.8rem;
    }
    
    /* Why Choose Section */
    .why-choose {
        padding: 3rem 1rem;
    }
    
    .why-choose-container > h2 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    /* Placements Section */
    .placements-preview {
        padding: 3rem 1rem;
    }
    
    .placements-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .placements-content h2 {
        font-size: 2rem;
    }
    
    .placements-image {
        height: 300px;
    }
    
    .placement-highlights li {
        font-size: 0.9rem;
    }
    
    .placement-highlights li::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    /* Testimonials Section */
    .testimonials {
        padding: 3rem 1rem;
    }
    
    .testimonials-container > h2 {
        font-size: 2rem;
    }
    
    .testimonials-slider {
        height: auto;
        min-height: 300px;
    }
    
    .testimonial-card {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        display: none;
    }
    
    .testimonial-card.active {
        display: block;
    }
    
    .testimonial-header {
        gap: 0.75rem;
    }
    
    .testimonial-header img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-info h4 {
        font-size: 1rem;
    }
    
    .testimonial-info p {
        font-size: 0.8rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-controls {
        gap: 1rem;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 25px;
    }
    
    /* Blog Section */
    .blog-preview {
        padding: 3rem 1rem;
    }
    
    .blog-container > h2 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-image {
        height: 250px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.1rem;
    }
    
    .blog-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* FAQ Section */
    .faq-preview {
        padding: 3rem 1rem;
    }
    
    .faq-container {
        max-width: 100%;
    }
    
    .faq-container > h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 1.25rem;
    }
    
    /* Contact Section */
    .contact-preview {
        padding: 3rem 1rem;
    }
    
    .contact-container > h2 {
        font-size: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    .info-item {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-credit {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .footer-credit p {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
}

/* ===== MOBILE - 576px and below ===== */
@media (max-width: 576px) {
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .mega-menu {
        position: static;
        background: var(--light-white);
        box-shadow: none;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-width: 100%;
        border: none;
        bottom: auto;
        display: none;
        margin-top: 0;
    }
    
    .mega-menu-container:hover .mega-menu,
    .mega-menu.active {
        display: grid;
    }
    
    .mega-menu-column h4 {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .mega-menu-column a {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }
    
    /* Hero Section */
    .hero {
        height: 60vh;
        margin-top: 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
    
    .scroll-indicator span {
        font-size: 0.75rem;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    /* Statistics Section */
    .statistics {
        padding: 2rem 0.75rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* About Preview Section */
    .about-preview {
        padding: 2rem 0.75rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-image {
        height: 250px;
        border-radius: 12px;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Programmes Section */
    .programmes {
        padding: 2rem 0.75rem;
    }
    
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .programme-card {
        padding: 1.25rem;
    }
    
    .card-header {
        font-size: 0.95rem;
    }
    
    .programme-card p {
        font-size: 0.8rem;
    }
    
    /* IT Courses Section */
    .it-courses {
        padding: 2rem 0.75rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .course-card {
        padding: 1.25rem 1rem;
    }
    
    .course-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .course-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .course-card p {
        font-size: 0.75rem;
    }
    
    /* Why Choose Section */
    .why-choose {
        padding: 2rem 0.75rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .benefit-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card p {
        font-size: 0.8rem;
    }
    
    /* Placements Section */
    .placements-preview {
        padding: 2rem 0.75rem;
    }
    
    .placements-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .placements-content h2 {
        font-size: 1.5rem;
    }
    
    .placements-content p {
        font-size: 0.9rem;
    }
    
    .placements-image {
        height: 250px;
    }
    
    .placement-highlights {
        margin: 1.5rem 0;
    }
    
    .placement-highlights li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    
    .placement-highlights li::before {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    /* Testimonials Section */
    .testimonials {
        padding: 2rem 0.75rem;
    }
    
    .testimonials-slider {
        height: auto;
        min-height: 280px;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-header img {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .testimonial-info p {
        font-size: 0.75rem;
    }
    
    .testimonial-stars {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .testimonial-controls {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .testimonial-dots {
        gap: 0.5rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    /* Blog Section */
    .blog-preview {
        padding: 2rem 0.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-content h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .blog-category {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .read-more {
        font-size: 0.9rem;
    }
    
    /* FAQ Section */
    .faq-preview {
        padding: 2rem 0.75rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-icon {
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    /* Contact Section */
    .contact-preview {
        padding: 2rem 0.75rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.85rem;
        font-size: 1rem;
    }
    
    .info-item {
        padding: 1.25rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .footer-divider {
        margin-bottom: 1rem;
    }
    
    .footer-credit {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-credit p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
}

/* ===== EXTRA SMALL - 375px and below ===== */
@media (max-width: 375px) {
    
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .programmes-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }
    
}

/* ===== LANDSCAPE MODE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        height: 100vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
}

/* ===== LARGE SCREENS - 1200px and above ===== */
@media (min-width: 1200px) {
    
    .navbar-container {
        padding: 0 4rem;
    }
    
    .container {
        padding: 0 4rem;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2.75rem;
    }
    
}

/* ===== EXTRA LARGE SCREENS - 1600px and above ===== */
@media (min-width: 1600px) {
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .programmes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
}

/* ===== TOUCH DEVICE OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .course-card,
    .programme-card,
    .benefit-card,
    .blog-card {
        transform: none;
    }
    
    .nav-menu a::after {
        height: 3px;
    }
    
    .testimonial-prev,
    .testimonial-next {
        min-height: 50px;
        min-width: 50px;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
}

/* ===== PRINT STYLES ===== */
@media print {
    
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .courses-cta,
    .blog-cta,
    .faq-cta,
    .contact-preview,
    .footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    a {
        color: var(--primary-blue);
        text-decoration: underline;
    }
    
    .btn {
        border: 2px solid var(--text-dark);
    }
    
    .hero {
        margin-top: 0;
    }
    
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
}

/* ===== DARK MODE PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
    
    body {
        background-color: #F8FBFF;
        color: #0F172A;
    }
    
    .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-menu a {
        color: #0F172A;
    }
    
    p {
        color: #64748B;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #0F172A;
    }
    
    .stat-card,
    .programme-card,
    .benefit-card,
    .blog-card,
    .faq-item,
    .info-item {
        background: #FFFFFF;
        border-color: #D6E8FF;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #D6E8FF;
    }
    
    .about-container,
    .placements-container,
    .contact-wrapper {
        color: #0F172A;
    }
    
}