/* ================= GLOBAL VARIABLES ================= */
:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --border: #1a1a1a;
    --text: #ffffff;
    --dim: #888888;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --glow: 0 0 20px rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* ================= SCROLL PROGRESS BAR ================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #888888);
    width: 0%;
    z-index: 999;
    transition: width 0.1s ease;
}

/* ================= NAVIGATION ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: #2a2a2a;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    letter-spacing: 0px;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dim);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-btn {
    background: #ffffff;
    color: #000000 !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-btn:hover {
    transform: scale(1.08);
    background: #f0f0f0;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.nav-btn:hover::before {
    left: 0;
}

/* Mobile Toggle Icon */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    z-index: 0;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero>* {
    position: relative;
    z-index: 1;
}

.badge {
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dim);
    margin-bottom: 30px;
    transition: var(--transition);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge:hover {
    border-color: #333333;
    color: var(--text);
    box-shadow: var(--glow);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 90px;
    line-height: 0.9;
    margin-bottom: 30px;
    font-weight: 800;
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    color: var(--dim);
    font-size: 1.1rem;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    margin-top: 40px;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.large {
    padding: 16px 50px;
    font-size: 15px;
}

/* ================= RIPPLE EFFECT ================= */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================= SOLUTIONS GRID ================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 100px 5%;
    position: relative;
}

.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card:nth-child(1) {
    animation-delay: 0.1s;
}

.solution-card:nth-child(2) {
    animation-delay: 0.2s;
}

.solution-card:nth-child(3) {
    animation-delay: 0.3s;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.solution-card:hover {
    border-color: #333333;
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
    left: 100%;
}

.card-img-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    transition: var(--transition);
    filter: brightness(0.9);
}

.solution-card:hover .card-img-box img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.solution-card h3 {
    font-family: 'Syne', sans-serif;
    margin-bottom: 16px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.solution-card:hover h3 {
    color: #ffffff;
}

.solution-card p {
    color: var(--dim);
    font-size: 0.95rem;
    transition: var(--transition);
}

.solution-card:hover p {
    color: #aaaaaa;
}

/* ================= TICKER MARQUEE ================= */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    overflow: hidden;
    background: #050505;
    position: relative;
}

.ticker::before,
.ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.ticker::before {
    left: 0;
    background: linear-gradient(90deg, #050505, transparent);
}

.ticker::after {
    right: 0;
    background: linear-gradient(90deg, transparent, #050505);
}

.ticker-track {
    display: flex;
    gap: 80px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.ticker-track span {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker:hover .ticker-track span {
    color: #2a2a2a;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ================= BENTO GRID SYSTEM ================= */
.bento-wrapper {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 50px;
    animation: slideUp 0.8s ease-out;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.bento-box:nth-child(1) {
    animation-delay: 0.1s;
}

.bento-box:nth-child(2) {
    animation-delay: 0.2s;
}

.bento-box:nth-child(3) {
    animation-delay: 0.3s;
}

.bento-box:nth-child(4) {
    animation-delay: 0.4s;
}

.bento-box:nth-child(5) {
    animation-delay: 0.5s;
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-box:hover::before {
    opacity: 1;
}

.bento-box:hover {
    border-color: #333333;
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.box-num {
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.bento-box:hover .box-num {
    color: #ffffff;
}

.bento-box h2 {
    font-family: 'Syne', sans-serif;
    margin: 20px 0;
    font-size: 2.2rem;
    transition: var(--transition);
}

.bento-box:hover h2 {
    color: #ffffff;
}

.bento-box p {
    transition: var(--transition);
}

.bento-box:hover p {
    color: #aaaaaa;
}

.read-btn {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    width: fit-content;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    transition: left 0.3s ease;
    z-index: -1;
}

.read-btn:hover {
    background: #e0e0e0;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.read-btn:hover::before {
    left: 0;
}

.large {
    grid-column: span 8;
}

.small {
    grid-column: span 4;
}

.medium {
    grid-column: span 6;
}

.full {
    grid-column: span 12;
}

.mission-box {
    background: #000000;
    border: 1px solid #2a2a2a;
}

.mission-box:hover {
    border-color: #3a3a3a;
}

.squad-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.squad-text {
    flex: 1;
}

.squad-img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
    filter: brightness(0.95);
}

.bento-box:hover .squad-img {
    filter: brightness(1.05);
    transform: scale(1.03);
}

/* ================= CONTACT SECTION ================= */
.contact-section {
    padding: 120px 5%;
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid var(--border);
}

.contact-subtitle {
    color: var(--dim);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ================= CONTACT FORM ================= */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form input,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffffff;
    background: #111111;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.form-error {
    font-size: 12px;
    color: #ff4444;
    min-height: 16px;
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out;
}

.form-success-message.show {
    display: block;
}

.form-success-message p {
    color: #ffffff;
    font-weight: 600;
}

/* ================= CONTACT INFO ================= */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: #333333;
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--dim);
}

.contact-item ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item ul li a {
    color: var(--dim);
    font-weight: 400;
}

.contact-item ul li a:hover {
    color: #ffffff;
}

.contact-item p {
    color: var(--dim);
    line-height: 1.8;
}

/* ================= FOOTER ================= */
.footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--dim);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ================= FADE-IN ANIMATION ================= */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards !important;
}

/* ================= KEYBOARD NAVIGATION ================= */
body.keyboard-nav *:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .large,
    .small,
    .medium,
    .full {
        grid-column: span 1;
    }

    .bento-box {
        min-height: auto;
    }

    .squad-flex {
        flex-direction: column;
        text-align: left;
    }

    .squad-img {
        width: 100%;
        height: auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;

    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar {
        padding: 15px 5%;
    }

    .solutions-grid {
        padding: 70px 5%;
    }

    .card-img-box img {
        height: 220px;
    }

    .ticker-track span {
        font-size: 1.4rem;
    }

    .bento-wrapper {
        padding: 80px 5%;
    }

    .bento-box {
        padding: 28px;
    }

    .bento-box h2 {
        font-size: 1.6rem;
    }

    .squad-img {
        height: auto;
        max-width: 100%;
    }

    .contact-section {
        padding: 80px 5%;
    }

    .contact-subtitle {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 120px 5% 80px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 9vw, 3.2rem);
        line-height: 1;
    }

    .badge {
        font-size: 10px;
        padding: 6px 16px;
    }

    .solutions-grid {
        padding: 70px 5%;
    }

    .card-img-box img {
        height: 220px;
    }

    .ticker-track span {
        font-size: 1.4rem;
    }

    .bento-wrapper {
        padding: 80px 5%;
    }

    .bento-box {
        padding: 28px;
    }

    .bento-box h2 {
        font-size: 1.6rem;
    }

    .squad-img {
        height: auto;
        max-width: 100%;
    }

    .contact-section {
        padding: 60px 5%;
    }

    .contact-container {
        gap: 30px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px 14px;
    }

    .submit-btn {
        padding: 12px 30px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .nav-btn,
    .read-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .cta-button {
        padding: 12px 30px;
    }
}