/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Shooting Stars Background Effect */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 20px 30px, rgba(0, 212, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 212, 255, 0.7), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(0, 212, 255, 0.9), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starsMove 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes starsMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200px);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styles with Meteor Effects */
.logo-image {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
    transition: all 0.3s ease;
    animation: logoFloat 4s ease-in-out infinite, logoPulse 2s ease-in-out infinite alternate;
    position: relative;
}

.logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
    transform: scale(1.05);
}

/* Floating Animation */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Pulsing Glow Animation */
@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 25px rgba(0, 212, 255, 0.3));
    }
}

/* Logo Container with Shimmer Effect */
.nav-logo {
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Shimmer Effect */
.nav-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: logoShimmer 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.logo-image {
    position: relative;
    z-index: 2;
}

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

    50% {
        transform: translateX(150%) translateY(150%) rotate(45deg);
    }

    100% {
        transform: translateX(300%) translateY(300%) rotate(45deg);
    }
}

/* Comet Trail Effect */
.nav-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    transform: translateY(-50%) rotate(-15deg);
    animation: cometTrail 3s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes cometTrail {

    0%,
    70% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px) rotate(-15deg) scaleX(0);
    }

    80% {
        opacity: 1;
        transform: translateY(-50%) translateX(0px) rotate(-15deg) scaleX(1);
    }

    90% {
        opacity: 0.5;
        transform: translateY(-50%) translateX(15px) rotate(-15deg) scaleX(0.5);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(30px) rotate(-15deg) scaleX(0);
    }
}

/* Enhanced Hover Effects */
.nav-logo:hover .logo-image {
    animation-duration: 1s, 0.5s;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.3));
}

.nav-logo:hover::after {
    animation-duration: 1s;
}

/* Active/Click State */
.nav-logo:active .logo-image {
    transform: scale(0.95);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 1)) brightness(1.2);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 153, 204, 0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 1;
    visibility: visible;
}

.gradient-text {
    background: linear-gradient(90deg, #00d4ff, #0099cc, #00d4ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease-in-out infinite;
    /* Fallback for browsers that don't support background-clip: text */
    color: #00d4ff;
}

@keyframes gradient-flow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hero Logo - Interactive Meteor */
.hero-logo {
    display: flex;
    justify-content: center;
    margin: 2rem 0 2.5rem;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.hero-logo-image {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
    animation: meteorFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

/* Subtle floating animation */
@keyframes meteorFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-5px) rotateY(5deg);
    }
}

/* Meteor Trail Effect */
.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.3) 10%,
            rgba(0, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 1) 90%,
            transparent 100%);
    transform: translateY(-50%) skewX(-20deg);
    opacity: 0;
    transition: all 0.4s ease-out;
    z-index: 1;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Particle field behind meteor */
.hero-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle,
            rgba(0, 212, 255, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Hover - Meteor in Motion */
.hero-logo:hover .hero-logo-image {
    animation: meteorSpeed 0.6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.5)) brightness(1.2);
    transform: scale(1.05) rotateY(10deg);
}

.hero-logo:hover::before {
    width: 200px;
    opacity: 1;
    animation: trailFlicker 0.1s ease-in-out infinite;
}

.hero-logo:hover::after {
    opacity: 1;
    width: 120px;
    height: 120px;
    animation: particleField 2s ease-in-out infinite;
}

/* Fast meteor animation on hover */
@keyframes meteorSpeed {

    0%,
    100% {
        transform: scale(1.05) rotateY(10deg) translateX(0px);
    }

    50% {
        transform: scale(1.05) rotateY(10deg) translateX(3px);
    }
}

/* Trail flickering effect */
@keyframes trailFlicker {

    0%,
    100% {
        opacity: 1;
        width: 200px;
    }

    50% {
        opacity: 0.7;
        width: 180px;
    }
}

/* Particle field animation */
@keyframes particleField {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.1;
    }
}

/* Click - Meteor Impact */
.hero-logo:active .hero-logo-image {
    transform: scale(0.9) rotateY(-10deg);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 1)) drop-shadow(0 0 80px rgba(0, 212, 255, 1)) brightness(2) saturate(2);
    animation: none;
}

.hero-logo:active::before {
    width: 300px;
    height: 8px;
    opacity: 1;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 1) 20%,
            rgba(0, 255, 255, 1) 50%,
            rgba(0, 212, 255, 0.8) 80%,
            transparent 100%);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #000;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #111111;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.service-icon {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.8;
}

/* AI Capabilities Section */
.ai-capabilities {
    padding: 5rem 0;
    background: #0f0f0f;
    position: relative;
    overflow: hidden;
    /* Hardware acceleration for better performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.ai-capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(0, 153, 204, 0.05) 0%, transparent 50%);
    z-index: 0;
}

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

.ai-cards-container {
    position: relative;
    height: 400px;
    margin: 3rem 0;
    overflow: hidden;
    /* Optimize for mobile performance */
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure proper stacking */
    z-index: 1;
}

