/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 204, 255, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 0 20px rgba(102, 204, 255, 0.5);
    animation: titleAnimation 3s ease-in-out infinite;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    animation: subtitleGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.hero-subtitle::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: cursorBlink 1s infinite;
    color: var(--water-cyan);
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.hero-buttons::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    animation: buttonWave 3s ease-in-out infinite;
}

@keyframes buttonWave {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

/* Water Molecule Animation */
.water-molecule {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    animation: moleculeFloat 8s ease-in-out infinite;
    position: relative;
}

.water-molecule::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 204, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: moleculeGlow 4s ease-in-out infinite;
}

.water-molecule:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes moleculeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes moleculeGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.molecule-container {
    position: relative;
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.oxygen-atom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
}

.hydrogen-atom {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--light-blue);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

.hydrogen-1 {
    top: 20%;
    left: 20%;
    animation: orbit1 8s ease-in-out infinite;
}

.hydrogen-2 {
    top: 20%;
    right: 20%;
    animation: orbit2 8s ease-in-out infinite;
}

.bond {
    position: absolute;
    background: var(--primary-blue);
    height: 3px;
    border-radius: 2px;
    transform-origin: left center;
}

.bond-1 {
    top: 50%;
    left: 50%;
    width: 80px;
    transform: translateY(-50%) rotate(-45deg);
    animation: bond1 8s ease-in-out infinite;
}

.bond-2 {
    top: 50%;
    left: 50%;
    width: 80px;
    transform: translateY(-50%) rotate(45deg);
    animation: bond2 8s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes orbit2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

@keyframes bond1 {
    0%, 100% { transform: translateY(-50%) rotate(-45deg); }
    50% { transform: translateY(-50%) rotate(-35deg); }
}

@keyframes bond2 {
    0%, 100% { transform: translateY(-50%) rotate(45deg); }
    50% { transform: translateY(-50%) rotate(35deg); }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(102, 204, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--water-cyan);
    text-shadow: 0 0 20px rgba(102, 204, 255, 0.5);
    margin-bottom: 0.5rem;
    animation: numberGlow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.stat-number.animating {
    animation: numberCount 2s ease-out, numberGlow 2s ease-in-out infinite alternate;
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(102, 204, 255, 0.8);
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 1);
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 0 20px rgba(102, 204, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(102, 204, 255, 0.8), 0 0 40px rgba(102, 204, 255, 0.4);
    }
}

@keyframes numberCount {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::after {
    left: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Liquid Card - Water Effect */
.feature-card.liquid {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1), rgba(0, 200, 255, 0.05));
    border: 2px solid rgba(0, 150, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card.liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.2), transparent);
    animation: waterFlow 3s ease-in-out infinite;
    z-index: 1;
}

.feature-card.liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.3), transparent);
    animation: waterRipple 4s ease-in-out infinite;
    z-index: 1;
}

.feature-card.liquid .water-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.feature-card.liquid .water-bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 150, 255, 0.4);
    border-radius: 50%;
    animation: bubbleRise 6s ease-in-out infinite;
}

.feature-card.liquid .water-bubble:nth-child(1) { left: 10%; animation-delay: 0s; }
.feature-card.liquid .water-bubble:nth-child(2) { left: 30%; animation-delay: 2s; }
.feature-card.liquid .water-bubble:nth-child(3) { left: 70%; animation-delay: 4s; }

.feature-card.liquid .feature-icon {
    color: var(--water-cyan);
    animation: waterDrop 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}

.feature-card.liquid h3 {
    color: var(--water-cyan);
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
}

/* Solid Card - Ice Effect */
.feature-card.solid {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.1), rgba(240, 248, 255, 0.05));
    border: 2px solid rgba(173, 216, 230, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-card.solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(173, 216, 230, 0.2), transparent);
    animation: iceCrystal 5s ease-in-out infinite;
    z-index: 1;
}

.feature-card.solid::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 248, 255, 0.3), transparent);
    animation: iceShimmer 6s ease-in-out infinite;
    z-index: 1;
}

.feature-card.solid .ice-crystals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.feature-card.solid .ice-crystal {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(173, 216, 230, 0.6);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalSparkle 8s ease-in-out infinite;
}

.feature-card.solid .ice-crystal:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.feature-card.solid .ice-crystal:nth-child(2) { left: 60%; top: 40%; animation-delay: 3s; }
.feature-card.solid .ice-crystal:nth-child(3) { left: 85%; top: 60%; animation-delay: 6s; }

.feature-card.solid .feature-icon {
    color: var(--ice-blue);
    animation: iceGlow 3s ease-in-out infinite;
    text-shadow: 0 0 25px rgba(173, 216, 230, 0.7);
}

