/* --- VARIABLES & RESET --- */
:root {
    --primary-bg: #002431;      /* Deep Blue/Teal */
    --secondary-bg: #011822;    /* Darker shade */
    --accent: #085E73;          /* Lighter Teal */
    --highlight: #4db3ce;       /* Glow color */
    --text-main: #ffffff;
    --text-muted: #a0aeb5;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND ANIMATION SETTINGS --- */

/* 1. Define the falling movement */
@keyframes fall {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 0% 1000%; /* Moves the image down vertically */
    }
}

/* 2. Base settings for all layers */
.rain-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('background.png');
    background-repeat: repeat;
    z-index: -10;
    pointer-events: none;
}

/* --- LAYER 1: Big Logos, Fastest (Foreground) --- */
.layer-1 {
    background-size: 350px;       /* Bigger logos */
    background-position: 0px 0px; /* Starts at top left */
    opacity: 0.04;                /* 4% Visibility */
    
    /* 60 seconds to fall loop */
    animation: fall 80s linear infinite; 
}




/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- FIX: CENTERED TITLES --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center; /* Ensures text is centered */
    width: 100%;        /* Takes full width to ensure centering works */
    display: block;
    position: relative;
}

/* The little line under the title */
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%); /* Keeps the line centered */
    border-radius: 2px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; /* Slight padding reduction for big logo */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

/* UPDATED LOGO STYLE */
.nav-logo {
    height: 80px; /* Big size */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--highlight); }

.btn-nav {
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover { background: var(--highlight); color: var(--primary-bg) !important; }

/* Mobile Menu Burger */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: white; margin: 5px; transition: 0.3s; }

/* --- HERO SECTION --- */
#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8,94,115,0.4) 0%, rgba(0,36,49,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-main-logo {
    width: 650px;       /* Adjust this number (e.g., 300px) if you want it bigger */
    height: auto;       /* Keeps the proportions correct */
    margin-bottom: 30px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(8, 94, 115, 0.4)); /* Optional: Adds a cool glow */
    animation: float 3s ease-in-out infinite; /* Keeps the floating animation */
}

/* 3D Logo Animation Placeholder (Hero) */
.logo-3d {
    font-size: 4rem;
    font-weight: bold;
    color: var(--highlight);
    text-shadow: 0 0 20px var(--accent);
    animation: float 3s ease-in-out infinite;
    margin-bottom: 20px;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-btns a {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin: 0 10px;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent), #0b7da5);
    color: white;
    box-shadow: 0 0 15px rgba(8, 94, 115, 0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(8, 94, 115, 0.6); }

.btn-secondary {
    border: 2px solid var(--accent);
    color: white;
}

.btn-secondary:hover { background: var(--accent); }

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* CHANGED: This fixes the gap issue */
    justify-content: flex-start; 
    
    /* ADDED: This creates consistent spacing between items */
    gap: 1px; 
    
    /* Ensures all cards are the same height */
    height: 100%; 
}

.card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); }

.card-icon { font-size: 2rem; color: var(--highlight); margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; font-family: var(--font-heading); }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.feature-list { list-style: none; margin-bottom: 20px; text-align: left; }
.feature-list li { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
.feature-list i { color: var(--accent); margin-right: 8px; }

.progress-container { margin-bottom: 10px; }
.progress-container span { font-size: 0.8rem; display: block; margin-bottom: 5px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; background: var(--highlight); border-radius: 3px; }

.btn-small {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--highlight);
    align-self: flex-start;
}

.future-project { border: 1px dashed var(--accent); text-align: center; justify-content: center; align-items: center; }
.future-project i { font-size: 3rem; margin-top: 20px; opacity: 0.5; }

