/* Enhanced Services Section */
#services.services {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(248, 249, 250, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

#services.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(26, 29, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(44, 62, 80, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(90, 122, 154, 0.01) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    animation: backgroundFloat 25s ease-in-out infinite;
}

#services.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="%23e2e8f0" stroke-width="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

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

#services.services .section-header {
    margin-bottom: 3.5rem;
}

#services.services .section-title {
    position: relative;
    margin-bottom: 1rem;
}

#services.services .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideInScale 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(25px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(26, 29, 41, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.02) 0%, rgba(44, 62, 80, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(26, 29, 41, 0.12), 0 0 80px rgba(90, 122, 154, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(90, 122, 154, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.service-card:hover .service-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.1) rotate(5deg) translateY(-3px);
    }
    50% {
        transform: scale(1.15) rotate(5deg) translateY(-5px);
    }
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--charcoal-blue) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    will-change: transform;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

/* Individual service icon color accents */
.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(243, 156, 18, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(243, 156, 18, 0.2);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(46, 204, 113, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(46, 204, 113, 0.2);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(231, 76, 60, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(231, 76, 60, 0.2);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(155, 89, 182, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(155, 89, 182, 0.2);
}

.service-card:nth-child(5) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(26, 188, 156, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(26, 188, 156, 0.2);
}

.service-card:nth-child(6) .service-icon {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, rgba(52, 152, 219, 0.8) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(52, 152, 219, 0.2);
}

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

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
    transition: all var(--transition-normal);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg) translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.service-card:hover .service-icon::after {
    width: 120px;
    height: 120px;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.service-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--eerie-black);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition-normal);
    letter-spacing: -0.02em;
}

.service-card:hover h3 {
    color: var(--midnight-blue);
}

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

.service-card ul {
    list-style: none;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(26, 29, 41, 0.08);
}

.service-card li {
    color: var(--outer-space);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    text-align: left;
    line-height: 1.5;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card li::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: white;
    font-weight: bold;
    z-index: 1;
}

.service-card:hover li {
    color: var(--eerie-black);
    transform: translateX(3px);
}

.service-card:hover li::before {
    background: linear-gradient(135deg, var(--prussian-blue) 0%, var(--accent-blue) 100%);
    transform: translateY(-50%) scale(1.05);
}

/* Why Choose Us Section */
.why-choose-us {
    background: linear-gradient(135deg, var(--seasalt) 0%, white 50%, var(--seasalt) 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23212529" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    pointer-events: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background: linear-gradient(145deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(33, 37, 41, 0.08), 0 1px 3px rgba(33, 37, 41, 0.05);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.02) 0%, transparent 50%, rgba(33, 37, 41, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--french-gray);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(33, 37, 41, 0.15), 0 5px 15px rgba(33, 37, 41, 0.1), 0 0 30px rgba(108, 117, 125, 0.08);
    filter: brightness(1.02);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--midnight-blue), var(--prussian-blue), var(--dark-slate-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--steel-blue), var(--accent-blue), var(--muted-teal), var(--steel-blue));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 30px rgba(33, 37, 41, 0.3);
}

.benefit-card:hover .benefit-icon::before {
    opacity: 1;
}

.benefit-card:hover .benefit-icon::after {
    opacity: 1;
}

.benefit-card:hover .benefit-icon i {
    transform: scale(1.1);
    color: var(--seasalt);
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--eerie-black);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--slate-gray);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--antiflash-white) 50%, var(--seasalt) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(44, 62, 80, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(26, 29, 41, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(90, 122, 154, 0.02) 1px, transparent 1px);
    background-size: 60px 60px, 90px 90px, 70px 70px;
    animation: backgroundFloat 25s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.about-text {
    position: relative;
    padding: 2rem;
    background: linear-gradient(145deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    border-radius: 20px;
    border: 1px solid var(--platinum);
    box-shadow: 0 8px 25px rgba(33, 37, 41, 0.08), 0 2px 8px rgba(33, 37, 41, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--midnight-blue), var(--prussian-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.about-text:hover::before {
    transform: scaleX(1);
}

.about-text:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(33, 37, 41, 0.12), 0 8px 20px rgba(33, 37, 41, 0.08);
    border-color: var(--accent-blue);
}

.about-text h3 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--dark-slate-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-blue), var(--steel-blue));
    border-radius: 2px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.about-text:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--outer-space);
    margin-bottom: 1.8rem;
    font-weight: 400;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text:hover p {
    opacity: 1;
    color: var(--eerie-black);
}

.about-text p::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -5px;
    font-size: 3rem;
    color: var(--platinum);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.about-text p:first-of-type::before {
    opacity: 0.5;
    color: var(--accent-blue);
}

.about-text p:last-of-type::after {
    content: '"';
    position: absolute;
    right: -15px;
    bottom: -10px;
    font-size: 3rem;
    color: var(--platinum);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--steel-blue) 100%);
    animation: floatShape 6s ease-in-out infinite;
}

