/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #00d4ff;
    --color-body-bg: #0d0e14;
    --color-text: #b1b1b1;
    --color-text-light: #ffffff;
    --color-border: #222;
    --color-component-bg: rgba(255, 255, 255, 0.05);
    --color-component-border: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-body-bg);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 1.6rem; /* Default font size */
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden; /* Prevents horizontal scroll */
}

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

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

ul {
    list-style-type: none;
}

/* --- TYPOGRAPHY & UTILITY --- */
.section-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(0, 212, 255, 0.4);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    color: var(--color-text);
    text-align: center;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    border-radius: 10px;
    background-color: var(--color-text-light);
    color: var(--color-body-bg);
    font-weight: bold;
    font-size: 1.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- HEADER / NAVIGATION --- */
.header {
    padding: 1.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: black;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    border: 2px solid var(--color-border);
    box-shadow: 0 0 10px rgb(58, 58, 58);
}

.nav__brand {
    width: 200px;
}

.nav__toggler {
    width: 40px;
    height: 40px;
    fill: var(--color-text-light);
    opacity: 0.7;
    transition: box-shadow 0.15s, opacity 0.15s;
    cursor: pointer;
}

.nav.collapsible--expanded .nav__toggler {
    opacity: 1;
    box-shadow: 0 0 0 3px #666;
    border-radius: 5px;
}

.nav__list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.nav__item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.nav__item:last-of-type {
    border-bottom: none;
}

.nav__item > a {
    color: var(--color-text);
    transition: color 0.3s;
    font-weight: 500;
}

.nav__item > a:hover {
    color: var(--color-text-light);
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.collapsible--expanded .collapsible__content {
    max-height: 100vh; /* Large value to ensure it opens fully */
    opacity: 1;
}

/* --- FLOATING BACKGROUND LOGOS --- */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-component-border);
}

.floating-element svg {
    width: 60%;
    height: 60%;
    filter: grayscale(100%) contrast(1.5);
    opacity: 0.7;
}

.floating-element:nth-child(1) { width: 80px; height: 80px; top: 15%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { width: 100px; height: 100px; top: 60%; right: 15%; animation-delay: 2s; }
.floating-element:nth-child(3) { width: 100px; height: 100px; top: 80%; left: 20%; animation-delay: 4s; }
.floating-element:nth-child(4) { width: 90px; height: 90px; top: 22%; right: 30%; animation-delay: 1s; }
.floating-element:nth-child(5) { width: 70px; height: 70px; top: 70%; right: 40%; animation-delay: 3s; }

/* --- MAIN CONTENT & SECTIONS --- */
main {
    padding: 2rem;
}

.section {
    padding: 6rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.section-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.hero__content {
    text-align: center;
    max-width: 65ch;
}

.hero__title {
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero__description {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    margin-bottom: 3rem;
}

.hero__image-container {
    width: 100%;
    max-width: 500px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 20%;
}

.hero__image {
    width: 90%;
    height: min(400px, 90%);
    filter: drop-shadow(10px 10px 20px rgba(0, 212, 255, 0.3));
    animation: leftToRight 1.7s ease-in-out;
}

/* Arrow Section */
.scroll-down-arrow {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2hldnJvbl90aGluX2Rvd24iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiBmaWxsPSJ3aGl0ZSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTE3LjQxOCw2LjEwOWMwLjI3Mi0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwYzAuMjcsMC4yNjgsMC4yNzEsMC43MDEsMCwwLjk2OWwtNy45MDgsNy44M2MtMC4yNywwLjI2OC0wLjcwNywwLjI2OC0wLjk3OSwwbC03LjkwOC03LjgzYy0wLjI3LTAuMjY4LTAuMjctMC43MDEsMC0wLjk2OWMwLjI3MS0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwTDEwLDEzLjI1TDE3LjQxOCw2LjEwOXoiLz48L3N2Zz4=);
    background-size: contain;
    background-repeat: no-repeat;
    height: 60px;
    width: 60px;
    margin: 0 auto;
    animation: fade_move_down 2s ease-in-out infinite;
}

/* Stats Section */
.stats__grid {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4, min(20%, 250px));
    grid-template-rows: 200px;
    gap: 3rem;
}

.stats__item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-component-bg);
    border-radius: 16px;
    border: 1px solid var(--color-component-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.stats__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stats__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: shimmer 3s infinite;
}

