:root {
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #0f172a;
    --text-muted: #64748b;
    --accent-primary: #0ea5e9;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #f43f5e;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --header-height: 90px;
    --top-bar-height: 44px;
    --section-padding: 140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

p {
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.grad-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 12px 24px -6px rgba(14, 165, 233, 0.3);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px -8px rgba(14, 165, 233, 0.4);
    filter: brightness(1.1);
}

/* Top Bar */
.top-bar {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 32px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar a:hover {
    color: #fff;
}

/* Navbar */
header {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    top: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f172a, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    flex-shrink: 0;
    /* Prevent logo from shrinking */
    margin-right: 40px;
    /* Space between logo and links */
}

.nav-links {
    display: flex;
    gap: 32px;
    position: relative;
    z-index: 5;
    margin-right: auto;
    /* Push the actions to the right */
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    padding: 10px 0;
    opacity: 0.8;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    /* Prevent actions from shrinking */
}

.desktop-only {
    display: inline-flex;
}

@media (max-width: 1100px) {
    .desktop-only {
        display: none;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + var(--top-bar-height));
    background: #fff;
    overflow: hidden;
}

/* Movable background elements */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    z-index: 0;
    animation: move-bg 20s infinite alternate ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: move-bg 15s infinite alternate-reverse ease-in-out;
}

@keyframes move-bg {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(150px, 100px) scale(1.15) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 32px;
    line-height: 1.05;
    letter-spacing: -3px;
    animation: float-text 4s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

.hero h1:hover {
    transform: scale(1.02) skewX(-1deg);
}

@keyframes float-text {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 56px;
    max-width: 700px;
    line-height: 1.6;
}

/* Sections General */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    font-size: 3.8rem;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 100px;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 72px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.3);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
}

/* Footer */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.65);
    padding: 120px 0 60px;
    text-align: center;
}

footer h2 {
    margin-bottom: 40px;
    color: #fff;
    font-size: 3rem;
    letter-spacing: -1px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 80px;
    font-size: 2.2rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-8px) scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 1100px) {
    .top-bar {
        display: none;
    }

    header {
        top: 0;
        height: 80px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: var(--text-color);
        border-radius: 2px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Start from top to allow scrolling */
        padding: 60px 0;
        /* Add top padding */
        gap: 32px;
        /* Reduced gap */
        transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        /* Enable vertical internal scrolling */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.6rem;
        /* Slightly smaller font */
        color: var(--text-color);
        opacity: 1;
        padding: 10px 0;
        /* Vertical padding instead of huge gaps */
        line-height: 1.2;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .nav-actions .btn {
        display: none;
    }

    /* Hide button on very small screens to save space */
}

/* Animations */
.floating-element {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}