/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.global-padding {
    padding-left: 100px; /* Adjust this value to match your desired offset */
    padding-right: 100px;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0a0a0a;
    border-bottom: 1px solid #4d4d4d;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust this value to match your header height */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}
.logo span { font-weight: 300; margin-left: 10px; }

nav ul {
    display: flex;
    list-style: none; /* Removes the bullets */
    margin: 0;
    padding: 0;
    gap: 30px; /* Adjusts the space between menu items */
}

/* Base style for the links */
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent; /* Keeps the layout stable */
    transition: all 0.2s ease;
}

/* Hover state styling */
nav ul li a:hover {
    color: #ff0000; /* Changes text to red */
    border-bottom: 1px solid #ff0000; /* Adds the red underline */
}

.join-btn {
    background: transparent;
    border: 1px solid #ff0000;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.join-btn:hover {
    background: #ff0000;
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px;
    position: relative;
    background-image: url('images/bg_image_hero_cropped.png');
    background-size: cover;

    background-position: right top; 
    background-repeat: no-repeat;
}

.hero-technology {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px;
    position: relative;
    background-image: url('images/bg_image_hero_technology_3.png');
    background-size: cover;
    background-position: right center; 
    background-repeat: no-repeat;
}



/* Ensure text stays within the container and is layered above the overlay */
.hero h1, .hero p, .hero .cta-btn {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: left; /* Explicitly force left alignment */
}

/* Style for the H1 to match the bold, multi-line look */
.hero h1 {
    font-size: 5rem;
    line-height: 1;
    max-width: 600px;
    margin-bottom: 20px;
    font-weight: 800;
}

/* Style for the paragraph */
.hero p {
    max-width: 450px;
    margin-bottom: 30px;
    color: #cccccc;
    line-height: 1.5;
}

.hero-label {
    display: flex;
    align-items: center;
    color: #ff0000; /* Matching the red accent */
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

/* The small red line next to the text */
.label-line {
    width: 30px;
    height: 2px;
    background-color: #ff0000;
    margin-right: 15px;
}

.red-text { color: #ff0000; }


.cta-btn {
    background: transparent;
    background: #ff0000; /* Same color as your hover state */
    border-color: #ff0000;
    color: white;
    padding: 15px 30px;
    width: fit-content;
    cursor: pointer;
    transition: 0.3s;
}
.cta-btn:hover {
    background: #ff0000;
}





/* Stats Section */

/* 1. Reset the About Section to be flexible but respect alignment */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 75px 0;
    gap: 50px; /* Ensures there is space between the two blocks */
}

/* 2. Create a dedicated container for the left-aligned content */
.about-content {
    flex: 1;
    max-width: 33%;
    padding-left: 100px;
    
    /* New addition for vertical control */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps button left-aligned */
    gap: 25px; /* This sets the exact space between EVERY element in this column */
}


.label-line-right {
    width: 30px;
    height: 2px;
    background-color: #ff0000;
    margin-left: 15px; /* Creates the gap between text and the line */
    display: inline-block;
}

.about-content .about-label,
.about-content h2, 
.about-content p, 
.about-content .learn-more-btn {
    margin: 0;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}



/* 2. Remove margin-bottom from the label so it doesn't add extra space */
.about-label {
    display: flex;
    align-items: center;
    color: #ff0000;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 0; /* Changed from 20px to 0 */
}

/* 3. Reset margins for all children to ensure they only obey the 'gap' */
.about-content .about-label,
.about-content h2, 
.about-content p, 
.about-content .learn-more-btn {
    margin: 0;
}

/* 4. Fix the H2 size so it doesn't have an extra margin */
.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0; /* Ensure this is 0 */
}



.learn-more-btn {
    background: transparent;
    border: 1px solid #ff0000;
    color: white;
    padding: 12px 25px;
    cursor: pointer;
    transition: 0.3s;
}

.learn-more-btn:hover {
    background: #ff0000;
}

/* Stats Styling */
/* 3. Ensure the stats container doesn't push the left side too far */
.stats-container {
    flex: 1;
    display: flex;
    justify-content: space-around;
    padding-right: 100px; /* Balanced padding on the right */
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #ff0000;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 50px;
    border-top: 1px solid #333;
}

.stat-item { text-align: center; }

.stat-icon {
    /* Adjust these values to match the scale of your text */
    width: 128px; 
    height: 128px;
    
    /* Ensures the icon remains centered and doesn't get stretched */
    object-fit: contain;
    
    /* Adds breathing room between the icon and the stat number */
    margin-bottom: 15px;
    
    /* Optional: If you want to dim them slightly so the red number pops more */
    opacity: 0.9;
}






.projects-section {
    padding: 75px 100px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    /* Remove any internal padding here so it inherits from .projects-section */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* If the grid feels "indented," check that it doesn't have 
       extra padding settings fighting your global settings */
}

.projects-label {
    color: #ff0000;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.view-all-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.view-all-btn:hover {
    color: #ff0000;
}

/* Grid layout for 3 cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card img {
    width: 100%;
    height: auto;
    /*border: 1px solid #333;*/
    transition: 0.3s;
}

.project-card:hover img {
    border-color: #ff0000;
}

.project-card h3 {
    margin-top: 15px;
    color: inherit;
    font-size: 1.1rem;
}

