/* --- VARIABLES --- */
:root {
    /* Colors */
    --color-bg: #0B0E14; /* Midnight Navy */
    --color-surface: #151A23;
    --color-primary: #6D28D9; /* Purple */
    --color-accent: #2DD4BF; /* Mint/Teal */
    --color-text-main: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-border: #374151;
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 12px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

/* --- HEADER --- */
.header {
    height: var(--header-height);
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

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

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
}

.nav__link:hover, .nav__link.active {
    color: var(--color-accent);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.header__btn {
    display: flex;
}

/* Burger Menu (Hidden on Desktop) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.burger__line {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer__logo-img {
    height: 32px;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer__desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__contacts li {
    margin-bottom: 16px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer__icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer__note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--color-accent);
    background: rgba(45, 212, 191, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* --- ADAPTIVE (Mobile) --- */
@media (max-width: 992px) {
    .header__btn {
        display: none; /* Hide CTA on tablet/mobile if needed to save space, or move to menu */
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-surface);
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid var(--color-border);
    }

    .header__nav.open {
        height: auto;
        padding-bottom: 20px;
    }

    .nav__list {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: var(--color-bg);
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6; /* Slight transparency so text pops */
}

.hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero__content {
    max-width: 650px;
}

/* Badge */
.hero__badge {
    display: inline-block;
    background: rgba(45, 212, 191, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    backdrop-filter: blur(5px);
}

/* Typography */
.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

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

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Features List */
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero__feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.hero__icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

/* Actions */
.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn--outline:hover {
    border-color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Trust block */
.hero__trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__trust-avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.hero__trust-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero__trust-text strong {
    color: #fff;
    display: block;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- METHODOLOGY (IDE STYLE) --- */
.methodology {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

/* IDE Container */
.ide-window {
    background-color: #1E1E1E; /* VS Code Dark bg */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', monospace; /* Monospace font for code */
    max-width: 900px;
    margin: 0 auto;
}

/* IDE Header */
.ide-header {
    background-color: #252526;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.ide-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot--red { background-color: #FF5F56; }
.dot--yellow { background-color: #FFBD2E; }
.dot--green { background-color: #27C93F; }

.ide-title {
    color: #9CA3AF;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
    margin-right: 50px; /* balance visual center */
}

/* IDE Body Grid */
.ide-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 400px;
}

/* Sidebar */
.ide-sidebar {
    background-color: #252526;
    border-right: 1px solid #333;
    padding-top: 10px;
}

.ide-explorer-title {
    color: #6F7681;
    font-size: 0.75rem;
    padding: 0 16px 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.ide-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #CCCCCC;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 2px solid transparent;
}

.ide-file:hover {
    background-color: #2A2D2E;
}

.ide-file.active {
    background-color: #37373D;
    border-left-color: var(--color-accent);
}

.ide-icon {
    width: 16px;
    height: 16px;
}
.ide-icon.json { color: #F1C40F; }
.ide-icon.js { color: #F7DF1E; }
.ide-icon.ts { color: #3178C6; }

/* Code Content */
.ide-content {
    background-color: #1E1E1E;
    padding: 24px;
    overflow-x: auto;
}

.code-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.code-tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.line {
    font-size: 1rem;
    line-height: 1.6;
    color: #D4D4D4;
    white-space: nowrap;
}

.line.indent {
    padding-left: 24px;
}

.line.empty {
    height: 1.6em;
}

/* Syntax Highlighting */
.c-purple { color: #C586C0; }
.c-attr { color: #9CDCFE; }
.c-string { color: #CE9178; }
.c-null { color: #569CD6; }
.c-comment { color: #6A9955; font-style: italic; margin-left: 10px; }
.c-keyword { color: #569CD6; }
.c-func { color: #DCDCAA; }
.c-var { color: #9CDCFE; }
.c-class { color: #4EC9B0; }
.c-decorator { color: #DCDCAA; }

/* Status Bar */
.ide-footer {
    background-color: var(--color-primary);
    padding: 4px 12px;
    display: flex;
    gap: 20px;
    color: #fff;
    font-size: 0.75rem;
}

.ide-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ide-footer-item.right {
    margin-left: auto;
}

.ide-footer-item i {
    width: 12px;
    height: 12px;
}

/* CTA under IDE */
.methodology__cta {
    text-align: center;
    margin-top: 40px;
}

.methodology__cta p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .ide-body {
        grid-template-columns: 1fr; /* Stack sidebar on top */
        grid-template-rows: auto 1fr;
    }
    
    .ide-sidebar {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .ide-files {
        display: flex;
        overflow-x: auto;
    }

    .ide-file {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .ide-file.active {
        border-left: none;
        border-bottom-color: var(--color-accent);
    }
    
    .line {
        font-size: 0.85rem;
    }
}

/* --- COURSES (ACCORDION) --- */
.courses {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.courses__header {
    text-align: center;
    margin-bottom: 60px;
}

.courses__subtitle {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Accordion Container */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion Item */
.accordion__item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion__item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.15);
}

/* Header (Always visible) */
.accordion__header {
    padding: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.accordion__header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.accordion__code {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--color-accent);
    background: rgba(45, 212, 191, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 20px;
}

.accordion__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    flex-grow: 1;
    color: #fff;
}

.accordion__icon {
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Content (Hidden by default) */
.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__body {
    padding: 0 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -1px; /* fix double border visual */
}

.accordion__desc {
    color: var(--color-text-muted);
    margin: 20px 0;
    font-size: 0.95rem;
}

.accordion__desc strong {
    color: var(--color-text-main);
}

.accordion__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.accordion__tags li {
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--color-border);
}

.accordion__price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.accordion__price-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .accordion__header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .accordion__code {
        width: 100%;
        margin-right: 0;
        text-align: center;
        width: fit-content;
    }
    
    .accordion__title {
        font-size: 1.1rem;
        width: 85%; /* Leave space for icon */
    }
    
    .accordion__footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .accordion__price {
        width: 100%;
    }
    
    .btn--sm {
        width: 100%;
        justify-content: center;
    }
}

/* --- MENTORS (CONTRIBUTORS) --- */
.mentors {
    padding: 100px 0;
    background-color: var(--color-bg);
    position: relative;
}

.mentors::before {
    /* Background grid decoration */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

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

/* Mentor Card */
.mentor-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mentor-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

/* Header & Avatar */
.mentor-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mentor-card__avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.mentor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Glitch Effect on Hover */
.mentor-card:hover .mentor-card__img {
    filter: contrast(1.2) brightness(1.1);
    transform: scale(1.1);
}

.mentor-card__info {
    flex: 1;
}

.mentor-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
}

.mentor-card__role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.mentor-card__status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #27C93F; /* Green */
}

.mentor-card__status.busy {
    color: #FFBD2E; /* Yellow */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 5px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Body & Bio */
.mentor-card__bio {
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
}

.mentor-card__bio p {
    margin-bottom: 6px;
}

.mentor-card__bio strong {
    color: var(--color-accent);
}

/* Tech Stack Tags */
.mentor-card__stack {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.stack-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    background-color: rgba(109, 40, 217, 0.1); /* Purple tint */
    color: #D8B4FE;
    border: 1px solid rgba(109, 40, 217, 0.2);
}

/* Footer & Graph */
.mentor-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.contribution-graph {
    display: flex;
    gap: 2px;
}

.sq {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.sq.l1 { background-color: #0e4429; }
.sq.l2 { background-color: #006d32; }
.sq.l3 { background-color: #26a641; }
.sq.l4 { background-color: #39d353; }

.commit-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --- CAREER (GIT GRAPH) --- */
.career {
    padding: 100px 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.git-graph {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 0;
}

/* Vertical Line */
.git-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

/* Commit Container */
.git-commit {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 60px;
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.git-commit.visible {
    opacity: 1;
    transform: translateY(0);
}

.git-commit.left {
    left: 0;
    text-align: right;
}

.git-commit.right {
    left: 50%;
    text-align: left;
}

/* Commit Dot */
.commit-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg);
    border: 4px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
    transition: background-color 0.3s;
}

.git-commit.left .commit-dot {
    right: -10px;
}

.git-commit.right .commit-dot {
    left: -10px;
}

.git-commit:hover .commit-dot {
    background-color: var(--color-accent);
}

/* Commit Card */
.commit-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: transform 0.3s;
}

.git-commit:hover .commit-card {
    transform: scale(1.02);
    border-color: var(--color-primary);
}

/* Arrow for Card */
.commit-card::after {
    content: '';
    position: absolute;
    top: 24px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.git-commit.left .commit-card::after {
    right: -20px;
    border-left-color: var(--color-surface);
}

.git-commit.right .commit-card::after {
    left: -20px;
    border-right-color: var(--color-surface);
}

/* Card Content */
.commit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', monospace;
}

.git-commit.left .commit-header {
    justify-content: flex-end;
}

.commit-hash {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.commit-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.commit-tag.feature { background: rgba(109, 40, 217, 0.3); color: #D8B4FE; } /* Purple */
.commit-tag.merge { background: rgba(39, 201, 63, 0.2); color: #86EFAC; } /* Green */
.commit-tag.deploy { background: rgba(255, 95, 86, 0.2); color: #FCA5A5; } /* Red */

.commit-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}

.commit-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.commit-desc strong {
    color: var(--color-text-main);
}

.commit-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
    font-size: 0.85rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.git-commit.left .commit-footer {
    justify-content: flex-end;
}

.career__cta {
    text-align: center;
    margin-top: 60px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .git-line {
        left: 20px;
    }

    .git-commit {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .git-commit.left, .git-commit.right {
        left: 0;
        text-align: left;
    }

    .git-commit.left .commit-dot, .git-commit.right .commit-dot {
        left: 10px;
        right: auto;
    }

    .git-commit.left .commit-card::after, .git-commit.right .commit-card::after {
        left: -20px;
        right: auto;
        border-right-color: var(--color-surface);
        border-left-color: transparent;
    }

    .git-commit.left .commit-header {
        justify-content: flex-start;
    }
    
    .git-commit.left .commit-footer {
        justify-content: flex-start;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0;
    background-color: var(--color-bg);
    position: relative;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__desc {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact__desc strong {
    color: var(--color-text-main);
}

.contact__info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-main);
    font-size: 1rem;
}

.info-item.highlight {
    margin-top: 10px;
    color: var(--color-accent);
    font-size: 0.9rem;
    background: rgba(45, 212, 191, 0.1);
    padding: 10px 16px;
    border-radius: 8px;
    width: fit-content;
}

.c-purple { color: var(--color-primary); }
.c-teal { color: var(--color-accent); }

/* Form Styles */
.contact__form-wrapper {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 24px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.code-font {
    font-family: 'Courier New', monospace;
    color: var(--color-accent);
    font-weight: bold;
    letter-spacing: 1px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.form__checkbox {
    margin-top: 4px;
    accent-color: var(--color-primary);
}

.form__checkbox-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.form__checkbox-label a {
    color: var(--color-text-main);
    text-decoration: underline;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Success Message */
.form__success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.form__success.active {
    opacity: 1;
    visibility: visible;
}

.form__success i {
    width: 64px;
    height: 64px;
    color: #27C93F;
    margin-bottom: 20px;
}

.form__success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

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

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Hidden by default */
    background: rgba(21, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 600px;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- LEGAL PAGES STYLES (Privacy, Terms etc.) --- */
/* Target structure: main > section.pages > .container > ... */
.pages {
    padding: 140px 0 80px; /* More top padding for fixed header */
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    text-align: justify;
}

.pages ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.pages li {
    color: var(--color-text-muted);
    margin-bottom: 8px;
    list-style: disc;
}

.pages strong {
    color: var(--color-text-main);
}

.pages a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        flex-direction: column;
        border-radius: 20px;
        text-align: center;
        bottom: 10px;
        align-items: stretch;
    }
    
    .pages h1 {
        font-size: 2rem;
    }
}