/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5em;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1em;
    color: #a0aec0;
    font-style: italic;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.intro-section h2 {
    font-size: 2.5em;
    color: #2d3748;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 1.2em;
    color: #718096;
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: #2d3748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2d3748;
}

.category-card p {
    color: #718096;
    margin-bottom: 20px;
}

.arrow {
    font-size: 1.5em;
    color: #667eea;
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-card:hover .arrow {
    transform: translateX(10px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: white;
    color: #667eea;
}

/* Work Grid */
.work-grid {
    display: grid;
    gap: 50px;
    margin-top: 40px;
}

.work-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.work-media {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-media iframe,
.work-media video {
    width: 100%;
    height: 100%;
    min-height: 315px;
    border: none;
    display: block;
}

/* Style for vertical/portrait videos (shorts format) */
.vertical-video .work-media video {
    width: auto;
    max-width: 35%;
    height: auto;
    max-height: 375px;
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-details h3 {
    font-size: 1.8em;
    color: #2d3748;
    margin-bottom: 15px;
}

.work-details .client {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.work-details .description {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.work-details .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 20px;
}

.gallery-item-info h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.gallery-item-info p {
    color: #718096;
    font-size: 0.95em;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .tagline {
        font-size: 1em;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        grid-template-columns: 1fr;
    }

    .work-media iframe,
    .work-media video {
        min-height: 250px;
    }

    /* Vertical videos take reduced width on mobile */
    .vertical-video .work-media video {
        max-width: 75%;
        max-height: 300px;
    }

    .intro-section h2 {
        font-size: 2em;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .category-card {
        padding: 30px 20px;
    }

    .work-details {
        padding: 25px;
    }
}