/* 
   Style 2025 - Alex Remonty Redesign 
   Theme: Neo-Construction Modern
*/

:root {
    --neo-primary: #0056b3;
    --neo-primary-dark: #004494;
    --neo-accent: #ff6b00;
    --neo-dark: #1a1a1a;
    --neo-gray: #f4f5f7;
    --neo-text: #333333;
    --neo-text-light: #666666;
    --neo-white: #ffffff;
    --neo-font-main: 'Inter', sans-serif;
    --neo-font-display: 'Oswald', sans-serif;
    --neo-radius-sm: 8px;
    --neo-radius-md: 16px;
    --neo-radius-lg: 24px;
    --neo-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --neo-shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --neo-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET & GLOBAL --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--neo-font-main);
    color: var(--neo-text);
    background-color: var(--neo-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--neo-transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--neo-font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER (Modernized) --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neo-accent);
    transition: var(--neo-transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* --- HERO SECTION (Interactive) --- */
.neo-hero-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: #0f172a; /* Dark fallback */
    color: white;
}

/* Mesh Gradient Animation Background */
.neo-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    opacity: 0.8;
}

.neo-hero-content {
    position: relative;
    z-index: 2;
}

.neo-hero-title {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* JS reveal */
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

/* Custom Swiper 3D Effect */
.neo-hero-slider {
    padding: 20px 0 60px;
    perspective: 1000px;
}

.swiper-slide {
    transition: transform 0.4s;
}

.neo-hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--neo-radius-lg);
    overflow: hidden;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.neo-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.neo-hero-card:hover img {
    transform: scale(1.1);
}

.neo-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateZ(20px);
}

.neo-hero-tag {
    background: var(--neo-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.neo-hero-card-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- SECTIONS COMMON --- */
.neo-section {
    padding: 80px 0;
}

.neo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.neo-section-title {
    font-size: 2.5rem;
    color: var(--neo-dark);
    margin-bottom: 0;
    position: relative;
}

.neo-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--neo-accent);
}

.neo-view-all {
    font-weight: 600;
    color: var(--neo-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.neo-view-all:hover {
    color: var(--neo-accent);
    gap: 12px;
}

/* --- BENTO GRID (Layout A) --- */
.neo-grid-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.neo-card {
    background: white;
    border-radius: var(--neo-radius-md);
    overflow: hidden;
    box-shadow: var(--neo-shadow);
    transition: var(--neo-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.neo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neo-shadow-hover);
}

/* Feature First: 1st item takes 2x2 */
.neo-grid-bento .neo-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Feature First: Card Styles for Big Card */
.neo-grid-bento .neo-card:nth-child(1) .neo-card-img {
    height: 60%;
}
.neo-grid-bento .neo-card:nth-child(1) .neo-card-body {
    padding: 30px;
}
.neo-grid-bento .neo-card:nth-child(1) .neo-card-title {
    font-size: 1.8rem;
}

/* Standard Card in Bento */
.neo-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.neo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.neo-card:hover .neo-card-img img {
    transform: scale(1.1);
}

.neo-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.neo-card-meta {
    font-size: 0.8rem;
    color: var(--neo-text-light);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.neo-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.neo-card-excerpt {
    font-size: 0.9rem;
    color: var(--neo-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MASONRY OFFSET (Layout B) --- */
.neo-grid-masonry {
    column-count: 3;
    column-gap: 30px;
}

.neo-grid-masonry .neo-card {
    display: inline-block; /* Fix for column-count */
    width: 100%;
    margin-bottom: 30px;
}

.neo-grid-masonry .neo-card-img {
    height: auto;
    aspect-ratio: 16/9; /* Consistent but flexible */
}

/* "Staggered" effect simulated by different content lengths naturally in masonry */

/* --- MIRROR BENTO (Layout A Mirror) --- */
.neo-grid-bento.neo-mirror .neo-card:nth-child(1) {
    grid-column: 3 / span 2; /* Moves big item to right */
    grid-row: 1 / span 2;
}

/* --- MAGAZINE LIST (Layout C) --- */
.neo-grid-magazine {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.neo-card-magazine {
    display: flex;
    background: white;
    border-radius: var(--neo-radius-md);
    overflow: hidden;
    box-shadow: var(--neo-shadow);
    transition: var(--neo-transition);
    min-height: 250px;
}

.neo-card-magazine:hover {
    transform: translateX(10px);
}

.neo-card-magazine .neo-card-img {
    flex: 0 0 40%;
    height: auto;
}

.neo-card-magazine .neo-card-body {
    flex: 1;
    padding: 40px;
    justify-content: center;
}

.neo-card-magazine .neo-card-title {
    font-size: 1.8rem;
}

/* --- DYNAMIC FEED SECTION --- */
.neo-dynamic-feed {
    background: #f1f5f9;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--neo-dark);
    color: #a3a3a3;
    padding: 80px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--neo-accent);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .neo-grid-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .neo-grid-bento .neo-card:nth-child(1),
    .neo-grid-bento.neo-mirror .neo-card:nth-child(1) {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .neo-grid-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .neo-hero-title {
        font-size: 2.5rem;
    }
    
    .neo-hero-card {
        height: 350px;
    }

    .neo-grid-bento {
        display: flex;
        flex-direction: column;
    }
    
    .neo-grid-masonry {
        column-count: 1;
    }
    
    .neo-card-magazine {
        flex-direction: column;
    }
    
    .neo-card-magazine .neo-card-img {
        height: 200px;
    }
    
    .main-nav {
        display: none; /* Mobile menu needed */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-icon {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--neo-dark);
        position: relative;
    }
    
    .menu-icon::before, .menu-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--neo-dark);
        left: 0;
    }
    
    .menu-icon::before { top: -8px; }
    .menu-icon::after { top: 8px; }
}

/* --- KEYFRAMES --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- UTILITIES --- */
.neo-badge-cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    color: var(--neo-dark);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
