/* ===================================
   AdaptAI - Unified Styles
   Modern design system with consistency
   =================================== */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    padding-top: 60px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Header Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #0284c7;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

/* === Hamburger Menu === */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #334155;
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === Navigation Menu === */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-menu li a:hover {
    color: #0ea5e9;
}

.nav-menu li a.active {
    color: #0ea5e9;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    border-radius: 2px;
}

/* === Modern Bold Buttons === */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1.125rem 2.75rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 24px rgba(14, 165, 233, 0.3),
        0 2px 8px rgba(14, 165, 233, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    color: white !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(14, 165, 233, 0.4),
        0 8px 16px rgba(14, 165, 233, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-large {
    font-size: 1.375rem;
    padding: 1.5rem 3.5rem;
    border-radius: 16px;
}

/* === Bold Modern Cards === */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.08),
        0 8px 24px rgba(15, 23, 42, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 24px;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #38bdf8, #7dd3fc, #bae6fd, #7dd3fc, #38bdf8);
    background-size: 300% 300%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    animation: gradientRotate 3s ease infinite;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 32px 80px rgba(14, 165, 233, 0.2),
        0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

/* === Footer === */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid #334155;
}

footer p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* === Modern Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

p {
    color: #64748b;
    line-height: 1.7;
}

a {
    color: #0ea5e9;
    transition: color 0.2s ease;
}

a:hover {
    color: #0284c7;
}

/* === Utility Classes === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn-large {
        font-size: 1.125rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 400px;
    }
}

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

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}
