@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #0ea5e9;
    --color-primary-light: #38bdf8;
    --color-primary-dark: #0284c7;
    --color-dark-bg: #0a0a1a;
    --color-dark-bg-2: #0f172a;
    --color-light-bg: #ffffff;
    --color-light-bg-2: #f8fafc;
    --color-text-dark: #1e293b;
    --color-text-light: #e2e8f0;
    --color-text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.cta-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cta-btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.2);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-bg-2) 50%, #0c1220 100%);
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    bottom: -50px;
    left: -50px;
    animation-delay: 3s;
}

@keyframes pulseGlow {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.1); }
}

.floating-element {
    position: absolute;
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.stats-bar {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ── Section Common ── */
.section-dark {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-bg-2) 100%);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.section-light {
    background: var(--color-light-bg);
    color: var(--color-text-dark);
}

.section-light-alt {
    background: var(--color-light-bg-2);
    color: var(--color-text-dark);
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Service Cards ── */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Why WSP / Feature Cards ── */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.03));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Process Timeline ── */
.process-step {
    text-align: center;
    position: relative;
    flex: 1;
}

.process-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 2;
}

.process-line {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(14, 165, 233, 0.2));
    z-index: 1;
}

.process-step:last-child .process-line {
    display: none;
}

.process-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ── WSP Labs ── */
.labs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.labs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.labs-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-4px);
}

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

.labs-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
}

.labs-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    position: relative;
}

.labs-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary-light);
    position: relative;
}

/* ── Portfolio Cards ── */
.portfolio-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 200px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    overflow: hidden;
    position: relative;
}

.portfolio-img svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-img svg {
    opacity: 1;
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(14, 165, 233, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.portfolio-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ── Industry Grid ── */
.industry-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: rgba(14, 165, 233, 0.05);
}

.industry-item svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    margin: 0 auto 0.75rem;
    display: block;
}

.industry-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

/* ── Contact Section ── */
.contact-section .glow-accent {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--color-primary);
    filter: blur(120px);
    opacity: 0.06;
}

/* ── Footer ── */
.footer {
    background: #050510;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--color-primary-light);
}

/* ── Success Message Toast ── */
.toast-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #10b981;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 3.5s forwards;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* ── Select dropdown fix for dark bg ── */
select option {
    background: #1e293b;
    color: #e2e8f0;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.5);
}

/* ── Selection color ── */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 120px;
    }

    .process-line {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .navbar {
        padding: 0.75rem 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
