/*
Theme Name: Clipitstudio
Theme URI: https://clipitstudio.com
Author: Rio
Description: A modern portfolio theme for video editing services
Version: 1.0
*/





/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Jost", sans-serif;
  overflow-x: hidden;
  background-color: #000;
  scroll-behavior: smooth;
}

/* Smooth scrolling for all anchor links */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.navbar-logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* Menu */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar-menu li a {
  text-decoration: none;
  color: #d8e0e8;
  font-size: 1.2rem;
  padding: 5px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navbar-menu li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Toggle Button */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 880px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 220px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 1rem;
    height: calc(100vh - 80px);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}












#main{
    position: relative;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
#page{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page1{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page2{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page3{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
canvas{
    position: relative;
    z-index: 9;
    max-width: 100vw;
    max-height: 100vh;
}
#loop{
    display: flex;
    position: absolute;
    top: 30%;
    height: 25%;
    width: 100%;
    font-size: 100px;
    white-space: nowrap;
    font-family: gilroy;
}
#loop>h1{
    font-weight: 400;
    animation-name: anim;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
#loop>h1>span{
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}
@keyframes anim{
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(-100%);
    }
}
#nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7%;
    width: 100%;
    position: fixed;
    z-index: 99;
    padding: 0px 30px;
}
#nav>h3{
    font-family: gilroy;
    font-weight: 400;
    font-size: 22px;
}
#nav>button{
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #000;
    color: #fff;
    border: none;
}
#page>h3{
    position: absolute;
    top: 55%;
    font-family: gilroy;
    font-weight: 400;
    color: #7c7c7c;
    left: 5%;
}
#page>h4{
    position: absolute;
    top: 62%;
    left: 25%;
    font-family: gilroy;
    font-weight: 500;
}
#page1>#right-text{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page1>#right-text>h3{
    font-weight: 400;
    color: #7c7c7c;
}
#page1>#right-text>h1{
    line-height: 1.5;
    font-size: 50px;
}
#page1>#left-text{
    position: absolute;
    top: 50%;
    right: 10%;
    text-align: end;
}
#page1>#left-text>h1{
    font-size: 50px;
    line-height: 1.5;
}
#page1>#left-text>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page2>#text1{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page2>#text1>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page2>#text1>h1{
    font-size: 60px;
    line-height: 1.5;
}
#page2>#text2{
    position: absolute;
    top: 55%;
    right: 10%;
    text-align: end;
}
#page2>#text2>p{
    color: #7c7c7c;
    font-weight: 400;
}
#page3>#text3{
    position: absolute;
    top: 40%;
    right: 10%;
    text-align: end;
}
#page3>#text3>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page3>#text3>h1{
    font-size: 70px;
}

/* Hide mobile circle image on desktop */
.mobile-circle-image {
    display: none;
}

/* Mobile Responsive Styles for Pages */
@media (max-width: 768px) {
    /* Hide pages on mobile */
    #page,
    #page2,
    #page3 {
        display: none !important;
    }

    /* Page 1 */
    #page1 {
        min-height: 100vh;
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    #page1 > #right-text {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        text-align: center;
    }

    #page1 > #right-text > h3 {
        font-size: 12px;
        margin-bottom: 15px;
    }

    #page1 > #right-text > h1 {
        font-size: 32px;
        line-height: 1.4;
        word-wrap: break-word;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .mobile-circle-image {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        width: 100%;
    }

    .mobile-circle-image .circle-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    #page1 > #left-text {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        text-align: center;
    }

    #page1 > #left-text > h1 {
        font-size: 32px;
        line-height: 1.4;
        margin-bottom: 15px;
        word-wrap: break-word;
        max-width: 100%;
    }

    #page1 > #left-text > h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    canvas {
        max-width: 70vw !important;
        max-height: 40vh !important;
        width: 70vw !important;
        opacity: 0.5;
    }

    #page1 {
        padding: 40px 15px;
        gap: 30px;
    }

    #page1 > #right-text > h1,
    #page1 > #left-text > h1 {
        font-size: 28px;
        word-wrap: break-word;
        max-width: 100%;
    }

    #page1 > #right-text > h3,
    #page1 > #left-text > h3 {
        font-size: 12px;
    }

    .mobile-circle-image .circle-image {
        width: 180px;
        height: 180px;
    }
}

/* About Section */
#about-section {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
    padding: 100px 0;
    overflow: hidden;
}

/* Services Section */
#services {
    position: relative;
    width: 100vw;
    background-color: #f1f1f1;
    padding: 100px 0 60px 0;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-label {
    font-size: 14px;
    font-weight: 400;
    color: #7c7c7c;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.services-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    font-family: gilroy;
    margin-bottom: 12px;
}

.services-title span {
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}

