/* CSS Reset & Variables */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Main Layout */
.layout-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; /* Allow scroll if content is too tall */
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) transparent;
}

.profile-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section h3 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    color: var(--accent);
    margin: 1.5rem 0 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-links img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Hero Video in Sidebar */
.hero-video-container {
    margin-top: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: var(--glass-border);
    position: relative;
    padding-top: 100%; /* Square placeholder aspect ratio or adjust as needed */
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Content */
.gallery-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding : 0.5rem;
    border-bottom: 2px solid var(--card-bg);
    display: inline-block;
}

.section-title2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border-bottom: 2px solid var(--card-bg);
    display: inline-block;
}
.comment{
    font-size: 0.5rem;
    font-weight: 400;
    padding: 0.5rem;
}
.desc{
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem;
}

/* Grid Logic */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Optimistic width for vertical */
    gap: 1.5rem;
}

/* Horizontal Grid Overrides */
.horizontal-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Wider for landscape */
}

/* Video Items */
.video-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    position: relative; /* Container for absolute positioned players */
}

/* Aspect Ratio Control */
.aspect-vertical {
    aspect-ratio: 9 / 16;
}

.aspect-horizontal {
    aspect-ratio: 16 / 9;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.2);
    
}

/* Wistia/Plyr/Drive Player styling overrides */
wistia-player, 
.plyr,
.plyr iframe,
.video-item iframe {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    border: none;
}

/* Google Drive Hack: Ultra-Zoom to crop side bars and header/footer */
.aspect-vertical .drive-player {
    width: 316.5%; /* Expanded to crop 16:9 sidebars for 9:16 content */
    height: 109%;  /* Adjusted to show bottom controls */
    position: absolute;
    top: -9%;      /* Shift to hide Google header */
    left: -108.25%; /* Shift to center the 9:16 content */
    border: none;
}

/* Horizontal Drive player - optimized to show bottom controls */
.aspect-horizontal .drive-player {
    width: 100%;
    height: 109%; /* Adjusted so bottom (109-9) = 100% */
    position: absolute;
    top: -9%;     /* Hide top header */
    left: 0;
    border: none;
}

.plyr--video {
    height: 100%;
}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 300px 1fr;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .layout-container {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 2rem;
    }

    .sidebar {
        position: relative;
        top: 0;
        height: auto;
    }

    .profile-card {
        padding: 1.5rem;
        overflow: visible; /* No internal scroll on mobile */
    }

    .hero-video-container {
        margin-top: 1.5rem;
        padding-top: 56.25%; /* 16:9 for mobile maybe? or keep square */
        display: none; /* Often hero video in sidebar is redundant on mobile, but let's keep it or hide it. I'll hide it for cleanliness or style it differently */
    }
    
    /* If we want to show it, remove display:none above */
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile for vertical */
        gap: 1rem;
    }

    .horizontal-grid {
        grid-template-columns: 1fr; /* 1 col for horizontal on mobile */
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr; /* Full width purely on very small screens? Or keep 2 cols? 2 cols for vertical is usually fine on standard mobile, let's keep 2 unless tinny */
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .profile-card h2 {
        font-size: 1.75rem;
    }
}