.feature-card.solid h3 {
    color: var(--ice-blue);
    text-shadow: 0 0 15px rgba(173, 216, 230, 0.5);
}

/* Gas Card - Air Effect */
.feature-card.gas {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(240, 240, 240, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card.gas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: airFlow 4s ease-in-out infinite;
    z-index: 1;
}

.feature-card.gas::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 240, 240, 0.3), transparent);
    animation: airDrift 5s ease-in-out infinite;
    z-index: 1;
}

.feature-card.gas .air-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.feature-card.gas .air-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.feature-card.gas .air-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.feature-card.gas .air-particle:nth-child(2) { left: 50%; animation-delay: 3s; }
.feature-card.gas .air-particle:nth-child(3) { left: 80%; animation-delay: 6s; }

.feature-card.gas .feature-icon {
    color: var(--steam-gray);
    animation: airFloat 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.feature-card.gas h3 {
    color: var(--steam-gray);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--water-cyan);
    text-shadow: 0 0 10px rgba(102, 204, 255, 0.3);
    position: relative;
    z-index: 3;
}

.feature-card p {
    position: relative;
    z-index: 3;
}

.feature-card .feature-icon {
    position: relative;
    z-index: 3;
}

/* Keyframes */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes titleAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
        color: var(--white);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        color: var(--water-cyan);
    }
}

@keyframes subtitleGlow {
    0% {
        text-shadow: 0 0 10px rgba(102, 204, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(102, 204, 255, 0.6);
    }
}

@keyframes waterFlow {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
}

@keyframes waterRipple {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    25% {
        left: 25%;
        opacity: 0.5;
    }
    75% {
        left: 75%;
        opacity: 0.5;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes waterDrop {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.8));
    }
}

@keyframes iceCrystal {
    0%, 100% {
        left: -100%;
        opacity: 0;
        transform: rotate(0deg);
    }
    50% {
        left: 100%;
        opacity: 1;
        transform: rotate(180deg);
    }
}

@keyframes iceShimmer {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    25% {
        left: 25%;
        opacity: 0.3;
    }
    75% {
        left: 75%;
        opacity: 0.3;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes iceGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(173, 216, 230, 0.7));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(173, 216, 230, 0.9));
    }
}

@keyframes airFlow {
    0%, 100% {
        left: -100%;
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        left: 100%;
        opacity: 0.3;
        transform: translateY(-10px);
    }
}

@keyframes airDrift {
    0%, 100% {
        left: -100%;
        opacity: 0;
        transform: translateY(0);
    }
    25% {
        left: 25%;
        opacity: 0.2;
        transform: translateY(-5px);
    }
    75% {
        left: 75%;
        opacity: 0.2;
        transform: translateY(5px);
    }
    100% {
        left: 100%;
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes airFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

@keyframes bubbleRise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes crystalSparkle {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1.2);
    }
}

@keyframes particleFloat {
    0% {
        top: 100%;
        opacity: 0;
        transform: translateX(0);
    }
    25% {
        opacity: 1;
        transform: translateX(10px);
    }
    75% {
        opacity: 1;
        transform: translateX(-10px);
    }
    100% {
        top: -10px;
        opacity: 0;
        transform: translateX(0);
    }
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--water-cyan);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: var(--white);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(102, 204, 255, 0.2);
    color: var(--water-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(102, 204, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(102, 204, 255, 0.3);
    transform: scale(1.05);
}

/* Join Our Team Section */
.team-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(102, 204, 255, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.team-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.team-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.team-cta-icon {
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

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

.team-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #66ccff 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-cta-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.team-cta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.team-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
}

.team-stat-item:hover {
    background: rgba(255, 165, 0, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.2);
}

.team-stat-item i {
    font-size: 1.5rem;
    color: #ffa500;
}

.team-stat-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* ===== RESPONSIVE STYLES ===== */

/* Desktop Styles - Keep Services in Same Line */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
    }
}