.ai-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    visibility: hidden;
}

.ai-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    visibility: visible;
}

.ai-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
}

/* Touch-friendly enhancements for mobile */
.ai-cards-container {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.ai-card {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Ensure proper layering */
    z-index: 1;
}

.ai-card.active {
    z-index: 2;
}

.indicator {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-specific hover replacements */
@media (hover: none) and (pointer: coarse) {
    .ai-card:hover {
        transform: none;
        border-color: rgba(0, 212, 255, 0.2);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    }

    .ai-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .indicator:active {
        transform: scale(1.3);
        background: #00d4ff;
    }

    /* Logo touch effects for mobile */
    .nav-logo:hover .logo-image {
        animation-duration: 4s, 2s;
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
    }

    .nav-logo:active .logo-image {
        transform: scale(0.9);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) brightness(1.1);
    }

    /* Hero logo touch effects */
    .hero-logo-image:active {
        transform: scale(0.95);
        filter: drop-shadow(0 0 25px rgba(0, 212, 255, 1)) brightness(1.2);
    }

    /* Reduce intensive animations on touch devices */
    .nav-logo::before {
        animation-duration: 6s;
        opacity: 0.5;
    }

    .nav-logo::after {
        animation-duration: 5s;
    }

    /* Optimize hero logo for touch devices */
    .hero-logo-image {
        animation-duration: 5s;
    }

    .hero-logo:hover .hero-logo-image {
        animation-duration: 0.8s;
    }

    .hero-logo:hover::before {
        width: 150px;
    }

    .hero-logo:hover::after {
        width: 100px;
        height: 100px;
    }

    .hero-logo:active::before {
        width: 250px;
        height: 6px;
    }

    /* Remove any extra margins on mobile touch devices */
    .ai-capabilities {
        padding-bottom: 2rem;
    }

    .ai-progress {
        margin-bottom: 0;
    }
}

.ai-card-icon {
    color: #00d4ff;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.ai-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ai-card p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.ai-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.card-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #00d4ff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Achievements Section */
.achievements {
    padding: 5rem 0;
    background: #0a0a0a;
}

.achievements-content {
    display: grid;
    gap: 4rem;
}

.achievement-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.achievement-badge {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: #000;
    min-width: 200px;
}

.achievement-badge h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-text h4 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.achievement-text p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.achievement-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.achievement-list li {
    color: #e0e0e0;
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.achievement-list li::before {
    content: '✓';
    color: #00d4ff;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.certifications {
    margin-top: 3rem;
}

.certifications h4 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.cert-item h5 {
    color: #00d4ff;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cert-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #111111;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.expertise-areas {
    margin: 3rem 0;
}

.expertise-areas h3 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.methodology {
    margin-top: 4rem;
}

.methodology h3 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
}

.method-steps {
    display: grid;
    gap: 1.5rem;
}

.method-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #0a0a0a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #b0b0b0;
    font-size: 1rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group option {
    background: #111111;
    color: #ffffff;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 1rem 16px;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        z-index: 999;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-logo {
        margin: 1.5rem 0 2rem;
    }

    .hero-logo-image {
        height: 90px;
        animation-duration: 5s;
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    }

    .hero-logo:hover::before {
        width: 140px;
    }

    .hero-logo:hover::after {
        width: 90px;
        height: 90px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat {
        padding: 1rem;
    }

    .stat p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .ai-capabilities {
        padding: 3rem 0;
    }

    .ai-cards-container {
        height: auto;
        min-height: 280px;
        margin: 1.5rem 0;
    }

    .ai-card {
        padding: 1.8rem 1.5rem;
        position: absolute;
        border-radius: 20px;
        height: auto;
        min-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        top: 0;
        left: 0;
        width: 100%;
    }

    .ai-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .ai-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .ai-card-icon {
        margin-bottom: 1.5rem;
    }

    .ai-card-icon svg {
        width: 55px;
        height: 55px;
    }

    .progress-bar {
        width: 250px;
    }

    .ai-progress {
        gap: 1.5rem;
    }

    .achievements {
        padding: 3rem 0;
    }

    .achievement-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .achievement-badge {
        margin: 0 auto 2rem;
        max-width: 200px;
    }

    .achievement-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cert-item {
        padding: 1.2rem;
    }

    .about {
        padding: 3rem 0;
    }

    .method-steps {
        gap: 1rem;
    }

    .method-step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.2rem;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .expertise-tags {
        gap: 0.8rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

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

    .nav-container {
        padding: 0.8rem 12px;
    }

    .logo-image {
        height: 35px;
        animation: logoFloat 3s ease-in-out infinite, logoPulse 2.5s ease-in-out infinite alternate;
    }

    .nav-logo::before {
        animation: logoShimmer 5s ease-in-out infinite;
    }

    /* Reduce navbar stars on mobile */
    .navbar::after {
        opacity: 0.2;
        animation-duration: 15s;
    }

    /* Mobile logo adjustments */
    .nav-logo::after {
        width: 40px;
        height: 1px;
        animation-duration: 4s;
    }

    /* Touch-friendly logo effects */
    .nav-logo:active .logo-image {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }

    /* Reduce comet trail on very small screens */
    .nav-logo::after {
        width: 30px;
        left: -5px;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }

    .hero-logo {
        margin: 1rem 0 1.5rem;
    }

    .hero-logo-image {
        height: 70px;
        animation-duration: 6s;
        filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
    }

    .hero-logo:hover::before {
        width: 100px;
    }

    .hero-logo:hover::after {
        width: 70px;
        height: 70px;
    }

    .hero-logo:active::before {
        width: 180px;
        height: 5px;
    }

    .stat {
        padding: 0.8rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.8rem;
        line-height: 1.2;
        text-align: center;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        max-width: 260px;
    }

    .section-header h2 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .ai-capabilities {
        padding: 2.5rem 0;
    }

    .ai-cards-container {
        height: auto;
        min-height: 240px;
        margin: 1rem 0;
    }

    .ai-card {
        padding: 1.3rem 1rem;
        height: auto;
        min-height: 220px;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .ai-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .ai-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }

    .ai-card-icon {
        margin-bottom: 1.2rem;
    }

    .ai-card-icon svg {
        width: 45px;
        height: 45px;
    }

    .progress-bar {
        width: 180px;
        height: 3px;
    }

    .card-indicators {
        gap: 0.7rem;
    }

    .indicator {
        width: 9px;
        height: 9px;
    }

    .ai-progress {
        gap: 1.2rem;
    }

    .achievement-badge {
        padding: 1.2rem;
        min-width: 140px;
    }

    .achievement-badge h3 {
        font-size: 2rem;
    }

    .achievement-badge p {
        font-size: 0.8rem;
    }

    .achievement-text h4 {
        font-size: 1.3rem;
    }

    .achievement-text p {
        font-size: 0.9rem;
    }

    .cert-item {
        padding: 1rem;
    }

    .cert-item h5 {
        font-size: 1rem;
    }

    .cert-item p {
        font-size: 0.85rem;
    }

    .about-text h2 {
        font-size: 1.7rem;
    }

    .about-text p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .expertise-areas h3 {
        font-size: 1.3rem;
    }

    .methodology h3 {
        font-size: 1.3rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    .method-step {
        padding: 1rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-logo {
        margin: 0.8rem 0 1.2rem;
    }

    .hero-logo-image {
        height: 60px;
        animation-duration: 7s;
        filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
    }

    .hero-logo:hover::before {
        width: 80px;
    }

    .hero-logo:hover::after {
        width: 60px;
        height: 60px;
    }

    .hero-logo:active::before {
        width: 150px;
        height: 4px;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 240px;
        padding: 0.8rem 1.2rem;
    }

    .service-card {
        padding: 1.2rem 0.8rem;
    }

    .achievement-badge {
        min-width: 120px;
        padding: 1rem;
    }

    .ai-capabilities {
        padding: 2rem 0;
    }

    .ai-cards-container {
        height: auto;
        min-height: 200px;
        margin: 0.8rem 0;
    }

    .ai-card {
        padding: 1rem 0.8rem;
        height: auto;
        min-height: 180px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .ai-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .ai-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 0.5rem;
        margin-bottom: 0;
    }

    .ai-card-icon {
        margin-bottom: 1rem;
    }

    .ai-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .progress-bar {
        width: 150px;
        height: 2px;
    }

    .card-indicators {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }

    /* Make indicators more touch-friendly on very small screens */
    .indicator::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        background: transparent;
    }

    .indicator {
        position: relative;
    }

    .ai-progress {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    /* Remove extra spacing on very small screens */
    .ai-capabilities .section-header {
        margin-bottom: 2rem;
    }

    .ai-capabilities {
        padding-bottom: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen shake effect for meteor impact */
@keyframes screenShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px) translateY(-1px);
    }

    20% {
        transform: translateX(2px) translateY(1px);
    }

    30% {
        transform: translateX(-1px) translateY(-2px);
    }

    40% {
        transform: translateX(1px) translateY(2px);
    }

    50% {
        transform: translateX(-2px) translateY(1px);
    }

    60% {
        transform: translateX(2px) translateY(-1px);
    }

    70% {
        transform: translateX(-1px) translateY(2px);
    }

    80% {
        transform: translateX(1px) translateY(-2px);
    }

    90% {
        transform: translateX(-2px) translateY(-1px);
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.achievement-highlight,
.cert-item,
.method-step {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
}