/* --- Global & Reset (Default: Dark Theme, Modern Typography) --- */
:root {
    --color-bg: #0F172A; /* Slate 900 */
    --color-surface: #1E293B; /* Slate 800 */
    --color-text-primary: #F8FAFC; /* White */
    --color-text-secondary: #94A3B8; /* Slate 400 */
    --color-accent: #3B82F6; /* Blue 500 */
    --color-accent-hover: #2563EB; /* Blue 600 */
    --color-border: #334155; /* Slate 700 */
    --font-primary: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

/* --- Typography & Headings --- */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1em;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-secondary);
    padding: 0.6rem 1.2rem;
}

.btn-tertiary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
}

.large-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(15, 23, 42, 0.95); /* Slightly transparent dark background */
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.cta-nav {
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.cta-nav:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-text-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-primary);
}

/* --- Main Content Layout --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 80vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-box {
    background-color: #000000;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
}

.terminal-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 8px;
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-header span:nth-child(1) { background-color: #FF5F56; } /* Red */
.terminal-header span:nth-child(2) { background-color: #FFBD2E; } /* Yellow */
.terminal-header span:nth-child(3) { background-color: #27C93F; } /* Green */

.terminal-content {
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: #00FF00; /* Classic green terminal color */
}

.terminal-content > span {
    color: var(--color-text-secondary);
}

/* --- Features Summary (Grid) --- */
.features-summary {
    text-align: center;
}

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

.summary-card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.7);
}

.summary-card h3 {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* --- Mission Statement --- */
.mission-statement {
    background-color: var(--color-surface);
    border-radius: 15px;
    padding: 4rem 3rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.mission-statement h2 {
    font-size: 2.2rem;
}

/* --- Page Headers (Features/About) --- */
.page-header {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
}

/* --- Bento Grid (Features Page) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-item {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.bento-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.bento-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.bento-item.span-2 {
    grid-column: span 2;
}

/* --- Team Section (About Page) --- */
.team-section {
    text-align: center;
}

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

.team-member {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.03);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.team-member h4 {
    font-size: 1.2rem;
    color: var(--color-text-primary);
}

.team-member p {
    font-style: italic;
    font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-form-section {
    text-align: center;
    padding-bottom: 8rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
}

.contact-form input[type="text"], 
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-form button {
    width: 100%;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-secondary);
}

/* =================================================== */
/* --- Animations (Figma-Style Polish) --- */
/* =================================================== */

/* Animation Utility Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply initial hidden state to elements that will animate in */
.hero h1, .hero p, .hero .cta-group, .features-summary h2, .mission-statement h2, .page-header h1, .page-header p, .section-title {
    opacity: 0;
}

/* Ensure elements are visible initially before JS/CSS loads */
.hero [class*="delay-"] {
    opacity: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-visual {
        margin-top: 2rem;
    }
    .terminal-box {
        max-width: 90%;
    }
    .cta-group {
        justify-content: center;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    .navbar {
        padding: 1rem 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 0;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .cta-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 1.5rem;
    }

    .footer-col ul {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 4rem;
    }
    .terminal-content {
        font-size: 0.8rem;
    }
    .summary-card, .bento-item {
        padding: 20px;
    }
    section {
        padding: 4rem 0;
    }
}
