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

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #0080ff;
    --primary-glow: rgba(0, 128, 255, 0.3);
    --accent: #FFD700;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --glass-blur: blur(12px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    background: radial-gradient(circle at 50% 0%, #0d121d 0%, #0a0c10 100%);
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    /* Restored default padding */
}

/* Hero Buttons */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px !important;
    /* Force button padding */
    text-decoration: none;
    font-weight: 700;
    border-radius: 24px;
    transition: var(--transition);
}

.hero-btn-outline {
    color: #fff;
}

.hero-btn-primary {
    color: var(--bg-dark);
    background: var(--primary);
}

.hero-btn-primary:hover {
    background: #339cff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px !important;
    /* Ensure navbar padding is preserved */
    transition: var(--transition);
}

.nav-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 5%;
}

.specialist-badge {
    margin-bottom: 0;
}

.specialist-badge span {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

#nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.hero-img {
    position: relative;
}

.hero-img img {
    width: 100%;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.bento-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.large {
    grid-column: span 2;
    grid-row: span 2;
}

.tall {
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
}

/* Cases Cards */
.cases-section {
    padding: 80px 0;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    text-align: left;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.team-member {
    text-align: center;
    padding: 40px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
}

.software-section {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 8px 16px !important;
    }

    .glass:not(.hero-btn):not(.hero-btn-outline):not(.hero-btn-primary):not(.nav-container) {
        padding: 24px !important;
        border-radius: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    body {
        background: radial-gradient(circle at 50% 0%, #0a0c10 0%, #050608 100%);
    }

    .section-container {
        padding: 0 15px;
    }

    .hero {
        min-height: 100vh !important;
        height: 100vh !important;
        padding-top: 85px !important;
        padding-bottom: 20px !important;
        display: flex;
        align-items: flex-start !important;
        justify-content: center;
    }

    .specialist-badge {
        margin-bottom: 0;
    }

    .specialist-badge span {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 0 !important;
        align-content: start;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        margin: 40px auto;
    }

    .large,
    .tall,
    .wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .nav-links {
        display: none;
    }

    .software-section {
        grid-template-columns: 1fr;
        margin: 0 auto 60px auto;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cases-grid {
        gap: 20px;
    }

    footer {
        margin: 0 15px 40px 15px !important;
        padding: 40px 20px !important;
    }
}

.logo-box {
    display: inline-flex;
    align-items: center;
}

.logo img, .footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}