/* Import AOS animations */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* CSS Variables for Tech Assure Color Palette */
:root {
    /* Primary Brand Colors */
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    
    /* Secondary Colors */
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    
    /* Neutral Colors */
    --dark-navy: #0f172a;
    --dark-slate: #1e293b;
    --medium-slate: #334155;
    --light-slate: #64748b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --white: #ffffff;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue-dark) 50%, var(--primary-blue) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-slate);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name {
    background: linear-gradient(45deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
    font-weight: 800;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes techGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
        border-color: var(--primary-blue-light);
    }
    50% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
        border-color: var(--accent-orange);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.fade-in-up.animate,
.slide-in-left.animate,
.slide-in-right.animate {
    opacity: 1;
    transform: translate(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.hover-lift {
    transition: all 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
}

/* Header and Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(30, 58, 138, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(30, 58, 138, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    transition: all 0.3s ease;
    filter: brightness(1.05) contrast(1.1);
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
    display: block;
    margin: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-slate);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 140px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: gradientShift 20s ease infinite;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    color: var(--gray-200);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-tech-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    animation: techGlow 3s ease-in-out infinite;
}

.tech-icon:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-orange);
}

/* Buttons */
.btn {
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--gray-100);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-blue-light);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-secondary);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-navy);
    font-weight: 700;
}

.service-card p {
    color: var(--medium-slate);
    margin-bottom: auto;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Tech Images Section */
.tech-showcase {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.tech-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.tech-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.tech-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><path d="M0,10 Q10,0 20,10 T40,10" stroke="rgba(255,255,255,0.05)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tech-pattern)"/></svg>');
    opacity: 0.4;
}

.tech-image-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.4);
    background: var(--gradient-secondary);
}

.tech-image-card i {
    font-size: 3.5rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.tech-image-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.tech-image-card:hover .tech-overlay {
    transform: translateY(0);
}

/* Mobile touch interaction - always show overlay on mobile */
@media (max-width: 768px) {
    .tech-overlay {
        transform: translateY(0);
        background: rgba(0,0,0,0.8);
        position: relative;
        margin-top: auto;
    }
    
    .tech-image-card {
        height: auto;
        min-height: 180px;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .tech-image-card i {
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }
    
    .tech-overlay {
        position: static;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        margin-top: 1rem;
    }
    
    .tech-overlay h4 {
        color: white;
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
        text-align: center;
    }
}

.tech-overlay h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Testing Services */
.testing-services {
    padding: 120px 0;
    background: var(--dark-navy);
    color: white;
    position: relative;
}

.testing-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.2)"/><path d="M0,10 L20,10 M10,0 L10,20" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>');
    opacity: 0.1;
}

.testing-services .container {
    position: relative;
    z-index: 1;
}

.testing-services .section-title {
    color: white;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testing-services .section-title::after {
    background: var(--gradient-secondary);
}

.testing-intro {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--medium-slate);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    font-weight: 600;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testing-feature {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.testing-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testing-feature:hover::before {
    transform: scaleX(1);
}

.testing-feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.1);
}

.testing-feature i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

.testing-feature:hover i {
    color: white;
    transform: scale(1.1);
}

.testing-feature span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::after {
    background: var(--gradient-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 15px;
    font-size: 2.5rem;
    color: var(--accent-orange);
    opacity: 0.6;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.testimonial-author strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.testimonial-author span {
    opacity: 0.85;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* About Section */
.about {
    padding: 120px 0;
    background: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

.about .container {
    position: relative;
    z-index: 1;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mission, .vision {
    background: var(--gradient-card);
    padding: 3.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
}

.mission::before, .vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 25px 25px 0 0;
}

.mission:hover, .vision:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.15);
}

.mission h3, .vision h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.mission p, .vision p {
    font-size: 1.15rem;
    color: var(--medium-slate);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(59,130,246,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

footer .container {
    position: relative;
    z-index: 1;
}

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

.footer-section h4 {
    margin-bottom: 2rem;
    color: var(--accent-orange);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: var(--gray-200);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-section p {
    color: var(--gray-200);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--medium-slate);
    padding-top: 2rem;
    text-align: center;
    color: var(--light-slate);
}

/* Large Desktop Responsiveness */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1300px;
        gap: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    /* Logo adjustments for tablets */
    .logo-img {
        height: 80px;
        max-width: 240px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .tech-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .testing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Medium Tablet Responsiveness */
@media (max-width: 900px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 800px;
    }
    
    .service-card {
        min-height: 420px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1);
        padding: 3rem 0;
        gap: 1.5rem;
        border-top: 1px solid rgba(30, 58, 138, 0.1);
        z-index: 999;
    }

    /* Mobile logo adjustments */
    .logo-img {
        height: 70px;
        max-width: 200px;
        padding: 8px;
    }

    /* Improve navbar spacing on mobile */
    .navbar .container {
        padding: 0.8rem 15px;
    }

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

    .hero {
        padding: 100px 0 60px;
        min-height: 85vh;
        text-align: center;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-tech-icons {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 280px;
        padding: 14px 35px;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }

    .service-card {
        padding: 2rem;
        margin: 0 auto;
        max-width: 450px;
        min-height: 380px;
    }

    .testing-services {
        padding: 80px 0;
    }

    .testing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .tech-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 10px;
    }

    .testing-feature {
        padding: 2rem 1rem;
    }

    .testing-feature i {
        font-size: 2.5rem;
    }

    .testimonials {
        padding: 80px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 2rem;
        margin: 0 auto;
        max-width: 400px;
    }

    .about {
        padding: 80px 0;
    }

    .mission-vision {
        gap: 2rem;
        padding: 0 10px;
    }

    .mission, .vision {
        padding: 2rem;
        margin: 0 auto;
        max-width: 400px;
    }

    footer {
        padding: 60px 0 30px;
    }

    .container {
        padding: 0 20px;
    }

    /* Better text scaling on mobile */
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile logo further optimization */
    .logo-img {
        height: 60px;
        max-width: 160px;
        padding: 6px;
    }

    .navbar .container {
        padding: 0.6rem 15px;
    }

    .hero {
        padding: 80px 0 50px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 0 5px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 2rem;
    }

    .services {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5px;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 350px;
        min-height: 320px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .testing-services {
        padding: 50px 0;
    }

    .testing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 5px;
    }

    .testing-feature {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 300px;
    }

    .tech-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 5px;
    }

    .tech-image-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .testimonials {
        padding: 50px 0;
    }

    .testimonials-grid {
        padding: 0 5px;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 350px;
    }

    .about {
        padding: 50px 0;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5px;
    }

    .mission, .vision {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 350px;
    }

    .mission h3, .vision h3 {
        font-size: 1.6rem;
    }

    .hero-tech-icons {
        display: none;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 30px;
        font-size: 0.95rem;
        margin: 0 auto;
    }

    .hero-buttons {
        gap: 1rem;
        padding: 0 20px;
    }

    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    footer {
        padding: 50px 0 30px;
    }
}

/* Loading animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testing-feature,
    .testimonial-card,
    .mission,
    .vision {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }

    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: var(--dark-navy);
        border: 3px solid var(--accent-orange);
    }
    
    .btn-secondary {
        background: var(--white);
        color: var(--dark-navy);
        border: 3px solid var(--dark-navy);
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .hero-bg-animation,
    .hero-tech-icons,
    .hamburger,
    footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .section-title {
        color: black;
    }
}