.project-card p {
    color: #888;
    font-size: 0.8rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hamburger {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


.process-section {
    padding-top: 25px;
    padding-bottom: 25px;
}

.process-banner {
    min-height: 210px;
    display: flex;
    align-items: center;
    padding: 40px 60px;
    margin-bottom: 50px;

    background:
        linear-gradient(to right, rgba(0,0,0,.95), rgba(0,0,0,0) 65%),
        url("images/process/bg_image_process_banner_2.png");

    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,0,0,.25);
}

.process-label {
    color: #ff0000;
    font-size: .8rem;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 16px;
}

.process-banner h2 {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 2px;
}

.process-subtitle {
    margin-top: 18px;
    letter-spacing: 6px;
    color: #ddd;
}

.process-subtitle span {
    color: #ff0000;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.process-card {
    min-height: 620px;
    padding: 34px 30px;
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255,0,0,.25);
    background: #070707;
}

.process-number {
    color: #ff0000;
    font-size: 3rem;
    font-weight: 800;
}

.process-card h3 {
    margin-top: 24px;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.process-card h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    background: #ff0000;
    margin-top: 18px;
}

.process-card p {
    margin-top: 24px;
    color: #b8b8b8;
    line-height: 1.7;
}

.process-card img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 52%;
    object-fit: cover;
    opacity: .9;
}


.tools-section {
    padding-top: 25px;
    padding-bottom: 25px;
    margin-top: 80px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(3, 8, 12, .75);
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 42px;
}

.section-label {
    color: #ff0000;
    font-size: .85rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.section-label span {
    display: inline-block;
    width: 34px;
    height: 2px;
    background: #ff0000;
    margin-left: 16px;
    vertical-align: middle;
}

.core-tech-section {
    padding-top: 50px;
    padding-bottom: 25px;
}

.core-tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 40px;
}

.core-tech-header p {
    color: #8a8a8a;
    font-size: .8rem;
    letter-spacing: 1px;
}

.section-label {
    color: #ff0000;
    font-size: .85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-label span {
    display: inline-block;

    width: 40px;
    height: 2px;

    background: #ff0000;

    margin-left: 16px;
    vertical-align: middle;
}

.core-tech-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.tech-card {
    position: relative;

    padding: 34px;

    min-height: 260px;

    background:
        linear-gradient(
            180deg,
            rgba(12,16,22,.95),
            rgba(6,10,15,.95)
        );

    border: 1px solid
        rgba(255,255,255,.08);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.tech-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(255,0,0,.4);
}

.tech-icon {
    width: 54px;
    height: 54px;

    margin-bottom: 28px;
}

.tech-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.tech-card h3 {
    font-size: 1.45rem;

    margin-bottom: 14px;

    letter-spacing: 1px;

    color: white;
}

.tech-card p {
    color: #9a9a9a;

    line-height: 1.7;

    font-size: .95rem;

    max-width: 90%;
}

.tech-card a {
    position: absolute;

    left: 34px;
    bottom: 28px;

    color: #ff0000;

    text-decoration: none;

    font-size: 1.4rem;

    transition: .25s;
}

.tech-card:hover a {
    transform: translateX(6px);
}



.tools-header p {
    color: #8a8a8a;
    font-size: .8rem;
    letter-spacing: 1px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 34px;
    align-items: center;
}

.tool-logo {
    color: rgba(255,255,255,.45);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    filter: grayscale(1);
}

.tool-logo small {
    font-size: .65rem;
    font-weight: 400;
}


.site-footer {
    margin-top: 25px;
    padding: 25px 100px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #04070b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.footer-left {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: .2s;
}

.footer-links a:hover {
    color: #ff0000;
}

.footer-disclaimer {
    color: rgba(255,255,255,.35);

    font-size: .75rem;

    line-height: 1.7;

    max-width: 900px;
}




@media (max-width: 700px) {
    .tools-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: 560px;
    }

    .process-banner h2 {
        font-size: 2.2rem;
    }
}



@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem; /* Slightly smaller for tablets */
    }
    .hero p {
        background: rgba(0, 0, 0, 0.5);

        padding: 14px 18px;

        border-left: 2px solid #ff0000;

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);

        width: fit-content;
    }
}



@media (max-width: 768px) {
    .global-padding {
        padding-left: 25px; /* Adjust this value to match your desired offset */
        padding-right: 25px;
    }

    .hamburger {
        display: block;
        margin-left: auto;      /* Pushes the button to the right */
        margin-right: 10px;    /* Adds the specific 100px padding from the right */
    }

    /* Hide the original header button */
    .join-btn {
        display: none;
    }

    nav {
        display: none; /* Hide nav links by default on mobile */
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust this to match your header height */
        left: 0;
        background: #0a0a0a;
        padding: 20px;
        border-bottom: 1px solid #333;
        z-index: 1000;
    }

    /* JavaScript toggles this class */
    nav.nav-active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cta-btn {
        background: #ff0000; /* Same color as your hover state */
        border-color: #ff0000;
    }

    .hero h1 {
        font-size: 2.5rem; /* Much smaller for mobile devices */
        line-height: 1.1;  /* Tighten line height to keep it clean */
    }

    /* 1. About Section Stacking */
    .about-section {
        flex-direction: column;
        padding: 50px 100px;
        text-align: center;
    }

    .about-content {
        max-width: 100%;
        padding-left: 0;
        align-items: center; /* Centers content */
    }

    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 grid on mobile */
        gap: 30px;
        padding-right: 0;
        width: 100%;
    }

    /* 2. Projects Section Stacking */
    .projects-section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .hero p {
        background: rgba(0, 0, 0, 0.5);

        padding: 14px 18px;

        border-left: 2px solid #ff0000;

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);

        width: fit-content;
    }

    .core-tech-grid {
        grid-template-columns: 1fr;
    }

    .core-tech-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-footer {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}