.about-shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.about-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    border-radius: 20%;
}

.about-shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
    border-radius: 0;
    transform: rotate(45deg);
}

.code-snippet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--dark-slate-blue) 0%, var(--charcoal-blue) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--prussian-blue);
}

.code-snippet .code-line {
    width: 150px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--steel-blue) 100%);
    margin: 8px 0;
    border-radius: 4px;
    animation: codeGlow 2s ease-in-out infinite alternate;
}

.code-snippet .code-line:nth-child(2) {
    width: 120px;
    animation-delay: 0.5s;
}

.code-snippet .code-line:nth-child(3) {
    width: 100px;
    animation-delay: 1s;
}

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

.value-card {
    background: linear-gradient(145deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--platinum);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--steel-blue), var(--accent-blue), var(--muted-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--charcoal-blue), 0 5px 15px rgba(33, 37, 41, 0.1);
    border-color: var(--accent-blue);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--midnight-blue), var(--prussian-blue), var(--dark-slate-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(360deg);
    background: linear-gradient(135deg, var(--steel-blue), var(--accent-blue), var(--muted-teal));
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--midnight-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--outer-space);
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--dark-slate-blue) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    pointer-events: none;
}

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.2rem;
    display: inline;
}

.stat-label {
    font-size: 1rem;
    color: var(--platinum);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-team {
    text-align: center;
}

.about-team h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--dark-slate-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-team > p {
    font-size: 1.1rem;
    color: var(--outer-space);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    background: linear-gradient(145deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--platinum);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--dark-teal), var(--muted-teal), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--charcoal-blue), 0 5px 15px rgba(33, 37, 41, 0.1);
    border-color: var(--muted-teal);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dark-teal), var(--muted-teal), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.member-avatar i {
    font-size: 2rem;
    color: white;
}

.team-member:hover .member-avatar {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--steel-blue), var(--accent-blue), var(--soft-purple));
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--dark-teal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-member p {
    color: var(--outer-space);
    line-height: 1.6;
}

@keyframes codeGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes storyReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes quoteFade {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .about-text p::before {
        left: -15px;
        font-size: 2.5rem;
    }
    
    .about-text p:last-of-type::after {
        right: -10px;
        font-size: 2.5rem;
    }
    
    .about-visual {
        height: 300px;
    }
    
    .about-shape-1 {
        width: 80px;
        height: 80px;
    }
    
    .about-shape-2 {
        width: 60px;
        height: 60px;
    }
    
    .about-shape-3 {
        width: 40px;
        height: 40px;
    }
    
    .code-snippet {
        padding: 1.5rem;
    }
    
    .code-snippet .code-line {
        width: 100px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-text {
        padding: 1rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-text p::before,
    .about-text p:last-of-type::after {
        display: none;
    }
}



/* Brands Section */
.brands {
    background: linear-gradient(135deg, var(--antiflash-white) 0%, var(--seasalt) 50%, var(--antiflash-white) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(26, 29, 41, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(44, 62, 80, 0.02) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.brands .section-header {
    margin-bottom: 3rem;
}

.brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: brandScroll 35s linear infinite;
    width: fit-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-logo {
    flex-shrink: 0;
    width: 320px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(26, 29, 41, 0.1);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s ease;
}

/* Individual brand logo color accents */
.brand-logo:nth-child(1)::before {
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.1), transparent);
}

.brand-logo:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.1), transparent);
}

.brand-logo:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
}

.brand-logo:nth-child(4)::before {
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.1), transparent);
}

.brand-logo:nth-child(5)::before {
    background: linear-gradient(90deg, transparent, rgba(26, 188, 156, 0.1), transparent);
}

.brand-logo:nth-child(6)::before {
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
}

.brand-logo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(26, 29, 41, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.brand-logo:hover::before {
    left: 0;
}

.brand-logo img,
.brand-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transition: all var(--transition-normal);
    max-width: 240px;
    max-height: 100px;
}

.brand-logo:hover img,
.brand-logo:hover svg {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.05);
}

/* Responsive Design for Brands Section */
@media (max-width: 1024px) {
    .brand-logo {
        width: 280px;
        height: 120px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .brands {
        padding: 3rem 0;
    }
    
    .brands-track {
        gap: 2rem;
        animation-duration: 25s;
    }
    
    .brand-logo {
        width: 240px;
        height: 100px;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .brands-track {
        gap: 1.5rem;
        animation-duration: 20s;
    }
    
    .brand-logo {
        width: 200px;
        height: 85px;
        padding: 1rem;
    }
    
    .brands .section-header {
        margin-bottom: 2rem;
    }
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--antiflash-white) 50%, var(--seasalt) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(33, 37, 41, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(33, 37, 41, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonial-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-grid)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
    z-index: 1;
}

/* Geometric decorations for testimonials */
.testimonials-slider::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -100px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 8s ease-in-out infinite;
    z-index: -1;
}

.testimonials-slider::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -80px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    border-radius: 20%;
    opacity: 0.08;
    animation: floatShape 10s ease-in-out infinite reverse;
    z-index: -1;
}

