/* ==========================================================================
   ADHIRAJ INFOTECH - MASTER RESPONSIVE STYLESHEET
   Comprehensive Breakpoints for Mobile, Tablet, Desktop & TV Screens
   Theme: Modern Royal Blue & Crisp White Design System
   ========================================================================== */

/* --- Extra Large Desktops & TV Screens (min-width: 1400px) --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Large Desktops (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .container-fluid {
    padding: 0 1.75rem;
  }

  .nav-menu {
    gap: 0.85rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
  }

  .tools-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* --- Tablet & Medium Screens (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .container-fluid {
    padding: 0 1.5rem;
  }

  .top-info-bar {
    display: none; /* Keep header clean on tablets and mobile */
  }

  /* Header Mobile Toggle Activation */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-toggle:hover {
    background: var(--blue-50);
    color: var(--blue-600);
  }

  /* Slide-Down Mobile Drawer Navigation */
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    background: #FFFFFF;
    border-bottom: 2px solid var(--blue-100);
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    padding: 1.25rem 1.25rem 2rem 1.25rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.28);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 0.25rem;
  }

  .nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    flex-grow: 1;
    width: 100%;
  }

  .nav-link:hover {
    background: transparent;
    color: #2563EB;
    transform: none;
    box-shadow: none;
  }

  .nav-link.active {
    background: transparent;
    color: #2563EB !important;
    font-weight: 800;
    box-shadow: none;
  }

  /* Desktop Chevron is hidden in mobile view; mobile-dropdown-arrow button is used */
  .dropdown-chevron {
    display: none !important;
  }

  .mobile-dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    color: #2563EB;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .has-dropdown.mobile-open .mobile-dropdown-arrow {
    transform: rotate(180deg);
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
  }

  /* Mobile Submenu Accordion: zero borders and zero height when closed */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 100% !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    display: block;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }

  .dropdown-menu::before {
    display: none !important;
  }

  .has-dropdown.mobile-open .dropdown-menu {
    max-height: 1600px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    border: 1.5px solid #DBEAFE !important;
    padding: 0.85rem 0.75rem !important;
    margin-top: 0.45rem !important;
    margin-bottom: 0.65rem !important;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .dropdown-header-strip {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
  }

  .dropdown-item {
    padding: 0.65rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 10px;
  }

  .dropdown-item:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
    transform: translateX(4px);
  }

  .dropdown-item .drop-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .dropdown-item .drop-info strong {
    font-size: 0.86rem;
  }

  .dropdown-item .drop-info span {
    font-size: 0.72rem;
  }

  /* Mobile CTA Buttons within Mobile Menu */
  .mobile-cta-btn {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid #E2E8F0;
  }

  .mobile-cta-btn .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
  }

  /* Hero Slider for Tablets */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-slider-prev {
    left: 0.75rem;
  }

  .hero-slider-next {
    right: 0.75rem;
  }

  /* Grids for Tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .training-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .career-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    min-height: 420px;
    max-width: 100%;
    overflow: hidden;
  }

  .stats-card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item::after {
    display: none !important;
  }

  .tools-tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .calc-summary-card {
    position: static;
  }

  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .local-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .comp-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid-custom {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- Mobile Landscape & Standard Phones (max-width: 768px) --- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .container {
    padding: 0 1.15rem;
  }

  .container-fluid {
    padding: 0 1.15rem;
  }

  /* Header & Logo on Mobile */
  .navbar {
    padding: 0.65rem 0;
  }

  .logo-symbol-svg {
    width: 34px;
    height: 34px;
  }

  .brand-title-main {
    font-size: 1.35rem;
  }

  .brand-tagline-green {
    font-size: 0.62rem;
  }

  .nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .btn-enquiry-pill {
    padding: 0.35rem 0.95rem 0.35rem 0.45rem;
    font-size: 0.85rem;
  }

  .btn-enquiry-pill .enquiry-icon-circle {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 0;
    min-height: auto;
  }

  .hero-slide {
    padding: 3.5rem 0 4rem 0;
    min-height: 520px;
  }

  .hero-slide-content {
    padding: 1rem 0;
  }

  .hero-headline {
    font-size: 1.95rem;
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 0.96rem;
    line-height: 1.62;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .hero-slider-nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero-slider-prev {
    left: 0.35rem;
  }

  .hero-slider-next {
    right: 0.35rem;
  }

  .hero-slider-dots-wrapper {
    bottom: 0.85rem;
  }

  /* Section Headers & Page Heroes */
  .page-hero-section {
    padding: 3.5rem 0 3rem 0;
  }

  .page-hero-section h1 {
    font-size: 1.95rem;
    line-height: 1.22;
  }

  .page-hero-section p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .section-header h2 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* About Section */
  .about-section {
    padding: 4.5rem 0;
  }

  .about-image-wrapper {
    min-height: 360px;
    max-width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .about-main-circle {
    width: 220px;
    height: 220px;
  }

  .about-orbit-ring.orbit-outer {
    width: 290px;
    height: 290px;
  }

  .about-orbit-ring.orbit-inner {
    width: 260px;
    height: 260px;
  }

  .about-secondary-circle {
    width: 85px;
    height: 85px;
    top: 15px;
    right: 15px;
  }

  .about-floating-badge {
    padding: 0.4rem 0.75rem;
  }

  .about-floating-badge strong {
    font-size: 0.8rem;
  }

  .about-floating-badge span {
    font-size: 0.68rem;
  }

  .badge-rating {
    top: 5px;
    left: 0;
  }

  .badge-experience {
    bottom: 5px;
    left: 0;
  }

  .badge-clients {
    bottom: 5px;
    right: 0;
  }

  /* Stats Section */
  .stats-strip-section {
    padding: 1.5rem 0;
  }

  .stats-card-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    border-radius: 18px;
  }

  .stat-number {
    font-size: 2.3rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  /* Services Grid (Single Column on Mobile) */
  .services-section {
    padding: 4.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-flip-card {
    height: auto;
    min-height: 330px;
  }

  .service-flip-front,
  .service-flip-back {
    padding: 1.6rem 1.35rem 1.4rem 1.35rem;
    border-radius: 18px;
  }

  .service-flip-front h3,
  .service-flip-back h3 {
    font-size: 1.25rem;
  }

  .service-flip-front p,
  .service-flip-back p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  /* Training Section Mobile */
  .training-section {
    padding: 4.5rem 0;
  }

  .training-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .training-card {
    padding: 1.6rem 1.35rem;
    border-radius: 18px;
  }

  /* Career Section Mobile */
  .career-section {
    padding: 4.5rem 0;
  }

  .career-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .career-card {
    padding: 1.6rem 1.35rem;
    border-radius: 18px;
  }

  /* Placement Badge Strip & Tech Box Mobile */
  .placement-badge-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    margin-top: -1.5rem;
  }

  .tech-category-box {
    padding: 1.5rem 1.15rem;
    margin-bottom: 2rem;
  }

  .tech-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Tools & Tech Stack Grid */
  .tools-tech-section {
    padding: 4.5rem 0;
  }

  .tools-tech-header h2 {
    font-size: 1.85rem;
  }

  .tools-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .tool-card {
    padding: 1.35rem 0.75rem;
    min-height: 125px;
    border-radius: 14px;
  }

  .tool-icon-wrapper {
    width: 44px;
    height: 44px;
    margin-bottom: 0.65rem;
  }

  .tool-icon-wrapper i {
    font-size: 40px;
  }

  .tool-card h4 {
    font-size: 0.92rem;
  }

  /* Fixed Pricing Plans (pricing.html) */
  .pricing-section {
    padding: 4.5rem 0;
  }

  .pricing-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.35rem;
    border-radius: 18px;
  }

  .pricing-price-wrap .price-num {
    font-size: 2.6rem;
  }

  .pricing-guarantee-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
    gap: 1.25rem;
  }

  /* Feature Comparison Table (pricing.html) */
  .comparison-section {
    padding: 4.5rem 0;
  }

  .comp-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid var(--border-light);
  }

  .comp-table {
    min-width: 620px;
    font-size: 0.85rem;
  }

  .comp-table th,
  .comp-table td {
    padding: 0.85rem 0.95rem;
  }

  /* Interactive Calculator Section */
  .calculator-section {
    padding: 4.5rem 0;
  }

  .calc-wrapper {
    padding: 1.35rem 1rem;
    border-radius: 18px;
  }

  .calc-options-box {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

  .calc-chips-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .type-chips-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .type-chip {
    padding: 0.75rem 0.85rem;
  }

  .calc-chip-btn {
    padding: 0.85rem 0.65rem;
    min-height: 105px;
    border-radius: 12px;
  }

  .chip-icon-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .chip-title {
    font-size: 0.86rem;
  }

  .chip-sub {
    font-size: 0.68rem;
  }

  .chip-price-badge {
    font-size: 0.75rem;
    margin-top: 0.4rem;
  }

  .calc-features-grid,
  .addons-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .calc-check-item,
  .addon-checkbox {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
  }

  .calc-summary-card {
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
  }

  .est-price-val,
  .summary-price-big {
    font-size: 2.1rem;
  }

  .est-timeline-chip {
    font-size: 0.82rem;
  }

  .summary-row,
  .summary-meta-row {
    font-size: 0.84rem;
  }

  /* Process Steps Grid */
  .process-section {
    padding: 4.5rem 0;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-card {
    padding: 1.65rem 1.35rem;
    border-radius: 16px;
  }

  /* Local Patna Section */
  .local-section {
    padding: 4.5rem 0;
  }

  .local-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Testimonials & FAQ */
  .testimonials-section,
  .faq-section {
    padding: 4.5rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .faq-question-btn {
    padding: 1.15rem 1.25rem;
    font-size: 0.96rem;
    gap: 0.75rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1.15rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Contact Section & Form */
  .contact-section {
    padding: 4.5rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-touch-card {
    padding: 1rem 1.1rem;
    gap: 0.85rem;
    border-radius: 14px;
  }

  .contact-touch-card .touch-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .contact-touch-card .touch-details strong {
    font-size: 0.98rem;
  }

  .office-hours-card {
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card {
    padding: 1.75rem 1.15rem;
    border-radius: 18px;
  }

  .form-header h3 {
    font-size: 1.45rem;
  }

  .form-header p {
    font-size: 0.88rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile iOS Safari */
    padding: 0.75rem 0.85rem 0.75rem 2.6rem;
  }

  .btn-submit-quote {
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 0 2rem 0;
  }

  .footer-content-wrap {
    padding-top: 1rem;
  }

  .footer-grid-custom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-about-text {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .footer-bottom-exact {
    padding-top: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
  }

  /* Floating Actions */
  .floating-contact-triggers-left {
    bottom: 1.1rem;
    left: 1rem;
    gap: 0.65rem;
    z-index: 990;
  }

  .float-action-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .float-scrolltop-right {
    bottom: 1.1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    z-index: 990;
  }
}

/* --- Small Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  /* Logo adjustments */
  .logo-symbol-svg {
    width: 32px;
    height: 32px;
  }

  .brand-title-main {
    font-size: 1.22rem;
  }

  .brand-tagline-green {
    font-size: 0.58rem;
  }

  .btn-enquiry-pill {
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    font-size: 0.8rem;
  }

  .btn-enquiry-pill .enquiry-icon-circle {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .hero-headline {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtext {
    font-size: 0.92rem;
  }

  .page-hero-section {
    padding: 2.75rem 0 2.25rem 0;
  }

  .page-hero-section h1 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .stats-card-container {
    grid-template-columns: 1fr;
    padding: 1.35rem 1rem;
    gap: 1.25rem;
  }

  .training-card,
  .career-card {
    padding: 1.35rem 1.15rem;
  }

  .training-syllabus-tags span {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  .calc-chips-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .calc-chip-btn {
    min-height: auto;
    padding: 0.85rem 1rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
  }

  .chip-icon-circle {
    margin-bottom: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .chip-price-badge {
    margin-top: 0;
    margin-left: auto;
  }

  .tools-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .tool-card {
    padding: 1.15rem 0.5rem;
    min-height: 115px;
  }

  .tool-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .tool-icon-wrapper i {
    font-size: 34px;
  }

  .hero-slider-nav {
    display: none; /* Rely on dots and touch swipe on smallest screens */
  }

  .float-action-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .float-scrolltop-right {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

/* --- Extra Small Mobile Phones (max-width: 360px) --- */
@media (max-width: 360px) {
  .brand-title-main {
    font-size: 1.12rem;
  }

  .brand-tagline-green {
    display: none;
  }

  .btn-enquiry-pill {
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  }

  .hero-headline {
    font-size: 1.55rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .tools-tech-grid {
    grid-template-columns: 1fr;
  }

  .pricing-price-wrap .price-num {
    font-size: 2.2rem;
  }

  .est-price-val,
  .summary-price-big {
    font-size: 1.85rem;
  }
}

/* --- Brand Logo Image Responsiveness --- */
@media (max-width: 768px) {
  .brand-logo-img {
    height: 40px;
    max-width: 190px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 35px;
    max-width: 160px;
  }
}

@media (max-width: 360px) {
  .brand-logo-img {
    height: 30px;
    max-width: 140px;
  }
}

