/* Premium Color Palette & Variables */
:root {
    --primary-color: #8B6F8E;
    --primary-dark: #6B4F6E;
    --primary-light: #AB8FAE;
    --secondary-color: #C4A962;
    --secondary-dark: #A48942;
    --accent-color: #E8DCC4;
    --dark-color: #2C2C2E;
    --darker-color: #1C1C1E;
    --light-color: #FDFCFA;
    --gray-color: #6C6C70;
    --border-color: rgba(139, 111, 142, 0.15);
    --gradient-1: linear-gradient(135deg, #8B6F8E 0%, #C4A962 100%);
    --gradient-2: linear-gradient(135deg, #2C2C2E 0%, #4C4C4E 100%);
    --gradient-3: linear-gradient(135deg, #C4A962 0%, #E8DCC4 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, #AB8FAE 0px, transparent 50%),
                     radial-gradient(at 80% 0%, #E8DCC4 0px, transparent 50%),
                     radial-gradient(at 0% 50%, #C4A962 0px, transparent 50%),
                     radial-gradient(at 80% 50%, #8B6F8E 0px, transparent 50%),
                     radial-gradient(at 0% 100%, #6B4F6E 0px, transparent 50%);
    --shadow-sm: 0 2px 4px 0 rgba(44, 44, 46, 0.05);
    --shadow-md: 0 8px 16px -4px rgba(44, 44, 46, 0.1), 0 4px 8px -2px rgba(44, 44, 46, 0.06);
    --shadow-lg: 0 20px 30px -8px rgba(44, 44, 46, 0.15), 0 8px 16px -4px rgba(44, 44, 46, 0.08);
    --shadow-xl: 0 32px 48px -12px rgba(44, 44, 46, 0.2), 0 16px 24px -8px rgba(44, 44, 46, 0.1);
    --shadow-glow: 0 0 40px rgba(139, 111, 142, 0.3);
    --shadow-gold: 0 0 30px rgba(196, 169, 98, 0.4);
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Allow tracking line to exceed all boundaries */
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

/* Advanced Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code Tag Loader */
.code-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 120px;
    height: 80px;
}

.code-symbol {
    font-family: 'Poppins', monospace;
    font-size: 48px;
    font-weight: 700;
    color: white;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.2));
}

/* Initial Positions & Smooth Movement */
.less-than {
    left: 20px;
    animation: move-up 2.5s ease-in-out infinite;
}

.slash {
    left: 50%;
    transform: translateX(-50%);
    /* Slash stays completely still - no animation */
}

.greater-than {
    right: 20px;
    animation: move-down 2.5s ease-in-out infinite;
}

/* Smooth Movement Animations */
@keyframes move-up {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-25px); 
    }
}

@keyframes move-down {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(25px); 
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section - CONTAINED BACKGROUND */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Remove since body now has padding-top */
    background: var(--light-color);
    /* Ensure background stays within hero */
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Contain background within hero section */
    clip-path: inset(0);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Morphing Gradient Background */
.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-mesh);
    animation: morphing 20s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes morphing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) scale(1.1); }
    66% { transform: rotate(240deg) scale(0.9); }
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.hero-container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: visible;
}

/* Hero Text Minimal Styling */
.hero-text {
    position: relative;
    z-index: 10;
    padding-right: 40px;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-line {
    display: block;
    overflow: hidden;
    position: relative;
}

.hero-line span {
    display: inline-block;
    animation: slideInChar 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes slideInChar {
    from {
        transform: translateY(100%) rotateX(-80deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--gray-color);
    margin-bottom: 50px;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 111, 142, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 111, 142, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 111, 142, 0.3);
}

.btn-white {
    background: white;
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background: white;
    color: var(--dark-color);
    border-color: white;
    transform: translateY(-3px);
}

/* CTA Section Button Overrides for Better Contrast */
.cta .btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta .btn-white:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.6);
    border-color: white;
}

.cta .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.cta .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: visible !important;
}

/* Animation Content - UNRESTRICTED */
.animation-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    padding: 40px;
    overflow: visible !important;
}

.animation-container {
    width: 100%;
    max-width: 700px;
    margin-right: 40px;
    position: relative;
    pointer-events: auto;
    overflow: visible !important;
    z-index: 10;
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    width: 2px;
    height: 50px;
    background: var(--border-color);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.scroll-down span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services-preview {
    background: linear-gradient(135deg, rgba(139, 111, 142, 0.05) 0%, rgba(196, 169, 98, 0.05) 100%);
    margin-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
}

.service-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    position: relative;
    margin-bottom: 30px;
}

