/* Base Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Palette */
:root {
    --cyan-primary: #00CED1;
    --cyan-light: #E0F7F8;
    --yellow-accent: #FFD700;
    --cream-bg: #FFF9E5;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-50: #F9FAFB;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--cyan-light) 0%, #FFFFFF 50%, var(--cream-bg) 100%);
    position: relative;
}

/* Yellow Crescent Decoration */
.yellow-crescent {
    position: absolute;
    top: 50%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--yellow-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

/* Yellow Pill Button */
.yellow-pill-button {
    background-color: var(--yellow-accent);
    color: var(--gray-900);
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.yellow-pill-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.yellow-pill-button-small {
    background-color: var(--yellow-accent);
    color: var(--gray-900);
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.yellow-pill-button-small:hover {
    background-color: #FFC700;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Value Card */
.value-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.value-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.value-card.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--yellow-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

/* Solution Cards */
.solution-card {
    border-radius: 32px;
    padding: 48px 40px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.solution-card.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.cream-bg {
    background-color: var(--cream-bg);
}

.cyan-bg {
    background-color: var(--cyan-light);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Cyan Section */
.cyan-section {
    background: linear-gradient(180deg, var(--cyan-light) 0%, #FFFFFF 100%);
}

/* Cream Section */
.cream-section {
    background-color: var(--cream-bg);
}

/* Flip Cards */
.flip-card {
    perspective: 1000px;
    height: 500px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.flip-card-front {
    position: relative;
}

.flip-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.team-card.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.team-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.team-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: var(--cream-bg);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--cyan-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cyan-icon {
    background-color: var(--cyan-light);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 20px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    width: 90%;
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Custom Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00B8BA;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .cookie-popup,
    header,
    footer {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-popup {
        width: 95%;
        padding: 15px;
    }
    
    .cookie-card {
        padding: 24px;
    }
    
    .yellow-crescent {
        display: none;
    }
    
    .flip-card {
        height: auto;
        min-height: 400px;
    }
    
    .value-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .value-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }
    
    .solution-card {
        padding: 32px 24px;
    }
    
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .yellow-pill-button {
        padding: 14px 24px;
        font-size: 0.8125rem;
    }
    
    .team-image-wrapper {
        height: 280px;
    }
}
