/* 
=================
Header & Navigation
=================
*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu .current-menu-item a:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Prevent accidental horizontal scroll on small screens */
html, body {
    overflow-x: hidden;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 28px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* 
=================
Hero Section
=================
*/

.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 5.5rem;
    overflow: hidden;
}

/* Extra spacing for large monitors */
@media (min-width: 1600px) {
    .hero-section {
        padding-bottom: 8.5rem;
    }
}

@media (min-width: 1920px) {
    .hero-section {
        padding-bottom: 10rem;
    }
}

/* Ensure stats row always appears above hero video and never gets covered */
.hero-stats {
    position: relative;
    z-index: 2;
}
.hero-video-container {
    position: relative;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #e9f2ff 100%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #0066FF, #3385FF);
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #00D4AA, #00FFC6);
    bottom: -150px;
    left: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6B6B, #FFB6B6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

/* Balanced layout on large screens */
@media (min-width: 1400px) {
    .hero-content {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1600px) {
    .hero-content {
        grid-template-columns: 1.4fr 0.6fr;
        gap: 4rem;
        margin-bottom: 5rem;
    }
}

@media (min-width: 1920px) {
    .hero-content {
        grid-template-columns: 1.5fr 0.5fr;
        gap: 4rem;
        margin-bottom: 6rem;
    }
}

.hero-text .badge {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4B5563;
    margin-bottom: 3rem;
    max-width: 95%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

/* Extra top spacing for stats on large monitors */
@media (min-width: 1400px) {
    .hero-stats {
        margin-top: 3.5rem;
        padding-top: 3rem;
    }
}

@media (min-width: 1600px) {
    .hero-stats {
        margin-top: 4rem;
        padding-top: 3.5rem;
        margin-bottom: -3rem;
    }
}

@media (min-width: 1920px) {
    .hero-stats {
        margin-top: 4.5rem;
        padding-top: 4rem;
        margin-bottom: -4rem;
    }
}

.stat {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 102, 255, 0.15);
    min-width: 180px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.15);
}

.stat:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #4B5563;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: bouncyFloat 4s infinite ease-in-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 280px;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.25);
}

.floating-card .card-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    animation: iconBounce 2s infinite ease-in-out;
}

.floating-card.card-1 .card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}

.floating-card.card-2 .card-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.floating-card.card-3 .card-icon {
    background: linear-gradient(135deg, #00D4AA, #00B894);
    color: white;
}

.floating-card.card-4 .card-icon {
    background: linear-gradient(135deg, #9C27B0, #E040FB);
    color: white;
}

.floating-card .card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-card .card-text strong {
    font-size: 1.125rem;
    color: var(--color-dark);
    font-weight: 700;
    margin: 0;
}

.floating-card .card-text span {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* Enhanced positioning with better spacing */
.floating-card.card-1 {
    top: 5%;
    right: 8%;
    animation-delay: 0s;
    z-index: 3;
}

.floating-card.card-2 {
    top: 40%;
    left: 3%;
    animation-delay: 1.5s;
    z-index: 2;
}

.floating-card.card-3 {
    bottom: 8%;
    right: 12%;
    animation-delay: 3s;
    z-index: 3;
}

.floating-card.card-4 {
    top: 55%;
    right: 25%;
    animation-delay: 4.5s;
    z-index: 2;
}

/* Hero Video Styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
    align-self: center; /* Center video vertically with hero text */
    margin-top: 0.5rem; /* Keep a clear gap from the navbar */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.hero-content.align-video-up .hero-video-container,
.hero-video-container.align-up {
    margin-top: -1rem;
}

@media (min-width: 1400px) {
    .hero-video-container {
        margin-top: -0.5rem;
    }
}

@media (min-width: 1600px) {
    .hero-video-container {
        margin-top: -1rem;
    }
}

/* Add floating background elements */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: 50%;
    animation: floatingOrb 8s infinite ease-in-out;
    z-index: 1;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 30%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 50%;
    animation: floatingOrb 6s infinite ease-in-out reverse;
    z-index: 1;
}

/* Enhanced animations */
@keyframes bouncyFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes floatingOrb {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 102, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

.floating-particle:nth-child(2) {
    background: rgba(0, 212, 170, 0.3);
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-particle:nth-child(3) {
    background: rgba(255, 215, 0, 0.3);
    animation-delay: 4s;
    animation-duration: 12s;
}

.floating-particle:nth-child(4) {
    background: rgba(255, 165, 0, 0.3);
    animation-delay: 6s;
    animation-duration: 9s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* 
=================
Services Section
=================
*/

.services-section {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Reduce top padding on large monitors to prevent excessive spacing */
@media (min-width: 1600px) {
    .services-section {
        padding-top: 5rem;
    }
}

@media (min-width: 1920px) {
    .services-section {
        padding-top: 4rem;
    }
}

.services-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 170, 0.08));
    border-radius: 50%;
    animation: floatingOrb 10s infinite ease-in-out;
    z-index: 1;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.08));
    border-radius: 50%;
    animation: floatingOrb 8s infinite ease-in-out reverse;
    z-index: 1;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-gray);
}

.service-card {
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.15);
}

.service-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.service-card .card-icon {
    transition: all 0.3s ease;
    animation: gentleFloat 3s infinite ease-in-out;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    animation: iconBounce 0.6s ease;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

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

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--color-gray);
    font-size: 1rem;
}