.stats__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 2px 15px rgba(0, 212, 255, 0.4);
    margin-bottom: 3rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

@media screen and (max-width: 1024px) {
    .stats__grid {
        grid-template-columns: repeat(2, min(45%, 250px));
        grid-template-rows: repeat(2, 170px);
        gap: 6rem;
    }

    .stats__number {
        font-size: 3rem;
    }

    .section {
        padding: 3rem 0;
    }
    
}

@media screen and (max-width: 500px) {

    .stats__number {
        font-size: 2.3rem;
    }
    
}

.stats__label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Info Section */
.grid__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info__grid {
    display: grid;
    grid-template-columns: repeat(4, 350px);
    grid-template-rows: 300px;
    gap: 4rem;
    margin-top: 5rem;
}

.info__item {
    text-align: center;
    background: var(--color-component-bg);
    border: 1px solid var(--color-component-border);
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.info__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.info__item__header {
    padding: 2rem;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--color-primary), transparent) 1;
    box-shadow: 0 1px 10px rgba(0, 212, 255, 0.5);
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.info__item__header h2 {
    font-size: 2.2rem;
    color: var(--color-text-light);
}

.info__item__body {
    padding: 3rem 2rem;
    font-size: 1.6rem;
}

@media screen and (min-width: 801px) and (max-width: 1550px) {
    .info__grid {
        grid-template-columns: repeat(2, 330px);
        grid-template-rows: repeat(2, 330px);
        gap: 5rem;
    }
}

@media screen and (max-width: 800px) {
    .info__grid {
        grid-template-rows: repeat(4, 300px);
        grid-template-columns: 300px;
    }
}

/* CTA Section */
.section-cta {
    text-align: center;
}
.section-cta .btn {
    margin-top: 3rem;
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
}

/* --- FOOTER --- */
.footer {
    background-color: black;
    border-top: 2px solid var(--color-border);
    box-shadow: 0 -5px 10px rgba(58, 58, 58, 0.5);
    border-radius: 30px 30px 0 0;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.footer__brand {
    width: 180px;
}

.footer__socials {
    display: flex;
    gap: 2rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    fill: var(--color-text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer__links a:hover {
    color: var(--color-text-light);
}

.footer__text {
    color: var(--color-text);
    font-size: 1.4rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    width: 100%;
    text-align: center;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes leftToRight {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes fade_move_down {
    0%   { transform:translate(0,-20px); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform:translate(0,20px); opacity: 0; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes borderGlow {
    0% { box-shadow: 0 1px 5px rgba(0, 212, 255, 0.3); }
    100% { box-shadow: 0 1px 15px rgba(0, 212, 255, 0.8); }
}

.animate-item, .footer__item, .stats__item, .info__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.animate, .footer__item.animate, .stats__item.animate, .info__item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES (RESPONSIVENESS) --- */

/* Tablet and larger */
@media screen and (min-width: 768px) {
    .nav__toggler {
        display: none;
    }

    .nav__list {
        width: auto;
        flex-direction: row;
        align-items: center;
        max-height: 100%;
        opacity: 1;
    }

    .nav__item {
        border: 0;
        padding: 1rem 1.5rem;
    }
    
    .section-hero .container {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }
    
    .hero__content {
        text-align: left;
        flex: 1;
    }
    
    .hero__image-container {
        flex: 1;
    }
    
    .footer__top {
        flex-direction: row;
    }
    
    .footer__links {
        flex-direction: row;
        gap: 3rem;
        padding-right: 6%;
    }
}

/* Small desktop and larger */
@media screen and (min-width: 992px) {
    .nav__item {
        padding: 1rem 2rem;
    }
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    .nav {
        margin: 0 1rem;
        border-radius: 15px;
    }
    .footer {
        border-radius: 15px 15px 0 0;
    }
    .hero__image-container {
        width: 80%;
        height: 80%;
    }

    .hero__image {
        width: 100%;
        height: 100%;
    }
}