/*
Theme Name: One Aepex Theme
Theme URI: https://oneaepex.com
Author: One Aepex Group
Author URI: https://oneaepex.com
Description: Custom theme for Aepex Technology website.
Version: 1.0
License: Proprietary
*/

:root {
    /* Colors */
    --color-bg: #000000;
    --color-text: #f5f5f7;
    --color-text-dim: #86868b;
    --color-primary: #0071e3;
    --color-secondary: #1d1d1f;
    --color-slate: #424245;
    --color-silver: #a1a1a6;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 44px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Bar Styling Compatibility */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links li {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dim);
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--color-text);
}

.chevron {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.3s ease;
}

/* Dropdown styling */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    padding: 8px 24px;
    display: block;
    width: 100%;
    font-size: 13px;
    color: var(--color-silver);
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background-color: var(--color-text);
}

/* Sections */
.section {
    padding: 160px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-sm {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 50% 100%, rgba(17, 17, 17, 0.8) 0%, #000 100%),
        url('assets/hero_bg.png');
    /* Asset path adjusted for theme later, keep existing for now as pure css */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(0, 113, 227, 0.3));
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-silver);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 17px;
    border-radius: 40px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-slate);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-visual-mesh {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 113, 227, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 80%, black, transparent);
    opacity: 0.3;
}

/* Authority */
.authority-text {
    font-size: 21px;
    color: var(--color-silver);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Services */
.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 21px;
    color: var(--color-text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--color-secondary);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--color-slate);
    border-radius: 12px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-silver);
    line-height: 1.6;
}

.section-footer {
    margin-top: 60px;
    text-align: center;
}

.btn-link {
    color: var(--color-primary);
    font-weight: 500;
    position: relative;
}

.btn-link::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 40px;
    }

    .section {
        padding: 100px 0;
    }
}

/* Logo Slider */
.logo-slider {
    background: #000;
    overflow: hidden;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-title {
    text-align: center;
    font-size: 14px;
    color: var(--color-silver);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.6;
}

.logo-track-container {
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    width: 100%;
    position: relative;
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 80px;
    animation: slide 30s linear infinite;
}

.logo-item {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    opacity: 0.3;
    letter-spacing: 4px;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
    user-select: none;
}

.logo-item:hover {
    opacity: 0.8;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonials-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 60px;
    color: var(--color-primary);
    position: absolute;
    top: 40px;
    left: 60px;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.grid-3 .testimonial-content {
    font-size: 17px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.author-info p {
    font-size: 13px;
    color: var(--color-silver);
}

.testimonial-single {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-single .quote-icon {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1024px) {

    .testimonials-grid,
    .testimonials-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 40px;
    }
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: block;
}

.process-step h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

/* Industries Section */
.industries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.industry-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px 40px;
    border-radius: 50px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

/* Vision Section */
.vision {
    background: #000;
}

.vision-card {
    background: linear-gradient(145deg, #1d1d1f, #000);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.division-snapshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.division-item {
    padding: 20px;
    border-left: 2px solid var(--color-slate);
}

.division-item.active {
    border-left-color: var(--color-primary);
}

.status {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-top: 8px;
    display: block;
}

/* Footer */
.footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

/* Specific spacing for the last column (Follow Us) */
.footer-col:last-child li {
    margin-bottom: 16px;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-text-dim);
    font-size: 12px;
}

.footer-col a:hover {
    color: var(--color-text);
}

/* Subpage Styling */
.subpage .header {
    background: rgba(29, 29, 31, 0.8);
}

.breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.service-hero {
    padding-top: 160px;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.details-content {
    max-width: 800px;
}

.details-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.details-content p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-silver);
    margin-bottom: 40px;
}

.cta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin-top: 80px;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 17px;
    margin-bottom: 32px;
}

/* Industry Detail Page Styling */
.industry-detail-section {
    padding: 120px 0;
    overflow: hidden;
}

.industry-detail-section.alternate {
    background: rgba(255, 255, 255, 0.01);
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.industry-text h2 {
    font-size: 40px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.industry-text p {
    font-size: 18px;
    color: var(--color-silver);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.industry-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}