:root {
    --bg-color: #030305;
    --card-bg: #0e0e12;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #3b82f6;
    /* Electric Blue */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 10rem;

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    /* Increased padding */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    /* Increased font-size */
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 60px;
    /* Increased from 40px */
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    /* Increased font-size */
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Mobile menu styles would go here */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 var(--space-sm);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    /* Increased from 800px */
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Abstract Orbs */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 10%;
    right: -10%;
    animation: float 10s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 0%;
    right: 20%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 40px);
    }
}

/* Features */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Workshops */
.workshop-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.workshop-card {
    position: relative;
    overflow: hidden;
}

.tag {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

.workshop-card h3 {
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.workshop-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.link-arrow {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-lg);
    background: #000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Hero Video Background */
/* Hero Background Image */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 3, 5, 0.7), rgba(3, 3, 5, 0.9));
    z-index: 1;
}

/* Milestone Cards */
.milestone-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-top {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.milestone-card:hover .card-img-top img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer Socials */
.social-links {
    display: flex;
    gap: 1rem;
    /* Spacing between icons */
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    /* Icon size */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: white;
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Video Cards */
.video-card {
    padding: 0;
    overflow: hidden;
    background: var(--card-bg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Resources Section Extras */
.category-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
}

.btn-text {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-text:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

/* Team Section */
.team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(145deg, var(--card-bg), rgba(255, 255, 255, 0.02));
}

.team-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.team-card:hover .team-img-wrapper {
    transform: scale(1.05);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Tools Section */
.tools-container {
    max-width: 1400px;
    /* Increased from 800px */
    margin: 0 auto;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    cursor: pointer;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--accent-primary);
}

.tool-card.active {
    cursor: default;
}

.tool-card .tool-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card.active .tool-content {
    max-height: 2000px;
    opacity: 1;
    margin-top: 2rem;
}

.tool-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    padding-right: 3rem;
}

.tool-header::after {
    content: '\ea4c';
    /* remixicon arrow-right-s-line */
    font-family: 'remixicon';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tool-card.active .tool-header::after {
    transform: rotate(90deg);
}

.tool-card.active .tool-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tool-title-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tool-title-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.tool-results {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-box {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-align: center;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.result-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.openfoam-snippet {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.snippet-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    color: var(--text-primary);
}

.openfoam-snippet pre {
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    overflow-x: auto;
}

@media (max-width: 600px) {

    .form-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .tool-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Mini Hero for subpages */
.hero-mini {
    padding: var(--space-xl) 0 var(--space-lg);
    background: linear-gradient(to bottom, #0a0a10, var(--bg-color));
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-mini h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-mini p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-md);
    align-items: start;
    margin-top: var(--space-md);
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-card p,
.info-card a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-card a:hover {
    color: var(--accent-primary);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}