/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-dark: #020413;
    --bg-gradient-end: #1a2a45;
    --bg-card: #020412;
    --primary-blue: #2233FF;
    --primary-blue-hover: #1a27cc;
    --text-light: #F3F4F6;
    --text-gray: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-start: #0c1cf3;
    --gradient-end: #E94560;
    --green-accent: #10B981;
}

/* --- General & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom, var(--bg-dark), var(--bg-gradient-end));
    color: var(--text-light);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    max-width: 65ch;
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* Alignment fix for paragraphs inside section-headers */
.section-header p {
    margin-left: auto;
    margin-right: auto;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

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

.btn-primary-outline:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}


/* --- Header & Navigation --- */
.header {
    background-color: rgba(3, 1, 14, 0.8); /* Restored semi-transparent background */
    backdrop-filter: blur(10px); /* Restored blur effect */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* --- Hero Section --- */
.hero-section {
    padding: 8rem 0;
    text-align: left;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-cards {
    flex: 1;
    background-color: rgba(19, 24, 44, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: #110D2B; /* Darker, richer background */
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column; /* Align icon and text vertically */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 51, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* New Icon Styling */
.feature-card .blue-icon {
    stroke: #5599FF;
    filter: drop-shadow(0 0 6px rgba(85, 153, 255, 0.7));
}

.feature-card .red-icon {
    stroke: #FF5588;
    filter: drop-shadow(0 0 6px rgba(255, 85, 136, 0.7));
}

.feature-card:hover .blue-icon {
    stroke: #80BFFF;
    filter: drop-shadow(0 0 10px rgba(128, 191, 255, 0.9));
}

.feature-card:hover .red-icon {
    stroke: #FF80AA;
    filter: drop-shadow(0 0 10px rgba(255, 128, 170, 0.9));
}


/* --- About Section --- */
.about-section {
    padding: 6rem 0;
}

.three-cards-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background-color: rgba(19, 24, 44, 0.5); /* UPDATED */
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
}

.icon-wrapper.blue-icon {
    background-color: rgba(34, 51, 255, 0.1);
    color: var(--primary-blue);
}

.icon-wrapper.red-icon {
    background-color: rgba(233, 69, 96, 0.1);
    color: #E94560;
}

.icon-wrapper.gray-icon {
    background-color: rgba(156, 163, 175, 0.1);
    color: var(--text-gray);
}


/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.checklist {
    margin-top: 2rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.checklist svg {
    color: var(--green-accent);
}

.contact-form-wrapper {
    background-color: rgba(19, 24, 44, 0.5); /* UPDATED */
    backdrop-filter: blur(10px); /* ADDED */
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(34, 51, 255, 0.3);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1.5rem; /* Adds space above the button */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input[type="file"] {
    padding: 0.5rem;
}

.contact-form small {
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-size: 0.8rem;
}


/* --- Careers Page Specific --- */
.careers-hero-section {
    padding: 6rem 0;
}

.positions-section {
    padding: 0 0 6rem 0;
}

.positions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.position-card {
    background-color: rgba(19, 24, 44, 0.5); /* UPDATED */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.position-card h3 {
    margin-top: 1.5rem;
}

.position-details {
    text-align: left;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.position-details h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-gray);
}

.position-details ul {
    list-style: none;
    padding-left: 0;
}

.position-details ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.position-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-size: 1.2rem;
}

.offer-box {
    width: 100%;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: auto; /* Pushes the box to the bottom */
}

.offer-box.offer-blue {
    background-color: rgba(34, 51, 255, 0.1);
}

.offer-box.offer-red {
    background-color: rgba(233, 69, 96, 0.1);
}

.offer-box h4 {
    color: var(--text-light);
    font-size: 0.9rem;
}

.offer-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.footer-col-1 .logo {
    margin-bottom: 1rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.footer ul a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

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

.footer-col-3 p {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-3 a {
    color: var(--primary-blue);
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .three-cards-layout, .contact-container, .positions-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-1 .logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        padding: 1rem 0;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .contact-form .form-group {
        margin-bottom: 1.5rem;
    }
}

/* --- Form Success Message Styling --- */
.form-success-message {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px solid var(--green-accent);
    border-radius: 12px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--text-light);
}