/* Services Section - Exact Design Match */

/* Import FrameHead Font */
@font-face {
    font-family: "FrameHead-Roman";
    src: url("../fonts/FrameHead-Roman-Web.woff2") format("woff2"),
         url("../fonts/FrameHead-Roman-Web.woff") format("woff");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "rand-md";
    src: url("../fonts/Rand-Medium.woff2") format("woff2"), 
         url("../fonts/Rand-Medium.woff") format("woff");
    font-style: normal;
}

@font-face {
    font-family: "rand-rg";
    src: url("../fonts/Rand-Regular.woff2") format("woff2"), 
         url("../fonts/Rand-Regular.woff") format("woff");
    font-style: normal;
}

/* Services Header Styling */
.services-header {
    background: #ffffff;
    padding: 40px;
    text-align: center;
    padding-top: 100px;
}

.services-main-title {
    font-family: 'FrameHead-Roman', serif;
    font-size: clamp(2.2rem, 6vw, 7.75rem);
    font-weight: 400;
    color: rgb(0, 0, 0);
}

.services-main-footer {
    padding-top: 50px;
    font-family: 'FrameHead-Roman', serif;
    font-size: 4rem;
    font-weight: 400;
    color: rgb(0, 0, 0);
    opacity: 1;
}

.services-subtitle {
    font-family: 'rand-rg', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(0, 0, 0);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.6s;
}

.services-header.animate .services-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .services-header {
        padding: 60px 0;
    }
    
    .services-main-title {
        font-size: 2.5rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-header {
        padding: 40px 0;
    }
    
    .services-main-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 0.9rem;
        padding: 0 20px;
    }
}

.services-section {
    position: relative;
}

.service-item {
    position: relative;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

/* Parallax Background */
.service-item::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0px));
}

/* Background Images for each service - Parallax */
.service-item:nth-child(1)::before {
    background-image: url('../images/services/service1.webp');
}

.service-item:nth-child(2)::before {
    background-image: url('../images/services/service2.webp');
}

.service-item:nth-child(3)::before {
    background-image: url('../images/services/service3.webp');
}

.service-item:nth-child(4)::before {
    background-image: url('../images/services/service4.webp');
}

.service-item:nth-child(5)::before {
    background-image: url('../images/services/service5.webp');
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    width: 100%;
    max-width: none;
    padding: 0 25px;
}

.service-number {
    font-size: clamp(0.4rem, 1.5vw, 1.6rem);
    font-weight: 800;
    color: white;
    font-family: 'rand-md', sans-serif;
    position: absolute;
    top: 85px;
    left: 25px;
    letter-spacing: 0.1em;
}

.service-line {
    width: calc(100vw - 60px);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.637);
    position: absolute;
    top: 120px;
    left: 25px;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    height: 100vh;
    padding-top: 130px;
}

.service-left {
    padding-right: 80px;
}

.service-title {
    font-size: clamp(2.5rem, 6vw, 7rem);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 0.9;
    color: white;
    font-family: 'FrameHead-Roman', serif;
    letter-spacing: -0.02em;
}

.service-description {
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: absolute;
    bottom: 50px;
    left: 25px;
    max-width: 900px;
    font-family: 'rand-rg', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.service-right {
    padding-top: 0;
    padding-left: 10px;
    position: relative;
    top: 0;
}

.service-examples {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.example-row {
    display: flex;
    gap: 0px;
    margin-bottom: 4px;
}

.example-item {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 0;
    line-height: 1.4;
    font-family: 'rand-rg', sans-serif;
    font-weight: 400;
    flex: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.example-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-title {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 0 40px;
    }
    
    .service-number {
        left: 40px;
    }
    
    .service-line {
        left: 40px;
        width: calc(100vw - 80px);
    }
    
    .service-description {
        left: 40px;
    }
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 150px;
    }
    
    .service-right {
        padding-left: 0;
        padding-top: 40px;
    }
    
    .service-title {
        font-size: 3rem;
    }
    
    .service-description {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 40px;
        max-width: 100%;
    }
    
    .example-row {
        gap: 15px;
    }
    
    .example-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .service-item {
        min-height: 100vh;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .service-number {
        font-size: 0.9rem;
        top: 40px;
        left: 30px;
    }
    
    .service-line {
        top: 80px;
        left: 30px;
        width: calc(100vw - 60px);
    }
    
    .service-layout {
        padding-top: 120px;
        gap: 40px;
    }
    
    .service-title {
        font-size: 2.5rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
        left: 30px;
        bottom: 20px;
    }
    
    .example-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .example-item {
        font-size: 0.8rem;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .service-number {
        left: 20px;
    }
    
    .service-line {
        left: 20px;
        width: calc(100vw - 40px);
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-layout {
        padding-top: 100px;
    }
    
    .service-description {
        left: 20px;
        font-size: 0.85rem;
        bottom: 15px;
    }
    
    .example-item {
        font-size: 0.75rem;
    }
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .service-item::before {
        transform: translateY(0px) !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-item::before {
        transform: translateY(0px) !important;
    }
}

