/* ==========================================================================
   DEA Theme - Enhanced CSS
   Typography improvements, vertical slider nav, alternative project grid
   ========================================================================== */

/* ==========================================================================
   Typography Improvements (matching deayapi.com)
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.main-navigation a {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* ==========================================================================
   Left Sticky Sidebar (Phone + Social)
   ========================================================================== */
.fixed-sidebar-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fixed-sidebar-left .sidebar-phone {
    background: var(--dea-red);
    color: var(--dea-white);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 12px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.fixed-sidebar-left .sidebar-phone:hover {
    background: var(--dea-red-dark);
}

.fixed-sidebar-left .sidebar-phone i {
    transform: rotate(90deg);
}

.fixed-sidebar-left .sidebar-social {
    background: var(--dea-dark);
    display: flex;
    flex-direction: column;
}

.fixed-sidebar-left .sidebar-social a {
    padding: 12px;
    color: var(--dea-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.fixed-sidebar-left .sidebar-social a:last-child {
    border-bottom: none;
}

.fixed-sidebar-left .sidebar-social a:hover {
    background: var(--dea-red);
}

/* ==========================================================================
   Right Sticky Sidebar (Quick Links)
   ========================================================================== */
.fixed-sidebar-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fixed-sidebar-right a {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dea-dark);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 12px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.fixed-sidebar-right a:hover {
    background: var(--dea-red);
    color: var(--dea-white);
}

.fixed-sidebar-right a i {
    transform: rotate(90deg);
}

.fixed-sidebar-right .sidebar-video {
    background: var(--dea-dark);
    color: var(--dea-white);
}

.fixed-sidebar-right .sidebar-video:hover {
    background: var(--dea-red);
}

/* ==========================================================================
   Hero Slider Enhancements
   ========================================================================== */
.hero-slider {
    margin-left: 45px;
    margin-right: 45px;
}

.hero-slide-content {
    position: absolute;
    bottom: 150px;
    left: 80px;
    top: auto;
    transform: none;
    text-align: left;
    max-width: 650px;
}

.hero-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.hero-slide-subtitle {
    font-size: 0.85rem;
    background: var(--dea-red);
    display: inline-block;
    padding: 10px 25px;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Outline Background Text */
.hero-outline-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 12rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    text-stroke: 1px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.05em;
}

/* Hero Buttons */
.hero-slide-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-slide-btn-outline {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--dea-white);
    color: var(--dea-white);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.hero-slide-btn-outline:hover {
    background: var(--dea-white);
    color: var(--dea-dark);
}

/* Vertical Navigation (Right Side) */
.hero-vertical-nav {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 10;
}

.hero-vertical-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.hero-vertical-nav-item .nav-number {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-vertical-nav-item .nav-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
}

.hero-vertical-nav-item.active,
.hero-vertical-nav-item:hover {
    color: var(--dea-white);
}

.hero-vertical-nav-item.active .nav-line,
.hero-vertical-nav-item:hover .nav-line {
    width: 50px;
    background: var(--dea-red);
}

/* Bottom Navigation Area */
.hero-bottom-nav {
    position: absolute;
    bottom: 40px;
    left: 80px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.hero-slider-nav {
    position: static;
    transform: none;
}

.hero-slider-arrows {
    position: static;
    transform: none;
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-arrow:hover {
    background: var(--dea-red);
    border-color: var(--dea-red);
}

/* Years Badge */
.hero-years-badge {
    position: absolute;
    right: 180px;
    bottom: 150px;
    text-align: center;
    color: var(--dea-white);
}

.hero-years-badge .number {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-years-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--dea-white);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator .scroll-text {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.scroll-indicator .scroll-icon {
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Projects Section - Alternative Grid Layout
   ========================================================================== */
.projects-grid-alt {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
}

.projects-grid-alt .project-card:nth-child(1),
.projects-grid-alt .project-card:nth-child(2) {
    grid-column: span 6;
}

.projects-grid-alt .project-card:nth-child(1) .project-image,
.projects-grid-alt .project-card:nth-child(2) .project-image {
    height: 400px;
}

.projects-grid-alt .project-card:nth-child(n+3) {
    grid-column: span 4;
}

.projects-grid-alt .project-card:nth-child(n+3) .project-image {
    height: 280px;
}

/* Project Card Enhancements */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    background: var(--dea-white);
}

.project-card .project-image {
    position: relative;
    overflow: hidden;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(210, 10, 17, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ==========================================================================
   Stats Section Enhancements
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--dea-dark) 0%, #0a0a0a 100%);
}

.stat-item {
    position: relative;
    padding: 40px 30px;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-top: 10px;
}

/* ==========================================================================
   Page Header & Content
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--dea-dark) 0%, var(--dea-dark-lighter) 100%);
    color: var(--dea-white);
    position: relative;
}

.page-header .breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: var(--dea-gray);
}

.page-header .breadcrumb a:hover {
    color: var(--dea-red);
}

.page-header .breadcrumb .separator {
    margin: 0 10px;
    color: var(--dea-gray);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Archive & Posts Grid
   ========================================================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--dea-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.post-card .post-image {
    height: 220px;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-content {
    padding: 25px;
}

.post-card .post-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.post-card .post-title a:hover {
    color: var(--dea-red);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dea-red);
    font-weight: 600;
}

.read-more:hover {
    gap: 12px;
}

/* ==========================================================================
   AOS Custom Animations
   ========================================================================== */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

/* Loading Animation */
body:not(.loaded) {
    overflow: hidden;
}

body.loaded .hero-slide-content,
body.loaded .hero-years-badge,
body.loaded .hero-vertical-nav {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-outline-text {
        font-size: 8rem;
    }

    .hero-years-badge {
        right: 100px;
    }

    .hero-vertical-nav {
        right: 40px;
    }
}

@media (max-width: 1024px) {

    .fixed-sidebar-left,
    .fixed-sidebar-right {
        display: none;
    }

    .hero-slider {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-slide-content {
        left: 40px;
        bottom: 100px;
    }

    .hero-outline-text {
        display: none;
    }

    .hero-vertical-nav {
        display: none;
    }

    .hero-bottom-nav {
        left: 40px;
        right: 40px;
    }

    .hero-years-badge {
        display: none;
    }

    .projects-grid-alt .project-card:nth-child(1),
    .projects-grid-alt .project-card:nth-child(2) {
        grid-column: span 6;
    }

    .projects-grid-alt .project-card:nth-child(n+3) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .hero-slide-content {
        left: 20px;
        right: 20px;
        bottom: 120px;
    }

    .hero-slide-title {
        font-size: 2rem;
    }

    .hero-slide-buttons {
        flex-direction: column;
    }

    .hero-bottom-nav {
        left: 20px;
        right: 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .posts-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid-alt .project-card {
        grid-column: span 12 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 1.75rem;
    }

    .hero-slide-btn,
    .hero-slide-btn-outline {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}