/* Scroll Snap Container */
.scroll-container {
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);

    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-snap-stop: always;
}

/* Sections */
.section {
    height: calc(100vh - var(--navbar-height));
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Section Content with Inner Scroll */
.section-content {
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 120px);

    text-align: center;
    overflow-y: auto;
}

#section1 .section-content {
    height: auto;
    max-height: none;
}

.section-inner-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    width: 100%;

    overscroll-behavior: contain; /* prevents scroll hijack */
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .scroll-container,
    .section {
        height: calc(100svh - var(--navbar-height));
    }

    .section {
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .section-content {
        /* max-height: calc(100svh - 60px); */
        height: 65svh;
        padding: 30px 16px;
    }

    #section2 .about-card p:not(:first-of-type) {
        opacity: 0.75;
        margin-top: 18px;
    }

    #section2 .about-card {
        max-height: 45svh;
        overflow-y: auto;
    }
}

/* Section Dots */
.section-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #fff;
    border: 2px solid #fff;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}


/* Background Images */
#section1 {
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('../img/home-cs.jpeg');
    background-repeat: no-repeat;
    /* background-size: auto 100%; */
    background-position: center;
}

@media (max-width: 768px) {
  #section1 {
    background-size: cover;
  }
}

@media (min-width: 769px) {
  #section1 {
    background-size: contain;
  }
}

#section2 { background-image: url('../img/about-cs.jpeg'); }
#section4 { background-image: url('../img/gallery-background.jpeg'); }

@media (max-width: 768px) {
    #section4 {
        background-size: cover;
        background-position: center;
    }
}

.about-card {
    background: rgba(0, 0, 0, 0.75);
    max-width: 900px;
    padding: 50px;
    border-radius: 12px;
    text-align: left;
    overflow: visible;
}

.projects-section {
    padding: 0;
}

.projects-title {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    letter-spacing: 10px;
}

.projects-split {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.project-block {
    content: '';
    height: 50%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.3s ease;
}

.project-block:hover::before {
    background: rgba(0,0,0,0.6);
}

/* Backgrounds */
.project-block.top {
    background: url('../img/projects-fashion-management-background.jpeg') center/cover no-repeat;
}

.project-block.bottom {
    background: url('../img/projects-fashion-styling-background.jpeg') center/cover no-repeat;
}

.project-arrow {
    position: absolute;
    right: clamp(12px, 3vw, 40px); /* right side */
    top: calc(50% + 30px);
    transform: translateY(-50%);
    width: clamp(60px, 10vw, 90px);
    height: auto;

    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.5;
    fill: none;

    opacity: 0.65;
    pointer-events: none;

    animation: arrowPulseRight 3s ease-in-out infinite;
}

.project-block:hover .project-discover {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0); /* subtle animation if needed */
}

@keyframes arrowPulseRight {
    0% {
        transform: translate(0, -50%);
        opacity: 0.5;
    }
    50% {
        transform: translate(-8px, -50%); /* subtle inward motion */
        opacity: 0.8;
    }
    100% {
        transform: translate(0, -50%);
        opacity: 0.5;
    }
}

.project-discover {
    position: absolute;
    top: calc(50% + 80px); /* under the title/arrow */
    left: 50%;              /* center horizontally */
    transform: translateX(-50%);

    text-align: center;

    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.6;
    text-decoration: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Gallery Section */
.gallery-section {
    display: block;
    align-items: flex-start;
    padding: 120px 60px;
    overflow: hidden;
}

/* Masonry container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.gallery-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* same height as cards */
    width: 100%;
    text-align: center;
    border-radius: 12px;         /* optional styling */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.flash-card {
  width: 100%;
  height: clamp(220px, 30vw, 400px);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 12px;
}

.flash-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  text-align: center;
  padding: 15px;
}

/* Contact Section */
.contact-section {
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1492707892479-7bc8d5a4ee93?w=1600'); 
    background-repeat: no-repeat;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url("../img/contact-bg-placeholder.jpg"); /* optional image */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vw, 16px);
}

/* Contact Icons Row */
.contact-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 0;
    margin: 40px 0 20px;
}

.contact-icons li a {
    color: #fff;
    opacity: 0.85;
    font-size: 2.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icons li a:hover {
    transform: translateY(-4px);
    opacity: 0.75;
}

.response-time {
  font-size: 12px;
  color: #ccc;
  margin-top: 8px;
  text-align: center;
}

/* Right */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding: 14px 5px;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1.5px;

    scroll-snap-align: none;
}

.contact-form textarea {
    min-height: 140px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 1px solid #fff;
}

.contact-form button {
    margin-top: 30px;
    align-self: flex-start;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 14px 36px;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #fff;
    color: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .section.contact-section {
        height: auto;
        overflow: visible;
        display: block;
        background-image: none;
    }

    .contact-container {
        display: contents;
        scroll-snap-type: y mandatory;
    }

    .contact-details,
    .contact-form {
        min-height: calc(100svh - var(--navbar-height));
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;

        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-between;

        padding: 0 20px;
    }

    .contact-details {
        background: rgba(0, 0, 0, 0.65);
        padding: 80px 60px;
    }

    .contact-form {
        background: rgba(255, 255, 255, 0.05);
        padding: 80px 60px;
    }

    .contact-icons {
        justify-content: center;
        gap: 28px;
    }

    .contact-icons li a {
        font-size: 2.5rem;
    }
}