.testimonials .container {
    position: relative;
}

.testimonials .container::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--eerie-black), var(--onyx));
    transform: rotate(45deg);
    opacity: 0.06;
    animation: floatShape 12s ease-in-out infinite;
}

.testimonials .container::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 3%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--onyx), var(--slate-gray));
    border-radius: 10px;
    opacity: 0.05;
    animation: floatShape 9s ease-in-out infinite reverse;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--antiflash-white) 50%, var(--seasalt) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(33, 37, 41, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--platinum);
}

.testimonial-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(33, 37, 41, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-slide::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(33, 37, 41, 0.01) 50%, transparent 70%);
    transform: rotate(-45deg);
    pointer-events: none;
}

.testimonial-slide.active {
    display: block;
    animation: testimonialSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-text {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-text p {
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
}

.testimonial-text p::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -20px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-text p::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: -15px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.02) 0%, transparent 50%, rgba(33, 37, 41, 0.02) 100%);
    border-radius: 15px;
    border: 1px solid var(--platinum);
    position: relative;
    z-index: 2;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    background: linear-gradient(135deg, var(--slate-gray) 0%, var(--outer-space) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 500;
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.testimonial-rating i {
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.testimonial-rating i:hover {
    transform: scale(1.2);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.testimonial-btn {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--antiflash-white) 50%, var(--seasalt) 100%);
    border-radius: 20px;
    color: var(--eerie-black);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(33, 37, 41, 0.15);
}

.testimonial-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    border-radius: 18px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--eerie-black), var(--onyx));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-btn i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(33, 37, 41, 0.25);
}

.testimonial-btn:hover::before {
    transform: scale(1);
}

.testimonial-btn:hover::after {
    opacity: 1;
}

.testimonial-btn:hover i {
    color: white;
    -webkit-text-fill-color: white;
    transform: scale(1.1);
}

/* Testimonials section title styling */


/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--eerie-black) 100%);
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.contact .section-header {
    margin-bottom: 2.5rem;
}

.contact .section-title {
    color: white;
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--platinum) 50%, var(--seasalt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .section-subtitle {
    color: var(--platinum);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.01) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.01) 50%, transparent 60%);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    animation: patternMove 20s linear infinite;
}

.contact .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact .floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    animation: floatShape 15s ease-in-out infinite;
}

.contact .floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.contact .floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 16s;
}

.contact .floating-shape:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: -8s;
    animation-duration: 14s;
    border-radius: 20%;
}

.contact .floating-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -2s;
    animation-duration: 18s;
    opacity: 0.5;
}

.contact .floating-shape:nth-child(5) {
    width: 30px;
    height: 30px;
    top: 50%;
    left: 5%;
    animation-delay: -6s;
    animation-duration: 10s;
    border-radius: 30%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: var(--seasalt);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(33, 37, 41, 0.08);
    border: 1px solid var(--platinum);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(33, 37, 41, 0.12);
}

.contact-info-header {
    margin-bottom: 1.5rem;
}

.contact-info-header h3 {
    font-size: 1.1rem;
    color: var(--eerie-black);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-info-header p {
    color: var(--slate-gray);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.form-header {
    margin-bottom: 1rem;
}

.form-header h3 {
    font-size: 1.1rem;
    color: var(--eerie-black);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.form-header p {
    color: var(--slate-gray);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.form-fields {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--antiflash-white);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid var(--platinum);
}

.contact-method:hover {
    background: var(--seasalt);
    border-color: var(--eerie-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.1);
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--eerie-black), var(--onyx));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-method:hover i {
    transform: scale(1.05);
}

.contact-method h4 {
    color: var(--eerie-black);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-method a,
.contact-method span {
    color: var(--slate-gray);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--eerie-black);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(26, 29, 41, 0.1);
    border-color: rgba(90, 122, 154, 0.3);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0.875rem;
    border: 2px solid var(--platinum);
    border-radius: var(--radius-lg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(90, 122, 154, 0.1), var(--shadow-lg);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-gray);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

/* Enhanced Form States */
.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(90, 122, 154, 0.1), var(--shadow-lg);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s ease-in-out;
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), var(--shadow-lg);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Success State */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.form-group input:valid:not(:placeholder-shown):focus,
.form-group textarea:valid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), var(--shadow-lg);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.contact-form .btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
    transition: left var(--transition-normal);
    z-index: 0;
}

.contact-form .btn span {
    position: relative;
    z-index: 1;
}

.contact-form .btn:hover::before {
    left: 0;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.contact-form .btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.contact-form .btn:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}