/* --- ABOUT --- */
.about-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text { flex: 2; padding: 40px; }
.team-grid { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.values { margin-top: 30px; display: flex; gap: 20px; flex-wrap: wrap; }
.values span { 
    background: rgba(8, 94, 115, 0.2); 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.9rem;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.team-card {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Custom styling for the project image icon */
.project-img-icon {
    height: 50px;       /* Sets a good size to match the other icons */
    width: auto;        /* Keeps the image shape correct */
    object-fit: contain;
    margin-bottom: 5px; /* Adds a little space before the title */
    
    /* Optional: Adds a slight glow to match your theme */
    filter: drop-shadow(0 0 5px rgba(8, 94, 115, 0.5)); 
}

/* --- CAREERS --- */
.careers-list { padding: 40px; }

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.job-item:last-child { border-bottom: none; }

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    text-transform: uppercase;
}

.badge.open { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge.invite { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

.btn-apply {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-apply:hover { background: white; color: var(--primary-bg); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; border-color: grey; }

/* --- NEWS --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.news-card { padding: 25px; }
.news-date { font-size: 0.8rem; color: var(--highlight); }
.news-card h4 { margin: 10px 0; font-family: var(--font-heading); }

/* --- FOOTER --- */
footer {
    background: var(--secondary-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3, .footer-col h4 { margin-bottom: 20px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--highlight); }

/* Custom Social Icon (Footer) */
.custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-icon:hover {
    transform: scale(1.1);
}

.mini-form { display: flex; gap: 10px; }
.mini-form input {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px;
    border-radius: 5px;
    color: white;
}
.mini-form button {
    background: var(--accent);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- ANIMATION CLASS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background: var(--secondary-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    
    .nav-links li { opacity: 0; margin-top: 30px; margin-left: 0; }
    .burger { display: block; }
    
    .nav-active { transform: translateX(0%); }
    
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .hero-content h1 { font-size: 2.5rem; }
}

/* --- APPLY PAGE STYLES --- */

.form-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px; /* Space for navbar */
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 36, 49, 0.6); /* Slightly darker glass */
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--highlight);
    font-weight: 600;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
}

/* Fix dropdown arrow color in some browsers */
.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234db3ce%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* Dropdown options dark background */
.input-group option {
    background: var(--primary-bg);
    color: white;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* Highlight style for Nav Button */
.highlight-link {
    color: var(--highlight) !important;
    border: 1px solid var(--highlight);
    padding: 5px 15px;
    border-radius: 15px;
}

.highlight-link:hover {
    background: var(--highlight);
    color: var(--primary-bg) !important;
}

/* --- JOBS PAGE STYLES --- */
.jobs-grid {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    padding: 0; /* padding handled inside rows */
    overflow: hidden; /* keeps borders rounded */
}

.job-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.job-card-row:last-child {
    border-bottom: none;
}

.job-card-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.job-details h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    display: inline-block;
}

.job-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Disabled / Closed State */
.job-card-row.closed {
    opacity: 0.6;
}

.job-card-row.closed:hover {
    background: transparent;
}

.job-card-row.closed button {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

@media screen and (max-width: 600px) {
    .job-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .job-card-row a, .job-card-row button {
        width: 100%;
        text-align: center;
    }
}

/* --- EXTRA FORM STYLES --- */

/* Radio Button Group */
.radio-group {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.radio-group label {
    margin-bottom: 0 !important; /* Override default label margin */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

/* Checkbox container */
.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--highlight); /* Makes the checkbox teal when clicked */
}

/* --- NEW JOB BUTTON STYLES --- */

/* 1. APPLY NOW (OPEN) */
.btn-job-apply {
    background: linear-gradient(135deg, var(--accent) 0%, #0b7da5 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(8, 94, 115, 0.3);
}

.btn-job-apply i {
    transition: transform 0.3s ease;
}

.btn-job-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 179, 206, 0.5); /* Glow effect */
    background: linear-gradient(135deg, #0b7da5 0%, var(--highlight) 100%);
    color: white;
}

.btn-job-apply:hover i {
    transform: translateX(4px); /* Moves arrow slightly to the right */
}

/* 2. CLOSED (LOCKED) */
.btn-job-closed {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    user-select: none;
}

.btn-job-closed i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.btn-job-closed:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #a0aeb5; /* Keeps it grey */
}