/* Font Setup */
@font-face {
    font-family: 'Geist Mono';
    src: url('https://unpkg.com/geist-font/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Base Styles */
:root {
    --primary-color: rgb(34, 87, 275);
    --primary-dark: rgb(24, 67, 235);
    --primary-light: rgb(50, 107, 285);
    --bg-dark: #0A0D14;
    --bg-black: #000000;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --border-color: #1F2937;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    background-color: var(--bg-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.font-roboto-mono {
    font-family: 'Roboto Mono', monospace;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 87, 275, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(34, 87, 275, 0.1);
    transform: translateY(-2px);
}

.btn-primary-lg {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-lg:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 87, 275, 0.3);
}

/* Hero background */
.hero-bg {
    background: radial-gradient(circle at 50% 50%, rgba(34, 87, 275, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(34, 87, 275, 0.1) 2px, transparent 2px),
        radial-gradient(rgba(34, 87, 275, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 25px 25px;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Abstract background */
.abstract-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(34, 87, 275, 0.3)' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 769 229 520 660 231 325 520 660'/%3E%3Cpath d='M520 660L231 325 41 599 520 660'/%3E%3Cpath d='M520 660L530 530 840 599'/%3E%3C/g%3E%3C/svg%3E");
}

/* Wave animation */
.wave-animation {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 C300,200 600,50 900,100 C1200,150 1440,100 1440,100 V600 H0 V100Z' fill='rgb(34,87,275)' opacity='0.2'%3E%3C/path%3E%3Cpath d='M0,150 C300,250 600,100 900,150 C1200,200 1440,150 1440,150 V600 H0 V150Z' fill='rgb(34,87,275)' opacity='0.1'%3E%3C/path%3E%3Cpath d='M0,200 C300,300 600,150 900,200 C1200,250 1440,200 1440,200 V600 H0 V200Z' fill='rgb(34,87,275)' opacity='0.05'%3E%3C/path%3E%3C/svg%3E");
}

/* Solution Cards */
.solution-card {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(34, 87, 275, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(34, 87, 275, 0.1);
}

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

.solution-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(34, 87, 275, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.solution-card:hover .solution-icon {
    background-color: var(--primary-color);
}

.solution-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.solution-link svg {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.solution-link:hover {
    color: var(--primary-light);
}

.solution-link:hover svg {
    transform: translateX(3px);
}

/* Metrics Cards */
.metric-card {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Client Logo Grid */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.client-logo {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.7;
}

.client-logo:hover {
    color: white;
    border-color: var(--primary-color);
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Process Flow */
.process-flow {
    position: relative;
    padding: 2rem 0;
}

.process-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(34, 87, 275, 0.3), rgba(34, 87, 275, 0.7), rgba(34, 87, 275, 0.3));
    transform: translateY(-50%);
    z-index: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 18%;
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 1rem;
    z-index: 1;
    position: relative;
    border: 1px solid #1F2937;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.process-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    opacity: 0.5;
}

.process-mobile-step {
    display: flex;
    gap: 1rem;
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.process-mobile-step:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(10, 15, 25, 0.8);
    border: 1px solid #2D3748;
    border-radius: 0.375rem;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(34, 87, 275, 0.25);
}

.form-input::placeholder {
    color: #4A5568;
}

/* Animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .process-line {
        display: none;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-step {
        width: 100%;
    }
    
    .client-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

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

::-webkit-scrollbar-track {
    background: #0B0F19;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

/* About Page Specific Styles */
.team-card {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
}

.tech-item {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(34, 87, 275, 0.05);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background-color: rgba(34, 87, 275, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.tech-item:hover .tech-icon {
    background-color: var(--primary-color);
    color: white;
}

/* Solutions Page Specific Styles */
.solution-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.solution-tab {
    padding: 0.5rem 1rem;
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-tab:hover {
    border-color: var(--primary-color);
}

.solution-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.case-study-card {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-logo {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(34, 87, 275, 0.1);
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Resources Page Specific Styles */
.resource-card {
    background-color: rgba(15, 20, 35, 0.5);
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.resource-btn {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    color: var(--primary-light);
    text-decoration: underline;
}