/* 
=================
Values Section
=================
*/

.values-section {
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: 50%;
    animation: floatingOrb 12s infinite ease-in-out;
    z-index: 1;
}

.values-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 50%;
    animation: floatingOrb 10s infinite ease-in-out reverse;
    z-index: 1;
}

/* 
=================
Why Choose Section
=================
*/

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

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

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* 
=================
CTA Section
=================
*/

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-box {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 
=================
Footer
=================
*/

.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
}

.footer-main {
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}


.footer-title {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* 
=================
Responsive Design
=================
*/

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 400px;
    }

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

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

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-menu-wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu-wrapper.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--color-gray-light);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
    }
    
    .header-actions {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }
    
    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .nav-wrapper {
        justify-content: space-between;
    }
    
    .site-branding {
        flex-shrink: 0;
    }
    
    /* Ensure header elements never overflow viewport */
    .nav-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .site-branding,
    .header-actions {
        flex: 0 0 auto;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .site-branding .site-logo img,
    .site-branding .site-title a {
        display: block;
        max-width: 140px;
        height: auto;
    }
    
    /* On very small screens, hide the large CTA to keep the hamburger visible */
    @media (max-width: 380px) {
        .header-actions .btn {
            display: none;
        }
        .site-branding .site-logo img,
        .site-branding .site-title a {
            max-width: 120px;
        }
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger .line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .site-header {
        padding: 1rem 0;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .site-branding .site-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-video-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .stat {
        width: 100%;
        min-width: unset;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .page-header {
        padding: 4rem 0 3rem !important;
    }
    
    .page-title {
        font-size: 2rem !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .services-section {
        padding-top: 3rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem !important;
        align-items: center;
    }
    
    .footer-bottom-links a,
    .footer-bottom-links button {
        font-size: 0.9375rem !important;
    }
    
    .footer-stats {
        padding: 2rem 0 1.5rem !important;
    }
    
    .footer-stats > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-main {
        padding: 3rem 0 2rem !important;
    }
    
    .footer-grid {
        gap: 2rem !important;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links,
    .footer-contact {
        align-items: center;
    }
    
    .footer-links li,
    .footer-contact li {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .trust-indicators > div {
        justify-content: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer typography and sizing refinements for small screens */
    .footer-site-title {
        font-size: 1.5rem !important;
        text-align: center;
    }
    .footer-logo img {
        max-width: 140px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .footer-description {
        text-align: center;
        font-size: 0.95rem;
    }
    .footer-title {
        font-size: 1.125rem !important;
    }
    .footer-links a {
        padding: 0.5rem 0;
    }
    .footer-contact a {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* 
=================
Services Page
=================
*/

.services-grid {
    display: grid;
    gap: 3rem;
}

.service-detail {
    padding: 3rem;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-detail h2 {
    margin: 0;
}

.service-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-detail h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-dark);
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-benefits li {
    padding: 0.75rem 0;
    color: var(--color-gray);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--color-gray-light);
    color: var(--color-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.process-step {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.process-step strong {
    color: var(--color-primary);
    font-size: 1.125rem;
}

.process-step span {
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* 
=================
Case Studies Page
=================
*/

.case-study-card {
    display: flex;
    flex-direction: column;
}

.case-study-header {
    margin-bottom: 2rem;
}

.case-study-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.case-study-date {
    color: var(--color-gray);
    font-size: 0.875rem;
    font-weight: 600;
}

.case-study-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.case-study-client {
    color: var(--color-gray);
    font-size: 1rem;
    margin: 0;
}

.case-study-challenge,
.case-study-solution {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.case-study-challenge strong,
.case-study-solution strong {
    color: var(--color-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.case-study-results {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.case-study-results strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.result-item {
    text-align: center;
}

.result-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.case-study-tech {
    margin-top: 1.5rem;
}

.case-study-tech strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

/* 
=================
Blog Post Cards
=================
*/

.blog-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-post-card .post-thumbnail {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-post-card .post-thumbnail img {
    transition: var(--transition);
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-post-card .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.blog-post-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-card .entry-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.blog-post-card .entry-title a:hover {
    color: var(--color-primary);
}

.blog-post-card .entry-excerpt {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.blog-post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.blog-post-card .read-more:hover {
    gap: 0.75rem;
}

.blog-post-card .post-footer {
    margin-top: auto;
}

/* 
=================
Accessibility
=================
*/

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* 
=================
Enhanced Footer Styles
=================
*/

.footer-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.footer-cta .btn:last-child:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    color: #fff !important;
    padding-left: 5px;
}

.footer-links a:hover span {
    transform: translateX(3px);
}

.footer-contact a:hover {
    color: #fff !important;
}

.footer-bottom-links a:hover {
    color: #fff !important;
}

/* Trust indicators hover effect */
.trust-indicators span:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Stats animation */
.footer-stats div {
    transition: var(--transition);
}

.footer-stats div:hover {
    transform: translateY(-5px);
}

/* Quick contact CTA hover */
.footer-column a[href="#contact"]:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-2px);
}

/* 
=================
Smooth Animations
=================
*/

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

/*
=================
Footer Link Hover Effects
=================
*/

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.footer-bottom-links button:hover {
    color: rgba(255, 255, 255, 1) !important;
}