.services-subtitle {
    font-size: 18px;
    color: #7c7c7c;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    font-family: gilroy;
}

.service-desc {
    font-size: 15px;
    color: #7c7c7c;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-title { font-size: 44px; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Projects Section */
#projects {
    position: relative;
    width: 100vw;
    background-color: #f1f1f1;
    padding: 100px 0 80px 0;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-label {
    font-size: 14px;
    font-weight: 400;
    color: #7c7c7c;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.projects-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    font-family: gilroy;
}

.projects-title span {
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}

.projects-subtitle {
    font-size: 18px;
    color: #7c7c7c;
    font-weight: 400;
    margin-top: 10px;
}

.projects-group { margin-top: 40px; }
.projects-group-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 18px;
    font-family: gilroy;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
}

.project-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
}

.project-thumb.long { 
    aspect-ratio: 16 / 9; 
}

.project-thumb::after {
    content: '';
    position: absolute; 
    inset: 0;
    background: radial-gradient(transparent 60%, rgba(0,0,0,0.2));
    opacity: 0; 
    transition: opacity .3s ease;
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.project-card:hover .project-thumb::after { 
    opacity: 1; 
}

.play {
    position: absolute; 
    inset: 0; 
    display: grid; 
    place-items: center;
    pointer-events: none;
}

.play::before {
    content: '';
    width: 64px; 
    height: 64px; 
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    transition: transform .3s ease, background .3s ease;
}

.play::after {
    content: '';
    position: absolute;
    border-left: 14px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 6px;
}

.project-card:hover .play::before { 
    transform: scale(1.08); 
    background: rgba(0,0,0,0.7); 
}

.project-meta {
    padding: 16px 18px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-meta span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.watch-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.long-video-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
}

@media (max-width: 1200px) {
    .projects-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, auto);
    }
    .long-video-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .projects-title { 
        font-size: 48px; 
    }
}
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, auto);
    }
    .long-video-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}
@media (max-width: 640px) {
    .projects-grid { 
        grid-template-columns: 1fr; 
    }
    .video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(15, auto);
    }
    .long-video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
    .projects-title { 
        font-size: 38px; 
    }
    .project-card {
        max-width: 100%;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    width: 100vw;
    background-color: #f1f1f1;
    padding: 100px 0 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-label {
    font-size: 14px;
    font-weight: 400;
    color: #7c7c7c;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    font-family: gilroy;
    margin-bottom: 16px;
}

.contact-title span {
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}

.contact-subtitle {
    font-size: 18px;
    color: #7c7c7c;
    font-weight: 400;
    margin-top: 10px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 500;
    color: #000;
    margin-bottom: 20px;
    font-family: gilroy;
}

.contact-info p {
    font-size: 16px;
    color: #7c7c7c;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #000;
    font-family: gilroy;
}

.email-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.email-btn svg {
    transition: transform 0.3s ease;
}

.email-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 44px;
    }
    .contact-info {
        padding: 40px 30px;
    }
    .contact-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .contact-title {
        font-size: 36px;
    }
    .contact-info {
        padding: 30px 20px;
    }
    .contact-info h2 {
        font-size: 24px;
    }
    .email-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.about-header {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
}

.about-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-title-content {
    flex: 1;
    text-align: left;
}

.about-image-circle {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-label {
    font-size: 14px;
    font-weight: 400;
    color: #7c7c7c;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-title {
    font-size: 80px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    margin-bottom: 20px;
    font-family: gilroy;
}

.about-title span {
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}

.about-subtitle {
    font-size: 18px;
    color: #7c7c7c;
    font-weight: 400;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.portfolio-item {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-image:hover::before {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #d8e0e8;
    font-size: 14px;
}

.portfolio-content h2 {
    font-size: 60px;
    font-weight: 400;
    color: #7c7c7c;
    margin-bottom: 15px;
    font-family: gilroy;
}

.portfolio-content h3 {
    font-size: 28px;
    font-weight: 500;
    color: #000;
    margin-bottom: 15px;
    font-family: gilroy;
}

.portfolio-content p {
    font-size: 16px;
    color: #7c7c7c;
    line-height: 1.6;
    font-weight: 400;
}

/* Stats Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: 60px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
    font-family: gilroy;
}

.stat-item p {
    font-size: 14px;
    color: #7c7c7c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 80px;
        padding-bottom: 60px;
    }
    
    .about-title {
        font-size: 60px;
    }
    
    .about-title-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-title-content {
        text-align: center;
    }
    
    .about-image-circle {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 40px;
    }
    
    .about-title-wrapper {
        gap: 30px;
    }
    
    .about-image-circle {
        width: 200px;
        height: 200px;
    }
    
    .portfolio-image {
        height: 300px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
        padding-bottom: 40px;
    }
    
    .stat-number {
        font-size: 40px;
    }
}