/* Modern Video Editor Portfolio Styles */
:root {
    --primary: #ff4d4d;
    --primary-dark: #cc0000;
    --dark: #0a0a0a;
    --light: #f8f9fa;
    --gray: #2a2a2a;
    --glass: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Cursor Trailer */
.cursor-trailer {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.film-reel {
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
    animation: spin 1.5s linear infinite;
}

.film-hole {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.film-hole:nth-child(1) {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.film-hole:nth-child(2) {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.film-hole:nth-child(3) {
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 2px;
    background-color: var(--light);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--light);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96%; /* Adjust this value for spacing (smaller = more space) */
    height: 96%; /* Match width for equal spacing */
    transform: translate(-50%, -50%); /* Perfect centering */
    z-index: -1;
    overflow: hidden;
    border-radius: 10px; /* Optional: for rounded corners */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); /* Optional: subtle depth */
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.5));
}

.hero-content {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.typing-text {
    color: var(--primary);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Work Section */
.work {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    color: var(--light);
    border: 1px solid var(--gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-media {
    width: 100%;
    height: 100%;
}

.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-media video {
    transform: scale(1.05);
}

.project-overlay h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background-color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #ccc;
}

/* About Section */
.about {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skills span {
    background-color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background-color: var(--gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: var(--light);
    font-size: 1rem;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        clip-path: circle(0px at 90% -10%);
        transition: clip-path 0.8s ease;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* CSS */
.logo-marquee {
  padding: 50px 0;
  background: #111;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  position: relative;
  pointer-events: none; /* Disables all interaction */
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
  will-change: transform;
}

.logo-item {
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.logo-item img {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.3);
  opacity: 0.7;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Matches duplicate set */
}

/* Responsive */
@media (max-width: 768px) {
  .logo-item {
    padding: 0 20px;
  }
  .logo-item img {
    height: 30px;
  }
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background: #f5f5f5;
  }
  
  .logo-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
    will-change: transform;
  }
  
  .logo-slide {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-slide img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Pause on hover (optional) */
  .logo-carousel:hover .logo-track {
    animation-play-state: paused;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .logo-slide {
      padding: 0 15px;
    }
    .logo-slide img {
      max-width: 100px;
    }
  }