.icon-bg {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    color: var(--gray-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Stats Section */
.stats {
    background: var(--dark-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-suffix {
    display: inline;
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-preview {
    background: var(--light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 44, 46, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    color: white;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

.portfolio-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 111, 142, 0.4);
}

.portfolio-link svg {
    width: 20px;
    height: 20px;
}

/* CTA Section */
.cta {
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Responsive Layout Fixes */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 50% 50%;
        gap: 20px;
    }

    .animation-content {
        width: 50%;
        padding-right: 20px;
    }

    .animation-container {
        margin-right: 20px;
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        height: 45vh;
        min-height: 350px;
    }

    .hero-text {
        padding-right: 0;
        max-width: 100%;
    }

    .animation-content {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 45vh;
        min-height: 350px;
        padding-right: 0;
        order: -1;
        justify-content: center;
    }

    .animation-container {
        margin-right: 0;
        margin: 0 auto;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
    }

    .hero-visual {
        height: 40vh;
        min-height: 300px;
    }

    .hero-container {
        gap: 30px;
    }

    .animation-content {
        height: 40vh;
        min-height: 300px;
    }

    .animation-container {
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 20px 15px;
    }

    .hero-visual {
        height: 35vh;
        min-height: 280px;
    }

    .animation-content {
        height: 35vh;
        min-height: 280px;
    }

    .animation-container {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px 10px;
    }

    .hero-visual {
        height: 30vh;
        min-height: 250px;
    }

    .animation-content {
        height: 30vh;
        min-height: 250px;
    }

    .animation-container {
        max-width: 320px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* YouTube Videos Section */
.youtube-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 50%, #16213e 100%);
    overflow: hidden;
}

.youtube-section .space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.youtube-section .nebula-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(196, 169, 98, 0.1) 0%, transparent 70%);
    animation: nebula-pulse 8s ease-in-out infinite;
}

.youtube-section .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #C4A962, transparent),
        radial-gradient(2px 2px at 40px 70px, #E8DCC4, transparent),
        radial-gradient(1px 1px at 50px 50px, #8B6F8E, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: float-elements 20s linear infinite;
    opacity: 0.3;
}

@keyframes nebula-pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes float-elements {
    from { transform: translateY(0); }
    to { transform: translateY(-300px); }
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.youtube-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(44, 44, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 169, 98, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.youtube-card:hover {
    transform: translateY(-10px);
    border-color: rgba(196, 169, 98, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(196, 169, 98, 0.2);
}

.youtube-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(139, 111, 142, 0.1) 0%, rgba(196, 169, 98, 0.1) 100%);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.youtube-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    opacity: 0;
}

.youtube-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(196, 169, 98, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 32px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(232, 220, 196, 0.3);
}

.play-button:hover {
    background: rgba(232, 220, 196, 1);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(196, 169, 98, 0.6);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(196, 169, 98, 0.1), transparent);
    animation: rotate-glow 8s linear infinite;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.youtube-card:hover .video-glow {
    opacity: 1;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #C4A962 0%, #E8DCC4 100%);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(196, 169, 98, 0.3);
}

/* Dual Video Card Styles */
.dual-video-card {
    /* Same size as regular cards - no spanning */
}

.dual-video-card:hover {
    /* Disable main card hover to allow individual video hover effects */
    transform: none;
    box-shadow: var(--shadow-lg);
}

.dual-video-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    pointer-events: none; /* Disable pointer events on container */
}

.dual-video-container .half-video {
    pointer-events: auto; /* Enable pointer events on individual videos */
}

.half-video {
    position: relative;
    width: 100%;
    padding-bottom: 28.125%; /* 32:9 aspect ratio for stacked videos */
    overflow: hidden;
}

.half-video .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.half-video .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.half-video .play-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.half-video .play-button svg {
    width: 16px;
    height: 16px;
}

/* Individual hover transitions for each half-video */
.half-video {
    transition: var(--transition-smooth);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.half-video:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 30px rgba(196, 169, 98, 0.3);
    z-index: 10;
}

.half-video:not(:hover) {
    transform: translateY(0) scale(1);
    box-shadow: none;
    z-index: 1;
}

.half-video:hover .video-thumbnail img {
    transform: scale(1.1);
}

.half-video:not(:hover) .video-thumbnail img {
    transform: scale(1);
}

.half-video:hover .play-overlay {
    opacity: 1;
}

.half-video:not(:hover) .play-overlay {
    opacity: 0;
}

.half-video:hover .video-glow {
    opacity: 1;
}

.half-video:not(:hover) .video-glow {
    opacity: 0;
}

.half-video:hover .play-button {
    background: rgba(232, 220, 196, 1);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(196, 169, 98, 0.6);
}

.half-video:not(:hover) .play-button {
    background: rgba(196, 169, 98, 0.9);
    transform: scale(1);
    box-shadow: none;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.3s ease-out;
}

.video-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    z-index: 2;
    animation: modal-scale-in 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(196, 169, 98, 0.2);
    border: 1px solid rgba(196, 169, 98, 0.4);
    border-radius: 50%;
    color: #E8DCC4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(196, 169, 98, 0.3);
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.video-embed-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .youtube-card.featured {
        grid-column: span 2;
    }
    
    .dual-video-container {
        grid-template-rows: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .youtube-section {
        padding: 80px 0;
    }
    
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }
    
    .youtube-card.featured {
        grid-column: span 2;
    }
    
    .dual-video-container {
        grid-template-rows: 1fr 1fr;
        gap: 6px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 20px;
    }
    
    .modal-close {
        top: -40px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .youtube-section {
        padding: 60px 0;
    }
    
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 30px;
    }
    
    .youtube-card.featured {
        grid-column: span 2;
    }
    
    .dual-video-container {
        gap: 4px;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .play-button svg {
        width: 18px;
        height: 18px;
    }
    
    .half-video .play-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .half-video .play-button svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================
   Blog Preview Section 
   ======================== */
.blog-preview-section {
    background: linear-gradient(135deg, rgba(36, 36, 46, 0.98) 0%, rgba(28, 28, 38, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(196, 169, 98, 0.2);
    position: relative;
    overflow: hidden;
    margin: 80px 0;
    padding: 50px;
}

.blog-preview-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(196, 169, 98, 0.05) 0%, rgba(139, 111, 142, 0.05) 100%);
    opacity: 0.05;
    animation: gradient-shift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.blog-preview-section .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.blog-preview-section .section-title {
    font-size: 1.8rem;
    color: #E8DCC4;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-preview-section .section-description {
    color: #d1d1d6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 400px));
    gap: 30px;
    position: relative;
    z-index: 1;
    justify-content: center;
}

.blog-preview-card {
    background: rgba(22, 33, 62, 0.4);
    border: 2px solid rgba(196, 169, 98, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    border-color: #C4A962;
    background: rgba(22, 33, 62, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.blog-preview-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 169, 98, 0.9) 0%, rgba(139, 111, 142, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-preview-card:hover .blog-preview-overlay {
    opacity: 1;
}

.blog-preview-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.blog-preview-link:hover {
    background: white;
    color: #8B6F8E;
    transform: scale(1.05);
}

.blog-preview-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-preview-link:hover svg {
    transform: translateX(3px);
}

.blog-preview-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 169, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-preview-card:hover .blog-preview-glow {
    opacity: 1;
}

.blog-preview-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.blog-preview-category {
    background: linear-gradient(135deg, #C4A962 0%, #8B6F8E 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.blog-preview-date,
.blog-preview-time {
    color: #C4A962;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-preview-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.blog-preview-time::before {
    content: '⏱️';
    font-size: 0.8rem;
}

.blog-preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    height: auto;
    min-height: 3.2rem;
}

.blog-preview-title a {
    color: #E8DCC4;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-title a:hover {
    color: #C4A962;
}

.blog-preview-excerpt {
    color: #d1d1d6;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 169, 98, 0.2);
    margin-top: auto;
}

.blog-preview-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-preview-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(196, 169, 98, 0.3);
}

.author-preview-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C4A962 0%, #8B6F8E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    border: 2px solid rgba(196, 169, 98, 0.3);
}

.author-preview-name {
    font-weight: 600;
    color: #E8DCC4;
    font-size: 0.9rem;
}

.blog-preview-stats {
    font-size: 0.85rem;
    color: #C4A962;
    font-weight: 500;
}

.blog-preview-views::before {
    content: '👁️';
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Empty State */
.blog-preview-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: rgba(22, 33, 62, 0.4);
    border-radius: 20px;
    border: 2px dashed rgba(196, 169, 98, 0.3);
}

.empty-blog-icon {
    width: 80px;
    height: 80px;
    color: #C4A962;
    margin: 0 auto 20px;
    stroke-width: 1.5;
}

.blog-preview-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #E8DCC4;
    font-weight: 700;
}

.blog-preview-empty p {
    color: #d1d1d6;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Actions */
.blog-preview-actions {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.blog-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #C4A962 0%, #8B6F8E 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(196, 169, 98, 0.3);
}

.blog-view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.blog-view-all-btn:hover::before {
    left: 100%;
}

.blog-view-all-btn:hover {
    background: linear-gradient(135deg, #8B6F8E 0%, #C4A962 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(196, 169, 98, 0.4);
}

.blog-view-all-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog-view-all-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 420px));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-preview-section {
        padding: 30px 20px;
        margin: 60px 0;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .blog-preview-card {
        max-width: 100%;
        height: 550px;
    }
    
    .blog-view-all-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-preview-section {
        padding: 20px 15px;
        margin: 40px 0;
    }
    
    .blog-preview-section .section-title {
        font-size: 1.5rem;
    }
    
    .blog-preview-section .section-description {
        font-size: 0.9rem;
    }
    
    .blog-preview-grid {
        gap: 1rem;
    }
    
    .blog-preview-card {
        height: 480px;
    }
    
    .blog-preview-content {
        padding: 20px;
    }
    
    .blog-preview-title {
        font-size: 1.1rem;
    }
    
    .blog-preview-empty {
        padding: 60px 20px;
    }
    
    .empty-blog-icon {
        width: 60px;
        height: 60px;
    }
    
    .blog-preview-empty h3 {
        font-size: 1.25rem;
    }
    
    .blog-view-all-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}