/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #1000BE;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #000000;
    --text-color: #000000;
    --text-light: #00000096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Dark Contact Form */
.hero {
    background-image: url("images/img01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff; 
    padding: 80px 0 100px 0;
    margin-bottom: 80px; /* Changes were made here: Added margin-bottom for spacing */ 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 36, 78, 0.767);
    z-index: 0;
}

.container1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 800;
}

.hero-content h1 span {
    display: block;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-form {
    background: #1c244e;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    align-self: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .cta-button.primary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contact-form .cta-button.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container1 {
        gap: 40px;
        padding: 0 30px;
    }
    
    .contact-form {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .container1 {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 25px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        max-width: 550px;
        margin: 0 auto;
        padding: 35px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: white;
}

h1 span {
    display: block;
    color: white;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: #333333;
    font-size: 1.1rem;
}

.container1 p {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-color);
}



/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.cta-button.primary1 {
    background-color: var(--secondary-color);
    color: white;
}

.cta-button.primary1:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
}

.cta-button.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
}

.logo:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin-left: 40px;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.nav-cta {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.nav-cta:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--light-color);
}

.hero-content {
    max-width: 700px;
}



.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.about {
    padding: 100px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}


.about2 {
    width: 100%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    text-align: left;
    margin-left: 50px;
}

.about-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-img {
        max-width: 500px;
    }

}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    
    .about-img {
        max-width: 100%;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 60px 0;
    }
    
    .about-img {
        margin-top: 30px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}


/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    margin-bottom: 20px;
    color: #333333;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: white;
}

.learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

.stats {
    padding: 80px 0;
    background-color: white;
    color: black;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item i.fa-calendar-alt { color: var(--secondary-color); }
.stat-item i.fa-users { color: var(--secondary-color); }     
.stat-item i.fa-medal { color: var(--secondary-color); }     
.stat-item i.fa-trophy { color: var(--secondary-color); }

.stat-item h3 {
    font-size: 3rem;
    color: black;
}

.stat-item p {
    font-size: 1.2rem;
    color: black;
}

.case-studies {
    padding: 100px 0;
    background-color: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Adjusted gap from 30px to 20px for better alignment */
}

.case-study-card {
    background-color: var(--light-color);
    padding: 0px 0px 40px 0px; /* Adjusted padding from 30px to 0px 0px 40px 0px for better alignment */
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-study-card:hover {
    transform: translateY(-10px);
}

.case-study-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-color);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 30px;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.client-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-prev,
.slider-next {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--secondary-color);
}

.blog {
    padding: 100px 0;
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 50px;
}

