/* 
 * Autokton AI - Ultra-Premium Light Blue & White Design System
 * Created: July 2026
 */

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-ice: #f0f7ff;
    
    --primary: #3b82f6; /* Autokton AI Logo Blue */
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(59, 130, 246, 0.15);
    
    --text-slate: #0f172a; /* Dark slate */
    --text-muted: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 30px 50px -15px rgba(59, 130, 246, 0.15), 0 10px 15px -5px rgba(59, 130, 246, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-white);
    color: var(--text-slate);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Glowing Spheres */
.ambient-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.sphere-1 {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
}

.sphere-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(255,255,255,0) 70%);
}

.sphere-3 {
    top: 35%;
    left: 15%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(255,255,255,0) 70%);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-white);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.35);
    filter: brightness(1.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.01);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-slate);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo span span {
    color: var(--primary);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Main Section Styling */
.portfolio-container {
    padding-top: 170px;
    padding-bottom: 100px;
}

.intro-section {
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.intro-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 18px;
    color: var(--text-slate);
}

.intro-section h1 span {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Filter Bar Styling */
.filter-section {
    margin-bottom: 55px;
}

.filter-container {
    display: flex;
    justify-content: center;
}

.filter-bar {
    display: inline-flex;
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.filter-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-slate);
}

.filter-tab.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Video Grid layout */
.portfolio-grid-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.video-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-hover);
}

.video-preview-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #0f172a;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
}

.video-card:hover .video-cover {
    transform: scale(1.05);
    opacity: 0.15; /* Fade out image to show video beneath */
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.video-card:hover .portfolio-video {
    opacity: 1; /* Fade video in when card is hovered */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.05) 50%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    transition: var(--transition-smooth);
}

.video-card:hover .video-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0.35) 100%);
}

.category-tag {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--text-slate);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.play-icon {
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-slate);
}

.video-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.55;
}

.video-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta i {
    color: var(--primary);
    margin-right: 4px;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.close-lightbox:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f172a;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.lightbox-content video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.lightbox-desc {
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    padding: 24px;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 45px 0;
    margin-top: 90px;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Scroll Animation Styles */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 12px 0;
    }
    
    .header {
        height: auto;
        padding-bottom: 14px;
    }
    
    .portfolio-container {
        padding-top: 190px;
    }
}

@media (max-width: 480px) {
    .video-preview-wrapper {
        height: 340px;
    }
}
