/* 
The Halo - Responsive Stylesheet
*/

/* ==================== Large Screens (1200px and up) ==================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ==================== Medium Screens (992px to 1199px) ==================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* About section */
    .about-content {
        gap: var(--spacing-md);
    }
    
    /* Animation adjustments */
    .floating-shape.shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .floating-shape.shape-3 {
        width: 100px;
        height: 100px;
    }
    
    /* Grids */
    .values-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Stats */
    .stat-item {
        margin: 15px;
        padding: 25px 20px;
    }
    
    .stat-count {
        font-size: 3rem;
    }
    
    /* CTA Card */
    .cta-card {
        padding: 40px;
    }
}

/* ==================== Small Screens (768px to 991px) ==================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    /* Services section */
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Stats Section */
    .stats-container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 45%;
        min-width: 160px;
    }
    
    /* Founder section */
    .founder-content {
        flex-direction: column;
    }
    
    .founder-image, .founder-text {
        width: 100%;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 30px 20px;
    }
    
    /* Contact section */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        width: 100%;
    }
    
    /* Timeline Layout */
    .timeline-item, .timeline-item.right {
        width: calc(100% - 30px);
        margin-left: 30px;
        padding-right: 0;
        padding-left: 30px;
    }
    
    .timeline-track {
        left: 15px;
    }
    
    .timeline-marker, .timeline-item.right .timeline-marker {
        left: -15px;
        right: auto;
    }
    
    /* Animations */
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .value-card:hover {
        transform: translateY(-5px);
    }
}

/* ==================== Extra Small Screens (576px to 767px) ==================== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header & Navigation */
    .header-inner {
        padding: var(--spacing-xs) 0;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        transition: height var(--transition-medium);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .menu-open .nav-links {
        height: calc(100vh - 75px);
        overflow-y: auto;
        padding: var(--spacing-md) 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: 1rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 400px;
        height: 75vh;
        margin-top: 60px; /* Adjusted header height */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Animation adjustments */
    .floating-shape {
        opacity: 0.3;
    }
    
    .floating-shape.shape-3 {
        display: none;
    }
    
    /* Grid system */
    .row {
        margin: 0 -10px;
    }
    
    .col {
        padding: 0 10px;
    }
    
    [class*="col-"] {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    /* Section styles */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .separator-line {
        margin: 15px auto 25px;
    }
    
    /* Grids */
    .values-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Stats Section */
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    /* Why choose us section */
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    /* Founder Section */
    .founder-image-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 30px;
    }
    
    .founder-social {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-logo, .footer-contact, .footer-social, .footer-nav {
        width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA Section */
    .cta-card {
        text-align: center;
        padding: 30px 20px;
    }
}

/* ==================== Mobile Screens (Up to 575px) ==================== */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        margin-bottom: var(--spacing-md);
    }
    
    /* Hero section */
    .hero {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Animation Adjustments */
    .service-card:hover,
    .value-card:hover,
    .feature-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .service-icon,
    .value-icon,
    .feature-icon {
        transform: none !important;
    }
    
    /* Stats */
    .stat-count {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Contact form */
    .form-control {
        padding: 0.6rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* Reduce animation intensities */
    .parallax {
        transform: none !important;
    }
}

/* ==================== Animation Adjustments for Mobile ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax {
        transform: none !important;
    }
    
    .floating-shape {
        display: none;
    }
}