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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header - Enhanced */
header {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 123, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #007bff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li {
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #00d4ff;
}

/* Hero Section - Enhanced */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    animation: float 20s infinite linear;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease-out;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #aaa;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.cta-button {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Portfolio - Enhanced */
#portfolio {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

.tabs {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tab-button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button.active {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.tab-button:hover:not(.active) {
    border-color: rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.video-item video {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
}

.video-item p {
    font-size: 1.1rem;
    color: #ddd;
    margin-top: 1rem;
}




.long-video-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
.long-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}




/* Testimonials - Enhanced */
#testimonials {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 123, 255, 0.3);
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.testimonial cite {
    color: #00d4ff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Teams - Enhanced */
#teams {
    padding: 6rem 5%;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #007bff, #00d4ff) border-box;
    padding: 3px;
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-member p {
    color: #00d4ff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Packages - Enhanced */
#packages {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.package {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.package:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, #007bff, #00d4ff);
}

.package h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.package p {
    font-size: 1.3rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    font-weight: 600;
}

.package .cta-button {
    margin-top: 1.5rem;
}

/* Footer - Enhanced */
footer {
    padding: 3rem 5%;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Section Headers */
h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Subtitles */
section > p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        padding: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .video-grid,
    .testimonial-grid,
    .team-grid,
    .package-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-item,
    .testimonial,
    .team-member,
    .package {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0056b3, #00b8e6);
}

/* Add these to your styles.css */
.portrait-video {
    aspect-ratio: 9/16;
    width: 300px; /* Adjust as needed */
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    margin: 0 auto;
}

.landscape-video {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 400px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    margin: 0 auto;
}

.video-ratio {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-placeholder {
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.shorts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.video-item p {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}






/* Portfolio Page Styles - Simplified */
.portfolio-main {
    margin-top: 80px;
}

.portfolio-hero {
    padding: 6rem 5% 4rem;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        transparent 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.stat h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Navigation */
.portfolio-nav {
    padding: 2rem 5%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.portfolio-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.portfolio-btn.active {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.portfolio-btn:hover:not(.active) {
    border-color: rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

/* Portfolio Sections */
.portfolio-section {
    display: none;
    padding: 4rem 5%;
    animation: fadeIn 0.5s ease;
}

.portfolio-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.video-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.video-badge span {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-info .category {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

.video-info p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.portfolio-cta p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.portfolio-cta .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #aaa;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00d4ff;
}

/* Active state for menu */
nav a.active {
    color: #00d4ff;
}

nav a.active::after {
    width: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Portfolio */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 5rem 5% 3rem;
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-stats {
        gap: 1.5rem;
    }
    
    .stat {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .portfolio-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat {
        width: 100%;
        max-width: 250px;
    }
    
    .portfolio-nav {
        padding: 1.5rem 5%;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
}






/* Portfolio Section Styles */
#portfolio {
    padding: 4rem 2rem;
    background: #0e0e0e;
}

#portfolio h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 0.8rem 2rem;
    border: none;
    background: #e9ecef;
    color: #495057;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #dee2e6;
}

/* Video Grid - Responsive Layout */
.video-grid {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* SHORTS GRID - Desktop optimization */
.shorts-grid {
    /* Mobile first: 1 column */
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns for shorts */
@media (min-width: 768px) {
    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns for shorts */
@media (min-width: 1200px) {
    .shorts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* LARGE Desktop: 4 columns for shorts (when space allows) */
@media (min-width: 1600px) {
    .shorts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* LANDSCAPE GRID - Different sizing */
.landscape-grid {
    /* Mobile: 1 column */
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns for landscape */
@media (min-width: 768px) {
    .landscape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns for landscape */
@media (min-width: 1200px) {
    .landscape-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Video Items */
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PORTRAIT VIDEOS (Shorts) */
.portrait-video {
    aspect-ratio: 9/16;
    width: 100%;
    max-width: 320px; /* Max width for desktop */
    min-width: 280px; /* Min width for smaller screens */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portrait-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* LANDSCAPE VIDEOS */
.landscape-video {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 500px; /* Wider for landscape */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landscape-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-placeholder span {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    text-align: center;
}

.video-ratio {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-item p {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container adjustments for better desktop layout */
@media (min-width: 768px) {
    #portfolio {
        padding: 5rem 3rem;
    }
    
    .video-item p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    #portfolio {
        padding: 6rem 4rem;
    }
    
    .tabs {
        margin-bottom: 4rem;
    }
    
    .tab-button {
        font-size: 1.2rem;
        padding: 1rem 2.5rem;
    }
}