/* Large Desktop - 4 columns */
@media (min-width: 1025px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services Section Tablet - Keep 3 columns if space allows, otherwise 2 */
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }

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

    .service-icon {
        font-size: 3rem !important;
    }

    .service-card h3 {
        font-size: 1.4rem !important;
    }

    .service-card p {
        font-size: 1rem !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .water-molecule {
        display: none;
    }

    /* Services Section Mobile */
    .services {
        padding: 2rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .service-card {
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .service-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    .service-card p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.6 !important;
    }

    .service-tech {
        gap: 0.4rem !important;
        justify-content: center !important;
    }

    .tech-tag {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.7rem !important;
    }

    /* Project Preview Cards Mobile Fix */
    .latest-projects {
        padding: 2rem 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .projects-preview {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .project-preview-card {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .project-preview-image {
        height: 150px;
        font-size: 2.5rem;
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }

    .project-preview-image i {
        font-size: 2.5rem;
        max-width: 100%;
    }

    .project-preview-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-preview-tech {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
}

/* Medium Mobile Styles (Large Phones) */
@media (min-width: 481px) and (max-width: 600px) {
    /* Services Section Medium Mobile */
    .services {
        padding: 1.75rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .service-card {
        padding: 1.75rem 1.25rem !important;
    }

    .service-icon {
        font-size: 2.25rem !important;
    }

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

    .service-card p {
        font-size: 0.9rem !important;
    }

    .tech-tag {
        font-size: 0.78rem !important;
        padding: 0.32rem 0.65rem !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Services Section Small Mobile */
    .services {
        padding: 1.5rem 0 !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .service-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-icon {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }

    .service-tech {
        gap: 0.3rem !important;
    }

    .tech-tag {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    .latest-projects {
        padding: 1.5rem 0;
        overflow-x: hidden;
    }

    .projects-preview {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .project-preview-image {
        height: 120px;
        font-size: 2rem;
        width: 100%;
    }

    .project-preview-image i {
        font-size: 2rem;
    }

    .project-preview-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-preview-content h3 {
        font-size: 1.2rem;
    }

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

    .project-preview-tech {
        gap: 0.4rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile Styles (Very Small Devices) */
@media (max-width: 375px) {
    /* Services Section Extra Small Mobile */
    .services {
        padding: 1.25rem 0 !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
        margin-top: 1.25rem !important;
    }

    .service-card {
        padding: 1.25rem 0.875rem !important;
    }

    .service-icon {
        font-size: 1.875rem !important;
        margin-bottom: 0.625rem !important;
    }

    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0.625rem !important;
        line-height: 1.4 !important;
    }

    .service-tech {
        gap: 0.25rem !important;
    }

    .tech-tag {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Section Subtitle Styles */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Skills Overview Section Responsive Styles */
@media (max-width: 1024px) {
    .skills-overview {
        padding: 3.5rem 0;
    }
    
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.75rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 768px) {
    .team-cta-section {
        padding: 3rem 0;
    }
    
    .team-cta-icon {
        font-size: 3rem;
    }
    
    .team-cta-title {
        font-size: 2rem;
    }
    
    .team-cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .team-cta-stats {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .team-stat-item {
        padding: 0.875rem 1.25rem;
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 120px;
    }
    
    .team-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .skills-overview {
        padding: 3rem 0;
    }
    
    .skills-overview .container {
        padding: 0 1rem;
    }
    
    .skills-overview .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .skill-category h3 i {
        font-size: 1rem;
    }
    
    .skill-tags {
        gap: 0.45rem;
    }
    
    .skill-tag {
        padding: 0.45rem 0.875rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .skills-overview {
        padding: 2.5rem 0;
    }
    
    .skills-overview .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .skills-categories {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .skill-category {
        padding: 1.25rem;
    }
    
    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .skill-category h3 i {
        font-size: 0.95rem;
    }
    
    .skill-tags {
        gap: 0.4rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .skills-overview .section-title {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .skill-category h3 {
        font-size: 0.95rem;
    }
    
    .skill-tag {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
}

/* Contact CTA Section Responsive */
@media (max-width: 1024px) {
    .contact-cta {
        padding: 3.5rem 0;
    }
    
    .contact-cta .cta-content h2 {
        font-size: 2.25rem;
    }
    
    .contact-cta .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-cta {
        padding: 3rem 0;
    }
    
    .contact-cta .container {
        padding: 0 1rem;
    }
    
    .contact-cta .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }
    
    .contact-cta .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.875rem;
        padding: 0 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-cta {
        padding: 2.5rem 0;
    }
    
    .contact-cta .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .contact-cta .cta-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .contact-cta .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-cta .cta-content p {
        font-size: 0.9rem;
    }
}

/* ===== CRITICAL RESPONSIVE FIXES - Prevent Crashes ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .hero-content,
    .hero-text,
    .hero-buttons,
    .stats-grid,
    .features-grid,
    .services-grid,
    .projects-preview {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure all cards don't overflow */
    .feature-card,
    .service-card,
    .stat-item,
    .project-preview-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Fix grid layouts */
    .hero-content {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Additional mobile fixes */
    .hero,
    .stats-section,
    .features,
    .services,
    .latest-projects {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