.blog-post {
    background-color: var(--light-color);
    padding: 40px 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.subscribe-form {
    background-color: var(--secondary-color);
    width: 100%;
    padding: 70px 30px;
    border-radius: 0px;
    margin-top: 50px;
    text-align: center;
}

.subscribe-form h3 {
    margin-bottom: 20px;
    color: white;
}

.subscribe-form p {
    color: white;
}

.subscribe-form form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    background-color: white;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.subscribe-form button {
    border-radius: 0 4px 4px 0;
    background-color: white;
    margin-left: 20px;
}

.contact {
    padding: 100px 0;
    background-color: var(--light-color);
    align-items: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-method {
    justify-content: space-between;
    margin: 0 100px 0 100px;
    text-align: center;
}

.contact-method h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-method p {
    color: var(--text-light);
}


.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: none;
}

/* Custom Scrollbar Styling */
.form-group textarea {
  scrollbar-width: none; /* "auto", "thin", or "none" */
  scrollbar-color: #888, rgba(255, 255, 255, 0.08); /* thumb color, track color */
}

.footer {
    background-color: #0C0C0C;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-icons i{
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .cta-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-cta {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 150px 0 80px;
    }
}

@media (max-width: 576px) {
    .subscribe-form form {
        flex-direction: column;
    }

    .subscribe-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .subscribe-form button {
        border-radius: 4px;
        width: 100%;
    }

    .testimonial-content {
        padding: 30px 20px;
    }
}

/* My Own Changes To The CSS */
.fa-shield-alt, .fa-brain, .fa-cloud, .fa-envelope, .fa-phone-alt, .fa-map-marker-alt{
    color: var(--secondary-color);
}

.fa-brain, .fa-envelope, .fa-phone-alt, .fa-map-marker-alt{
    font-size: 2rem;
}

.case-study-img{
    width: 100%;
    height: auto;
    object-fit: cover;
}

.case-study-inner-content {
    padding: 0px 10px 0px 10px;
}

.blog-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-inner-content {
    padding: 0px 10px 0px 10px;
}

.footer-brand p {
    color: #333333;
}

.footer-bottom p {
    color: #333333;
}

/* ========================================
   ENHANCED RESPONSIVE STYLES
   Optimized for iPhone & Tablet devices
   ======================================== */

/* Base improvements for better mobile rendering */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   TABLET LANDSCAPE (992px - 1200px)
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .container1 {
        max-width: 960px;
        padding: 0 30px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* ========================================
   TABLET PORTRAIT (768px - 992px)
   ======================================== */
@media (max-width: 992px) {
    /* Navigation adjustments */
    .nav-links {
        margin-left: 20px;
    }
    
    .nav-links li {
        margin-left: 20px;
    }
    
    /* Hero section */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .container1 {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-form {
        max-width: 500px;
        margin: 0 auto;
        padding: 40px 30px;
    }
    
    /* About section */
    .about {
        flex-direction: column;
        padding: 80px 0;
        text-align: center;
    }
    
    .about-content {
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
    }
    
    .about2 {
        margin-top: 40px;
    }
    
    .about-img {
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    /* Stats section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Case studies */
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Contact section */
    .contact-info {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .contact-method {
        margin: 0;
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ========================================
   MOBILE LANDSCAPE & SMALL TABLETS (576px - 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 20px;
    }
    
    .container1 {
        padding: 0 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Header - Mobile menu active */
    .header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        margin-left: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin: 15px 20px 0;
        width: calc(100% - 40px);
        display: block;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        margin-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
        margin-bottom: 18px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .contact-form .form-group {
        margin-bottom: 18px;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .contact-form .cta-button.primary {
        padding: 14px;
        font-size: 1rem;
    }
    
    /* About section mobile */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        padding: 0 10px;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-img {
        max-width: 100%;
        margin-top: 30px;
        border-radius: 8px;
    }
    
    /* Services mobile */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    .service-card i {
        font-size: 1.5rem !important;
    }
    
    /* Stats mobile */
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .stat-item i {
        font-size: 2rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }
    
    /* Case studies mobile */
    .case-studies {
        padding: 60px 0;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-study-card {
        padding: 0 0 30px 0;
    }
    
    .case-study-inner-content {
        padding: 0 15px;
    }
    
    .case-study-inner-content h3 {
        font-size: 1.25rem;
        margin-top: 15px;
    }
    
    .case-study-inner-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Testimonials mobile */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        max-width: 100%;
    }
    
    .testimonial-slide {
        padding: 20px 10px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-content img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 15px;
    }
    
    .client-name {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .slider-controls {
        margin-top: 20px;
    }
    
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
    }
    
    /* Newsletter mobile */
    .subscribe-form {
        padding: 50px 20px;
        margin-top: 40px;
    }
    
    .subscribe-form h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .subscribe-form p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .subscribe-form form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .subscribe-form input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 12px;
        padding: 14px 15px;
    }
    
    .subscribe-form button {
        width: 100%;
        border-radius: 4px;
        margin-left: 0;
        padding: 14px;
    }
    
    /* Blog mobile */
    .blog {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .blog-post {
        padding: 0 0 30px 0;
    }
    
    .blog-inner-content {
        padding: 0 15px;
    }
    
    .blog-inner-content h3 {
        font-size: 1.25rem;
        margin-top: 15px;
    }
    
    .blog-inner-content p {
        font-size: 0.95rem;
    }
    
    /* Contact mobile */
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        gap: 30px;
        margin-top: 30px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    
    .contact-method {
        margin: 0;
        padding: 0 20px;
    }
    
    .contact-method i {
        font-size: 1.75rem;
    }
    
    .contact-method h3 {
        font-size: 1.25rem;
    }
    
    .contact-method p {
        font-size: 0.95rem;
    }
    
    .contact-info-button {
        width: 100%;
        padding: 0 20px;
    }
    
    .contact-info-button .cta-button {
        width: 100%;
        padding: 14px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand h2 {
        font-size: 1.75rem;
    }
    
    .footer-brand p {
        font-size: 0.95rem;
    }
    
    .footer-links h3,
    .footer-services h3,
    .footer-social h3 {
        font-size: 1.1rem;
    }
    
    .footer-links ul,
    .footer-services ul {
        padding: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* ========================================
   IPHONE SE / SMALL MOBILE (320px - 576px)
   ======================================== */
@media (max-width: 576px) {
    /* Even tighter spacing for small phones */
    .container {
        padding: 0 15px;
    }
    
    .container1 {
        padding: 0 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    /* Header */
    .logo {
        font-size: 1.4rem;
    }
    
    /* Hero ultra-compact */
    .hero {
        padding: 90px 0 50px;
        margin-bottom: 50px;
    }
    
    .hero-content h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 11px 13px;
        font-size: 0.9rem;
    }
    
    /* Section padding reduction */
    .about,
    .services,
    .stats,
    .case-studies,
    .testimonials,
    .blog,
    .contact {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        padding-bottom: 12px;
    }
    
    .section-header h2::after {
        width: 60px;
    }
    
    /* Stats - Stack completely on small phones */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px 0;
    }
    
    .stat-item i {
        font-size: 1.75rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.85rem;
        margin: 10px 0;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Cards adjustments */
    .service-card,
    .case-study-card,
    .blog-post {
        padding: 25px 15px;
    }
    
    /* Buttons */
    .cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Learn more / Read more links */
    .learn-more,
    .read-more {
        font-size: 0.9rem;
    }
    
    /* Newsletter */
    .subscribe-form {
        padding: 40px 15px;
    }
    
    .subscribe-form h3 {
        font-size: 1.35rem;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Contact methods - Better spacing */
    .contact-method {
        padding: 0 10px;
    }
    
    .contact-method i {
        font-size: 1.5rem;
    }
    
    /* Testimonial images */
    .testimonial-content img {
        width: 70px;
        height: 70px;
    }
    
    .client-name {
        font-size: 1.15rem;
    }
    
    /* Footer adjustments */
    .footer-brand h2 {
        font-size: 1.6rem;
    }
    
    .footer-brand p,
    .footer-links a,
    .footer-services a {
        font-size: 0.9rem;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ULTRA-SMALL DEVICES (iPhone SE 1st gen, etc.)
   ======================================== */
@media (max-width: 375px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.75rem;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .nav-links {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-form .form-group {
        margin-bottom: 15px;
    }
}

/* ========================================
   TOUCH DEVICE IMPROVEMENTS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .cta-button,
    button,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 15px 20px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .case-study-card:hover,
    .blog-post:hover {
        transform: none;
    }
    
    /* Better tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 10001;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .hamburger,
    .nav-links,
    .cta-button,
    .hero-buttons,
    .contact-form,
    .subscribe-form,
    .slider-controls,
    .footer-social {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .hero::before {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    .service-card,
    .case-study-card,
    .blog-post {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce animations on low-performance devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for smoother animations */
.service-card,
.case-study-card,
.blog-post,
.cta-button {
    transform: translateZ(0);
    will-change: transform;
}

/* ========================================
    BROWSER-SPECIFIC FIXES
   ======================================== */

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix 100vh issue on iOS */
    .hero {
        min-height: -webkit-fill-available;
    }
    
    /* Fix sticky positioning */
    .header {
        position: -webkit-sticky;
        position: sticky;
    }
    
    /* Better font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Android Chrome fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    input,
    textarea {
        font-size: 16px; /* Prevents zoom on focus */
    }
}

/* ========================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ======================================== */

/* Hide/show elements based on screen size */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Responsive text alignment */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Responsive spacing */
@media (max-width: 768px) {
    .mb-mobile-small {
        margin-bottom: 15px !important;
    }
    
    .mb-mobile-medium {
        margin-bottom: 25px !important;
    }
    
    .p-mobile-small {
        padding: 15px !important;
    }
}