/* Responsive Design Styles */

/* Large Desktop Screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .slide-title {
    font-size: var(--font-size-5xl);
  }
  
  .section-title {
    font-size: var(--font-size-4xl);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .world-map {
    max-width: 700px;
    height: 350px;
  }
  
  .country-flag {
    width: 55px;
    height: 55px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
  }
}

/* Desktop and Large Tablets */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
  }
  
  .slide-title {
    font-size: var(--font-size-4xl);
  }
  
  .slide-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .carousel-nav {
    padding: 0.75rem;
  }
  
  .carousel-nav.prev {
    left: 1rem;
  }
  
  .carousel-nav.next {
    right: 1rem;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }
  
  .pricing-card:hover {
    transform: scale(1.05);
  }
  
  .contact-grid {
    gap: 2rem;
  }
  
  .app-promo {
    gap: 2rem;
  }
  
  .download-buttons {
    flex-direction: column;
    max-width: 300px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Typography Adjustments */
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }
  
  /* Header and Navigation */
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-medium);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    padding: 0 1rem;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Mobile menu animation */
  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Hero Section */
  .hero {
    min-height: 500px;
    height: 70vh;
  }
  
  .slide-content {
    padding: 1rem;
  }
  
  .slide-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 0.75rem;
  }
  
  .slide-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 1.5rem;
  }
  
  .carousel-nav {
    display: none; /* Hide arrows on mobile, use swipe instead */
  }
  
  .carousel-dots {
    bottom: 1rem;
  }
  
  /* Hero Cards */
  .hero-cards {
    margin-top: -3rem;
    padding: 0 0 3rem 0;
  }
  
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }
  
  .card-title {
    font-size: var(--font-size-lg);
  }
  
  .card-description {
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
  }
  
  /* Sections */
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  /* About Section */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stat-badge {
    position: static;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    min-width: auto;
  }
  
  .about-content {
    order: -1;
    text-align: center;
  }
  
  .about-content .section-title {
    text-align: center;
  }
  
  .section-tag {
    justify-content: center;
  }
  
  .about-benefits {
    align-items: center;
  }
  
  .benefit-item {
    text-align: left;
    max-width: 400px;
  }
  
  /* Pricing Card */
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card:hover {
    transform: none;
  }
  
  .card-header {
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .price {
    gap: 0.125rem;
  }
  
  .amount {
    font-size: var(--font-size-4xl);
  }
  
  /* Countries Grid */
  .world-map {
    max-width: 400px;
    height: 200px;
  }
  
  .country-flag {
    width: 35px;
    height: 35px;
    padding: 4px;
  }
  
  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-features {
    gap: 1.5rem;
  }
  
  .feature-item {
    gap: 0.75rem;
  }
  
  .feature-item i {
    font-size: var(--font-size-xl);
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Testimonials */
  .testimonial-track {
    height: 350px;
  }
  
  .testimonial-slide blockquote {
    padding: 1.5rem;
  }
  
  .testimonial-slide p {
    font-size: var(--font-size-base);
  }
  
  .testimonial-slide cite {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .testimonial-slide img {
    width: 50px;
    height: 50px;
  }
  
  /* Blog Section */
  .blog-post {
    padding: 1.5rem;
  }
  
  .app-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature {
    padding: 0.75rem;
  }
  
  /* App Download */
  .app-promo {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .app-info h2 {
    font-size: var(--font-size-2xl);
  }
  
  .app-info p {
    font-size: var(--font-size-base);
  }
  
  .download-buttons {
    justify-content: center;
  }
  
  .app-visual i {
    font-size: 4rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* About Page */
  .about-hero {
    height: 350px;
  }
  
  .about-hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  /* Global Deployment Section */
  .deployment-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .deployment-content {
    padding-right: 0;
  }

  .deployment-title {
    font-size: 2.2rem;
  }

  .programs-grid {
    justify-content: center;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .cta-button {
    width: 100%;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  /* Further typography adjustments */
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.25rem;
    --font-size-2xl: 1.125rem;
  }
  
  .container {
    padding: 0 0.75rem;
    overflow-x: hidden;
  }
  
  /* Header */
  .nav-brand {
    gap: 0.5rem;
  }
  
  .brand-text {
    font-size: var(--font-size-lg);
  }
  
  .brand-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .logo {
    width: 32px;
    height: 32px;
  }
  
  /* Hero */
  .hero {
    min-height: 400px;
    height: 60vh;
  }
  
  .slide-content {
    padding: 0.75rem;
  }
  
  .slide-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
  }
  
  .slide-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
  
  .cta-button {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }
  
  /* Hero Cards */
  .hero-cards {
    margin-top: -2rem;
    padding: 0 0 3rem 0;
  }
  
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services .section-title {
    font-size: var(--font-size-2xl);
    line-height: 1.4;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .card-title {
    font-size: var(--font-size-base);
  }
  
  .card-description {
    font-size: var(--font-size-xs);
    margin-bottom: 1rem;
  }
  
  /* Sections */
  section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: var(--font-size-2xl);
  }
  
  .stat-label {
    font-size: var(--font-size-sm);
  }
  
  /* About */
  .about-card {
    padding: 1rem;
  }
  
  /* Pricing */
  .card-header,
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: var(--font-size-lg);
  }
  
  .amount {
    font-size: var(--font-size-3xl);
  }
  
  .features-list li {
    padding: 0.375rem 0;
    font-size: var(--font-size-sm);
  }
  
  /* About Page */
  .about-hero {
    height: 300px;
  }
  
  .about-hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .breadcrumb {
    font-size: var(--font-size-sm);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-card {
    padding: 2rem 1.5rem;
  }
  
  .value-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }
  
  /* Global Deployment Section */
  .deployment-title {
    font-size: var(--font-size-2xl);
  }
  
  .global-deployment {
    padding: 60px 0;
  }

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

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-image img {
    width: 655px;
    height: 624px;
  }

  .green-circle {
    width: 50px;
    height: 50px;
  }
  
  .container {
    padding: 0 15px;
  }

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

  .profile-image img {
    width: 655px;
    height: 624px;
  }
  
  /* Service Pages Responsive - Tablet */
  .page-hero {
    height: 300px;
    background-attachment: scroll;
  }
  
  .page-hero-title {
    font-size: 2.5rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .section-tag {
    justify-content: center;
  }
  
  .tag-text {
    font-size: 1.5rem;
  }
  
  .service-image img {
    height: 400px;
    object-fit: cover;
  }
  
  .service-cta-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  /* Legacy Career-specific responsive (for backward compatibility) */
  .career-pathway {
    padding: 60px 0;
  }
  
  .career-pathway-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .pathway-content {
    padding-right: 0;
  }
  
  .nurse-image {
    height: 400px;
  }
  
  .career-cta-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  /* Countries */
  .countries .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .country-flag {
    width: 50px;
    height: 33px;
  }
  
  .contact-info {
    font-size: var(--font-size-sm);
  }
  
  /* Contact Info Cards */
  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .contact-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  /* Contact */
  .contact-features {
    gap: 1rem;
  }
  
  .feature-item {
    gap: 0.5rem;
  }
  
  .feature-item i {
    font-size: var(--font-size-lg);
  }
  
  .feature-item h3 {
    font-size: var(--font-size-base);
  }
  
  .feature-item p {
    font-size: var(--font-size-sm);
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  /* Service Pages Responsive - Mobile */
  .page-hero-title {
    font-size: 2rem;
  }
  
  .tag-text {
    font-size: 1.3rem;
  }
  
  .service-image img {
    height: 350px;
  }
  
  .service-cta {
    padding: 40px 0;
  }
  
  /* Legacy Career-specific responsive (for backward compatibility) */
  .nurse-image {
    height: 350px;
  }
  
  .career-cta {
    padding: 40px 0;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: var(--font-size-sm);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.625rem;
    font-size: var(--font-size-sm);
  }
  
  /* Testimonials */
  .testimonial-track {
    height: 380px;
  }
  
  .testimonial-slide blockquote {
    padding: 1rem;
  }
  
  .testimonial-slide p {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
  
  .testimonial-slide img {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-info strong {
    font-size: var(--font-size-sm);
  }
  
  .testimonial-info span {
    font-size: var(--font-size-xs);
  }
  
  /* Blog */
  .blog-post {
    padding: 1rem;
  }
  
  .blog-post h3 {
    font-size: var(--font-size-lg);
  }
  
  .blog-post p {
    font-size: var(--font-size-sm);
  }
  
  .feature {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .feature span {
    font-size: var(--font-size-sm);
  }
  
  /* App Download */
  .app-info h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.75rem;
  }
  
  .app-info p {
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
  }
  
  .download-buttons {
    gap: 0.75rem;
  }
  
  .download-btn {
    padding: 0.625rem 1.25rem;
    gap: 0.5rem;
  }
  
  .download-btn i {
    font-size: var(--font-size-xl);
  }
  
  .download-btn span {
    font-size: var(--font-size-xs);
  }
  
  .download-btn strong {
    font-size: var(--font-size-sm);
  }
  
  .app-visual i {
    font-size: 3rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-section h3,
  .footer-section h4 {
    font-size: var(--font-size-base);
  }
  
  .footer-section p,
  .footer-section li {
    font-size: var(--font-size-sm);
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
  }
  
  .footer-bottom {
    font-size: var(--font-size-xs);
  }
  
  /* Modal */
  .modal-content {
    width: 98%;
    margin: 0.5rem;
  }
  
  .modal-header h3 {
    font-size: var(--font-size-lg);
  }
  
  .opportunity-details h4 {
    font-size: var(--font-size-base);
  }
  
  .opportunity-details li,
  .requirements li {
    font-size: var(--font-size-sm);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
  }
  
  .requirements h5 {
    font-size: var(--font-size-sm);
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    min-height: 350px;
    height: 50vh;
  }
  
  .slide-title {
    font-size: var(--font-size-xl);
  }
  
  .slide-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
  }
  
  .section-title {
    font-size: var(--font-size-lg);
  }
  
  .section-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .stat-number {
    font-size: var(--font-size-xl);
  }
  
  .download-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .download-btn {
    padding: 0.5rem 1rem;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 400px;
  }
  
  .slide-content {
    padding: 1rem;
  }
  
  .slide-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
  }
  
  .slide-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
  
  .carousel-dots {
    bottom: 0.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .nav-link,
  .cta-button,
  .carousel-nav,
  .dot,
  .testimonial-dot {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .stat-card:hover,
  .country-card:hover,
  .pricing-card:hover,
  .feature:hover {
    transform: none;
  }
  
  /* Simplify interactions */
  .carousel-nav {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
  }
  
  .download-btn:hover {
    transform: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI displays */
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* Adjust border widths for better visibility */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-width: 1px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #0a0a0b;
    --text-light: #8c7d7d;
    --background-light: #1F2937;
    --white: #ffffff;
    --border-light: #374151;
  }
  
  .header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-menu {
    background-color: var(--white);
  }
  
  .hamburger {
    background-color: var(--text-dark);
  }
  
  .modal-content {
    background-color: var(--white);
  }
  
  .contact-form,
  .pricing-card,
  .stat-card,
  .about-card,
  .country-card,
  .blog-post,
  .testimonial-slide blockquote {
    background-color: var(--white);
    border: 1px solid var(--border-light);
  }
}