/* Custom Styles & Animations */

:root {
    --ag-green: #2D5A27;
    --ag-green-light: #45a049;
    --ag-dark: #0F172A;
    --ag-slate: #334155;
    --ag-light: #FFFFFF;
    --ag-neon: #C2FF00;
}

/* Global Reset & Base */
body {
    background-color: var(--ag-light);
    color: var(--ag-dark);
    font-family: 'Century Gothic', 'Inter', sans-serif;
}

.brand-font {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
}

/* Specific text color for sections */
.text-phosphor {
    color: var(--ag-green);
    text-shadow: 0 0 10px rgba(45, 90, 39, 0.2);
}

/* Navbar adjustments */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

#navbar.scrolled .brand-font,
#navbar.scrolled .hover\:text-ag-green {
    color: var(--ag-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar glass effect */
#navbar.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ag-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ag-green);
}

/* Feature Cards */
.feature-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    border-color: rgba(45, 90, 39, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Form Styles */
input::placeholder,
select::placeholder {
    color: #94a3b8;
}

/* Smooth active state for form inputs */
input:focus,
select:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

/* New 50/50 Section Styles */
.section-50-50 {
    display: flex;
    flex-direction: column;
    padding: 80px 24px;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .section-50-50 {
        flex-direction: row;
        padding: 120px 48px;
        min-height: 80vh;
    }

    /* Device Image LEFT / Text RIGHT (Sections 2, 4, 6) */
    .section-50-50.even-section {
        flex-direction: row;
    }

    /* Text LEFT / Device Image RIGHT (Sections 3, 5) */
    .section-50-50.odd-section {
        flex-direction: row-reverse;
    }

    .section-content {
        flex: 1;
        padding: 0 40px;
    }

    .section-image {
        flex: 1.2;
    }
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: left;
}

.section-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ag-dark);
}

.section-content .subtitle {
    font-size: 1.125rem;
    color: var(--ag-green);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ag-slate);
}

.section-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-content li {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ag-slate);
    position: relative;
    padding-left: 28px;
}

.section-content li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--ag-green);
    font-size: 0.8em;
    top: 0.4em;
}

.section-image {
    width: 100%;
    max-width: 700px;
}

.mockup-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15), 0 20px 40px -20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
}

.mockup-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-container:hover img {
    transform: scale(1.03);
}

/* Comparative Table Styles */
.comp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comp-table th {
    background: var(--ag-green);
    color: white;
    text-align: left;
    padding: 16px;
    font-weight: 600;
}

.comp-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--ag-slate);
}

.comp-table tr:last-child td {
    border-bottom: none;
}

.comp-table tr:hover {
    background: rgba(45, 90, 39, 0.03);
}

/* Section specific background variations */
section:nth-of-type(even) {
    background-color: #f8fafc;
}

section:nth-of-type(odd) {
    background-color: #ffffff;
}

/* --- Bento Grid Section --- */
.bento-section {
    padding: 8rem 0;
    overflow: hidden;
}

.bento-container-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(45, 90, 39, 0.15);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-v2-1 {
    grid-area: 1 / 1 / 3 / 3;
}

/* C6: Large 2x2 */
.bento-v2-2 {
    grid-area: 1 / 3 / 2 / 5;
}

/* C7: Wide Top */
.bento-v2-3 {
    grid-area: 2 / 3 / 4 / 4;
}

/* C8: Tall */
.bento-v2-4 {
    grid-area: 2 / 4 / 3 / 5;
}

/* C9: Square */
.bento-v2-5 {
    grid-area: 3 / 4 / 4 / 5;
}

/* C10: Square */
.bento-v2-text {
    grid-area: 3 / 1 / 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {
    .bento-container-v2 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-v2-1,
    .bento-v2-2,
    .bento-v2-3,
    .bento-v2-4,
    .bento-v2-5,
    .bento-v2-text {
        grid-area: auto;
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    .bento-container-v2 {
        grid-template-columns: 1fr;
    }
}

/* --- Operational Control Section --- */
.operational-control-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: var(--ag-light);
    /* Light background for black title */
}

.operational-control-section .glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.operational-control-section .content-wrapper {
    position: relative;
    z-index: 10;
}

.operational-control-section .main-image-container {
    position: relative;
    margin: 4rem auto;
    max-width: 1200px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(45, 90, 39, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.operational-control-section .main-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.data-accent-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--ag-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ag-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 15px var(--ag-green);
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 25px var(--ag-green);
    }
}

.control-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.control-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}

.control-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(45, 90, 39, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.control-card h3 {
    color: var(--ag-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.control-card p {
    color: var(--ag-slate);
    font-size: 1rem;
    line-height: 1.6;
}

.data-accent-dot:nth-child(2) {
    top: 20%;
    left: 15%;
}

.data-accent-dot:nth-child(3) {
    top: 45%;
    left: 52%;
}

.data-accent-dot:nth-child(4) {
    top: 75%;
    left: 85%;
}

.data-accent-dot:nth-child(5) {
    top: 30%;
    left: 70%;
}

/* --- Software Showcase Section --- */
.mockup-phone {
    max-width: 320px;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-phone:hover {
    transform: scale(1.02) translateY(-10px);
}

.mockup-phone img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#software-showcase .reveal {
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .mockup-phone {
        max-width: 280px;
    }
}

/* --- Tablet Mockup Styles --- */
.mockup-tablet {
    max-width: 560px;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-tablet:hover {
    transform: scale(1.02) translateY(-8px);
}

.mockup-tablet img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .mockup-tablet {
        max-width: 100%;
    }
}

/* --- About Us / Leadership Section --- */
.about-leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-leader-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.about-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -12px rgba(45, 90, 39, 0.15);
    border-color: rgba(45, 90, 39, 0.2);
}

.about-leader-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.about-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-leader-card:hover .about-leader-photo img {
    transform: scale(1.05);
}

.about-leader-info {
    padding: 1.5rem 1.75rem 2rem;
}

.about-leader-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ag-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.about-leader-role {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ag-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.about-leader-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ag-slate);
    font-weight: 300;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1024px) {
    .about-leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .about-leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-leader-info {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}