/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --accent-color: #fbbf24;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-accent: #374151;
    --border-color: #4b5563;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #f59e0b, #10b981);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.8;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.loader-text {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2em;
}

.loader-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.5s both;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    animation: progressLoad 3s ease-in-out;
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.show {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-accent);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.hero-content {
    animation: fadeInLeft 1s ease 0.5s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-line {
    display: block;
}

.hero-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.role {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.graphics-designer {
    background: var(--gradient-primary);
    color: white;
}

.motion-artist {
    background: var(--gradient-accent);
    color: white;
}

.role:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.role-divider {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.7s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

[data-theme="dark"] .profile-card {
    background: rgba(17, 24, 39, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card:hover::before {
    opacity: 1;
    animation: gradientShift 4s ease infinite;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Specialty Sections */
.specialty-section {
    padding: 6rem 0;
    position: relative;
}

.specialty-section:nth-child(even) {
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.media-showcase {
    margin-top: 3rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.media-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    animation: float 6s ease-in-out infinite;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.media-item:hover::before {
    opacity: 1;
}

.media-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.media-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.media-item:hover::before {
    opacity: 1;
    animation: gradientShift 4s ease infinite;
}

.image-container,
.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container::after,
.video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .image-container::after,
.media-item:hover .video-placeholder::after {
    opacity: 1;
}

.image-container img,
.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    position: absolute;
    font-size: 3rem;
    color: white;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.media-item:hover .video-placeholder i {
    transform: scale(1.2);
    opacity: 1;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.media-item:hover .media-overlay {
    transform: translateY(0);
}

.media-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.media-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.media-item:hover .image-container img,
.media-item:hover .video-placeholder img {
    transform: scale(1.1);
}

/* Works Section */
.works-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.brand-navigation {
    margin-bottom: 3rem;
}

.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-tab {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

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

.brand-tab:hover::before,
.brand-tab.active::before {
    opacity: 1;
}

.brand-tab.active,
.brand-tab:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.brand-works {
    display: none;
}

.brand-works.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.works-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: var(--bg-primary);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.work-item:hover::before {
    opacity: 1;
}

.work-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.work-preview {
    position: relative;
    height: 400px;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-preview::after {
    opacity: 1;
}

.work-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-item:hover .work-preview img {
    transform: scale(1.1);
}

/* Specific preview sizes */
.social-preview {
    height: 500px;
}

.logo-preview {
    height: 400px;
    background: linear-gradient(135deg, 
        var(--bg-accent) 0%,
        var(--bg-primary) 100%);
}

.logo-preview img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.work-item:hover .logo-preview img {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 30px rgba(99, 102, 241, 0.3));
}

.commercial-preview {
    height: 250px;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview i {
    position: absolute;
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.work-item:hover .video-preview i {
    transform: scale(1.2);
    opacity: 1;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0);
    transition: transform 0.3s ease;
}

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

.work-item:hover .work-overlay i {
    transform: scale(1);
}

.work-info {
    padding: 1.5rem;
}

.work-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.work-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-body {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-body img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-body video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

.social-lightbox {
    width: 400px;
    height: 500px;
}

.motion-lightbox {
    width: 300px;
    height: 533px;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: gradientShift 4s ease infinite;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features span {
    background: var(--bg-accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-features span {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* Showreel Section */
.showreel-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.showreel-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: var(--bg-accent);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-button i {
    font-size: 2rem;
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.video-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.video-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.showreel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.social-links {
    margin-top: 1rem;
}

.social-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    position: relative;
    overflow: hidden;
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    z-index: 1;
}

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

.social-link:hover::before {
    left: 0;
}

.social-link i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: white;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
}

[data-theme="dark"] .contact-form-container {
    background: rgba(17, 24, 39, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-form-container:hover::before {
    opacity: 1;
    animation: gradientShift 4s ease infinite;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-accent);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--bg-accent);
    padding: 0 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not([value=""]) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 0%,
        rgba(99, 102, 241, 0.02) 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-left h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Elegant section transitions */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(99, 102, 241, 0.03) 50%,
        transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-roles {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .brand-tab {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .showreel-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .video-overlay h3 {
        font-size: 1.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .social-preview {
        height: 400px;
    }
    
    .logo-preview {
        height: 300px;
    }
    
    .commercial-preview {
        height: 200px;
    }
    
    .social-lightbox {
        width: 300px;
        height: 375px;
    }
    
    .motion-lightbox {
        width: 200px;
        height: 355px;
    }
    
    /* Disable animations on mobile */
    .profile-card,
    .media-item,
    .service-card,
    section::before {
        animation: none;
    }
    
    .work-item::before,
    .work-preview::after,
    .btn::before,
    .social-link::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .social-lightbox {
        width: 250px;
        height: 312px;
    }
    
    .motion-lightbox {
        width: 150px;
        height: 266px;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Add to your existing CSS file */

/* Motion Graphics Preview Styles */
.motion-preview {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.motion-preview .video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motion-preview .video-preview i {
    position: absolute;
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.work-item:hover .motion-preview .video-preview i {
    transform: scale(1.2);
    opacity: 1;
    background: rgba(99, 102, 241, 0.8);
}

.motion-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-item:hover .motion-preview img {
    transform: scale(1.1);
}

/* Lightbox video styles */
.video-lightbox {
    width: 960px;
    height: 540px;
}

@media (max-width: 768px) {
    .motion-preview {
        height: 200px;
    }
    
    .motion-preview .video-preview i {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .video-lightbox {
        width: 320px;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .motion-preview {
        height: 150px;
    }
    
    .video-lightbox {
        width: 280px;
        height: 158px;
    }
}

/* Add to your existing CSS file */

/* Motion Graphics Grid */
.motion-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

/* Motion Graphics Preview Styles */
.motion-preview {
    position: relative;
    width: 100%;
    height: 280px; /* Increased from 250px */
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
}

.motion-preview .video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-large {
    position: absolute;
    font-size: 3.5rem; /* Larger play button */
    color: white;
    z-index: 2;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
    width: 80px; /* Larger button */
    height: 80px; /* Larger button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.work-item:hover .play-button-large {
    transform: scale(1.2);
    opacity: 1;
    background: rgba(99, 102, 241, 0.8);
}

.motion-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-item:hover .motion-preview img {
    transform: scale(1.1);
}

.work-item.motion-post .work-overlay {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item.motion-post .work-overlay i {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.work-item.motion-post .work-overlay p {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* Lightbox video styles */
.video-lightbox {
    width: 1200px; /* Wider video lightbox */
    max-width: 95vw;
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-lightbox .video-player-container {
    position: relative;
    width: 100%;
    background: black;
    height: 675px; /* 16:9 aspect ratio for 1200px width */
}

.video-lightbox video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.video-lightbox .video-info {
    padding: 2rem;
    background: var(--bg-secondary);
    text-align: center;
}

.video-lightbox .video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-lightbox .video-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.image-lightbox {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Brand tabs larger */
.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.brand-tab {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 2.5rem; /* Larger padding */
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem; /* Larger font */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    min-width: 180px; /* Minimum width for tabs */
    text-align: center;
}

/* Works section larger */
.works-section {
    padding: 8rem 0; /* Increased padding */
    background: var(--bg-secondary);
}

.category-title {
    font-size: 2.5rem; /* Larger category title */
    font-weight: 700;
    margin-bottom: 3rem; /* More spacing */
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

/* Section header larger */
.section-header {
    text-align: center;
    margin-bottom: 5rem; /* More spacing */
}

.section-title {
    font-size: 3.5rem; /* Larger title */
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .motion-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .motion-preview {
        height: 240px;
    }
    
    .play-button-large {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }
    
    .video-lightbox {
        width: 90vw;
        height: auto;
    }
    
    .video-lightbox .video-player-container {
        height: 506px; /* 16:9 for 900px width */
    }
    
    .brand-tab {
        padding: 1rem 2rem;
        min-width: 160px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .motion-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .motion-preview {
        height: 220px;
    }
    
    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .video-lightbox {
        width: 95vw;
    }
    
    .video-lightbox .video-player-container {
        height: 337px; /* 16:9 for 600px width */
    }
    
    .brand-tabs {
        gap: 1rem;
    }
    
    .brand-tab {
        padding: 0.8rem 1.5rem;
        min-width: 140px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .motion-preview {
        height: 200px;
    }
    
    .play-button-large {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .video-lightbox .video-player-container {
        height: 253px; /* 16:9 for 450px width */
    }
    
    .video-lightbox .video-info {
        padding: 1.5rem;
    }
    
    .video-lightbox .video-info h3 {
        font-size: 1.5rem;
    }
    
    .brand-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .brand-tab {
        width: 100%;
        max-width: 250px;
    }
}