:root {
    --primary-color: #0da1d4;
    --secondary-color: #173548;
    --accent-green: #87b539;
    --accent-blue: #74cfec;
    --accent-red: #b00000;
    --success-green: #62ab6a;
    --background-color: #ffffff;
    --text-color: #173548;
    --gray-light: #f8fafc;
    --company-color: #183d52;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: 
        radial-gradient(circle at 0% 0%, rgba(116, 207, 236, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(13, 161, 212, 0.15) 0%, transparent 50%),
        linear-gradient(135deg,
            var(--background-color) 0%,
            rgba(13, 161, 212, 0.12) 60%,
            rgba(23, 53, 72, 0.1) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(23, 53, 72, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    padding: 5px 0;
}

.by-line {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.by-line .company {
    font-family: 'Audiowide', cursive;
    color: var(--accent-green);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
}

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

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-blue) 50%,
        transparent 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Experiments grid */
.experiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experiment-card {
    position: relative;
    cursor: pointer;
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(23, 53, 72, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(23, 53, 72, 0.1);
}

.experiment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(23, 53, 72, 0.12);
    border-color: var(--primary-color);
}

.experiment-card a {
    text-decoration: none;
    color: inherit;
}

.experiment-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(23, 53, 72, 0.1);
}

.experiment-card .content {
    padding: 1.75rem;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.experiment-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.experiment-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
    min-height: 4.8em;
    margin-bottom: auto;
}

/* Section headers update */
section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

#introduction {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 2rem;
}

#introduction p {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--gray-light);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    position: relative;
    padding: 0 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links a:first-child {
    padding-left: 0;
}

.footer-links a:last-child {
    padding-right: 0;
}

.footer-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -3px;
    color: var(--text-color);
    opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
    .footer-links a {
        color: var(--text-color-dark, var(--text-color));
    }

    .footer-links a:hover {
        color: var(--primary-color-dark, var(--primary-color));
    }

    .footer-links a:not(:last-child)::after {
        color: var(--text-color-dark, var(--text-color));
    }
}

.company {
    font-family: 'Audiowide', cursive;
    color: var(--company-color);
}

/* 404 Page Styles */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.back-home {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.back-home:hover {
    background-color: var(--secondary-color);
}

/* About page styles */
.about-aido4me .cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(23, 53, 72, 0.05), rgba(13, 161, 212, 0.08));
    border-radius: 8px;
    border: 1px solid rgba(13, 161, 212, 0.2);
}

.about-aido4me .cta a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
}

.about-aido4me .cta a:hover {
    opacity: 0.8;
}

.experiment-card.coming-soon {
    cursor: default;
}

.experiment-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(23, 53, 72, 0.08);
    border-color: rgba(23, 53, 72, 0.1);
}

.coming-soon-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    align-self: center;
}

.experiment-card .icon-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.experiment-card .icon-container i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(13, 161, 212, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.experiment-card:hover .icon-container i {
    transform: scale(1.1);
    background-color: rgba(13, 161, 212, 0.15);
}

.experiment-card.coming-soon .icon-container i {
    opacity: 0.8;
    border-color: rgba(13, 161, 212, 0.5);
}

.experiment-card.coming-soon:hover .icon-container i {
    transform: none;
    background-color: rgba(13, 161, 212, 0.1);
}

/* About page styles */
.index-about-content {
    padding: 0rem 2rem 2rem 2rem !important;
}

.experiment-card .read-more-btn {
    position: relative;
    z-index: 2;
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    align-self: center;
}

.experiment-card .read-more-btn:hover {
    background-color: var(--primary-color);
}

.experiment-card .read-more-btn i {
    margin-left: 6px;
}

.experiment-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.view-all-btn {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    border: 2px solid var(--secondary-color);
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.view-all-container {
    text-align: center;
    margin-top: 1rem;
}

/* Experiments page specific styles */
.container h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.container .subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.9;
    text-align: center;
    margin-bottom: 3rem;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

    nav {
        padding: 0.5rem;
        position: relative;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 0;
        margin-top: 0.5rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0.5rem;
    }

    .nav-links a {
        margin: 0.25rem 0;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
        border-radius: 6px;
    }

    .nav-links a:hover {
        background-color: rgba(13, 161, 212, 0.1);
    }

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

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

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

    header {
        padding: 0;
    }

    .logo {
        margin-left: 1rem;
        margin-bottom: 0;
    }

    .logo img {
        height: 50px;
    }
}

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

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .experiment-card h3 {
        font-size: 1.25rem;
    }

    .experiment-card p {
        font-size: 0.9rem;
        min-height: auto;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer-links a {
        padding: 0.5rem;
        margin: 0;
    }

    .footer-links a:not(:last-child)::after {
        display: none;
    }

    footer .copyright {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    footer .copyright .reserved {
        opacity: 0.8;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .by-line {
        font-size: 0.8rem;
    }

    .experiment-card .read-more-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}