/* author: https://codepen.io/yudizsolutions/pen/PoLJQOa
Yudiz Solutions Limited */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden;}
img{user-select: none;}

body { 
    overflow-x: hidden; 
    position: relative;
    font-family: 'Montserrat', sans-serif;
    height: 100svh;
    }

a {display: inline-block;}

/*Heading Zone*/
.heading-style-2 {
    color: #FFF; 
    font-size: 50px; 
    font-weight: 900; 
    line-height: 50px; 
    margin-bottom: 40px; 
    transition: color 0.5s ease;
    }

.slider-content h3 {
    color: #FFF; 
    font-size: 50px; 
    font-weight: 900; 
    line-height: 50px; 
    margin-bottom: 40px; 
    transition: color 0.5s ease;
    }

p {
    color: #FFF; 
    font-family: Montserrat; 
    font-size: 18px; 
    font-style: normal; 
    font-weight: 400; 
    line-height: 35px;
    margin-bottom: 28px; 
    transition: color 0.5s ease;
    }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(70px);
    z-index: 99;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 1rem 9%;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: auto;
}

.navbar a {
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
    padding: 10px 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
}

.navbar a:hover,
.navbar a.active {
    color: #fff;
}

/* Colour package */
:root {
    --bg-color: black;
    --second-bg-color: rgb(245, 240, 240);
    --text-color: #fff;
    --main-color: rgb(76, 79, 79);
}

/* logo */
.logo {
    margin-top: 25px;
    padding-top: 25px;
}

.logo a {
    margin-bottom: 90px; 
    margin-top: -10px;
    }

.logo a img {
    width: 271px;
    height: auto;
    }

.slider-main {
    min-height: 700px; 
    background: radial-gradient(50% 50% at 50% 50%, #C7F6D0 0%, #7CB686 92.19%); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
    overflow: hidden; 
    position: relative; 
    z-index: 1; 
    }

#backgrounds { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    z-index: -1; 
    }

.background { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 2s ease-in-out; 
    }

.container {
    position: relative; 
    left: calc(50% - (1140px/2)); 
    width: 50%; 
    padding-block: 100px; 
    max-width: 525px; 
    height: 100%; 
    }

/* content */
.slider-content-wrap {
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    height: 100%;
    }

/* social media */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0.05rem 1.5rem 8rem 0; /* up right down left */
    transition:  .5s ease;
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* images */
.slider-images > img.next{
    opacity: 1;   
    transition: all 2s ease;
    filter: blur(35px); 
    left: 100%; 
    top: 10%;
    transform: translate(-50%, -50%) scale(0.3); 
}
.slider-images > img.active {
    opacity: 1;   
    transform: translate(-50%, -50%) scale(1);
    transition: all 2s ease;
    filter: blur(0px);
    left: 50%;
    top: 50%;
    z-index: 1;
}
.slider-images > img.previous{ 
    opacity: 1; 
    transition: all 2s ease;
    filter: blur(25px); 
    left: 95%; 
    top: 90%;     
}
.slider-images > img.inactive{
    opacity: 0;   
    transition: 2s; 
    filter: blur(35px); 
    left: 100%; 
    top: 100%;
    transform: translate(10%, 10%) scale(0.3);
}
.slider-images { 
    position: relative; 
    width: 50%; 
    height: 100%; 
    top: 0; 
}
.slider-images > img {    
    position: absolute; 
    top: 50%;
    left: 100%;
    filter: blur(25px); 
    transform: translate(-50%, -50%) scale(0.3); 
    transition: all 2s ease;
    object-fit: cover; 
    max-width: 593px; 
    max-height: 779px;
    height: 100%;
    min-height: 320px;
}

/* Price animation */
.price-animation {
    display: inline-flex;
    align-items: center;
    height: 70px;
    position: relative;
    overflow: hidden;
    font-size: 4rem;
    font-weight: 900;
}
.price {
    display: inline-block;
    line-height: 70px;
    transition: all 0.5s ease;
    position: relative;
    font-size: 4rem;
    font-weight: 900;
}
.price.typing {
    animation: typing 0.1s steps(1);
}
.price.deleting {
    animation: deleting 0.05s steps(1);
}

.typing-cursor {
    position: absolute;
    width: 3px;
    height: 60px;
    background-color: currentColor;
    animation: blink 0.7s infinite;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.welcome-text {
    position: absolute;
    left: 50px;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideIn 1s ease forwards;
    color: white;
    margin-right: 20px;
}

/* Detail Section Styles */
.detail-section {
    min-height: 100vh;
    padding: 100px 0;
    transition: background 0.5s ease;
}
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Headphone Showcase Styles */
.headphone-showcase {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.headphone-showcase img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Details Styles */
.headphone-details {
    flex: 1;
    color: #1d1d1f;
}
.headphone-details h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInRight 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ทำให้ราคาเลื่อนเข้ามาช้ากว่าหัวข้อเล็กน้อย */
.headphone-details .price {
    animation: slideInRight 1s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Color Options Styles */
.color-options {
    margin: 30px 0;
}
.color-options h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.color-list {
    display: flex;
    gap: 20px;
}

.color-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
    transition: all 0.3s ease;
}
.color-item.active {
    transform: scale(1.1);
    border: 2px solid #000;
    border-radius: 5px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.color-preview.green {
    background: radial-gradient(50% 50% at 50% 50%, #C7F6D0 0%, #7CB686 92.19%);
}

.color-preview.blue {
    background: radial-gradient(50% 50% at 50% 50%, #D1E4F6 0%, #5F9CCF 100%);
}

.color-preview.black {
    background: radial-gradient(50% 50% at 50% 50%, #6B6B6B 0%, #292929 100%);
}

#selected-headphone {
    max-width: 100%;
    height: auto;
    transform: scale(0.6);
    animation: float 3s ease-in-out infinite;
    position: relative;
    top: -50px;
}

/* Features Styles */
.features {
    margin-top: 40px;
}

.features h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0071e3;
}

.headphone-showcase {
    flex: 1;
    /* จะรับ styles จาก slider เดิม */
}

.headphone-details {
    flex: 1;
    padding: 20px;
}

.color-options {
    margin: 30px 0;
}

.color-list {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.color-item {
    text-align: center;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.features ul {
    margin-top: 15px;
    padding-left: 20px;
}

.features li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* สีต่างๆ สำหรับ color preview */
.color-preview.green { background: #C7F6D0; }
.color-preview.blue { background: #C7DEF6; }
/* เพิ่มสีอื่นๆ ตามต้องการ */

/* ปรับสีตัวอักษรตามพื้นหลัง */
[data-background="green"] .slider-content h3,
[data-background="green"] p {
    color: #1a4726;
}

[data-background="blue"] .slider-content h3,
[data-background="blue"] p {
    color: #1a2847;
}

/* Theme Colors */
.green-theme .slider-content h3,
.green-theme .slider-content p,
.green-theme .price,
.green-theme .typing-cursor,
.green-theme .heading-style-2 {
    color: #1a4726 !important;
    transition: color 0.5s ease;
}

.blue-theme .slider-content h3,
.blue-theme .slider-content p,
.blue-theme .price,
.blue-theme .typing-cursor,
.blue-theme .heading-style-2 {
    color: #1a2847 !important;
    transition: color 0.5s ease;
}

.red-theme .slider-content h3,
.red-theme .slider-content p,
.red-theme .price,
.red-theme .typing-cursor,
.red-theme .heading-style-2 {
    color: #471a1a !important;
    transition: color 0.5s ease;
}

/* เพิ่ม theme สีเทา */
.gray-theme .slider-content h3,
.gray-theme .slider-content p,
.gray-theme .price,
.gray-theme .typing-cursor,
.gray-theme .heading-style-2 {
    color: #4c4f4f !important; /* สีเทาเข้ม */
    transition: color 0.5s ease;
}

/* เพิ่ม theme สีขาวสำหรับพื้นหลังสีดำ */
.black-theme .slider-content h3,
.black-theme .slider-content p,
.black-theme .price,
.black-theme .typing-cursor,
.black-theme .heading-style-2 {
    color: #ffffff !important;
    transition: color 0.5s ease;
}

/* สีพื้นหลังสำหรับแต่ละสี */
.detail-section.green-bg {
    background: radial-gradient(50% 50% at 50% 50%, #C7F6D0 0%, #7CB686 92.19%);
}

.detail-section.blue-bg {
    background: radial-gradient(50% 50% at 50% 50%, #D1E4F6 0%, #5F9CCF 100%);
}

.detail-section.black-bg {
    background: radial-gradient(50% 50% at 50% 50%, #6B6B6B 0%, #292929 100%);
}

/* ปรับสีข้อความตามพื้นหลัง */
.detail-section.black-bg .headphone-details {
    color: #ffffff;
}

.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn i {
    font-size: 1.2rem;
}

.buy-now {
    background-color: #000;
    color: white;
    flex: 1;
}

.buy-now:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.add-to-cart {
    background-color: white;
    color: #000;
    border: 2px solid #000;
    flex: 1;
}

.add-to-cart:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-section .price-animation {
    display: inline-flex;
    align-items: center;
    height: 70px;
    position: relative;
    overflow: hidden;
    font-size: 3.5rem;
    font-weight: 900;
}

.detail-section .price {
    display: inline-block;
    line-height: 70px;
    transition: all 0.5s ease;
    position: relative;
    font-size: 3.5rem;
    font-weight: 900;
}

.detail-section .price.typing {
    animation: typing 0.1s steps(1);
}

.detail-section .price.deleting {
    animation: deleting 0.05s steps(1);
}

.detail-section .typing-cursor {
    display: none;
}

/* เพิ่ม style สำหรับสีแดงและสีขาว */
.color-preview.red {
    background: radial-gradient(50% 50% at 50% 50%, #FFB7B2 0%, #ED746E 100%);
}

.color-preview.white {
    background: radial-gradient(50% 50% at 50% 50%, #D7D7D7 0%, #979797 100%);
    border: 1px solid #ccc;
}

/* เพิ่มพื้นหลังสำหรับสีใหม่ */
.detail-section.red-bg {
    background: radial-gradient(50% 50% at 50% 50%, #FFB7B2 0%, #ED746E 100%);
}

.detail-section.white-bg {
    background: radial-gradient(50% 50% at 50% 50%, #D7D7D7 0%, #979797 100%);
}

/* Styles for quantity selector modal */
.quantity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #1d1d1f;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #1d1d1f;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #f5f5f7;
    border-radius: 8px;
    outline: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #1d1d1f;
    color: white;
}

.cancel-btn {
    background: #f5f5f7;
    color: #1d1d1f;
}

.confirm-btn:hover, .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Overview Section */
.overview-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 200px 20px; /* เพิ่ม หรือ ลด padding-top เพื่อ ปรับตำเเหน่ง ต่างๆ ใน overview section   */
    transition: background 0.5s ease;
    background: radial-gradient(50% 50% at 50% 50%, #C7F6D0 0%, #7CB686 92.19%);
}

.overview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 3D Headphone Container */
.headphone-3d-container {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px;
    perspective: 1200px;
}

.rotate-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px; /* เพิ่ม perspective เพื่อให้เห็นมิติการหมุนชัดเจนขึ้น */
}

#rotating-headphone {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg); /* เปลี่ยนจาก rotateY เป็น rotateX */
    transition: transform 0.5s ease;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Arrow Navigation */
.arrow-nav {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-nav i {
    font-size: 2rem;
    color: #fff;
}

.arrow-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Product Details */
.product-details {
    text-align: center;
    margin-top: 50px;
    color: #fff;
}

.product-details h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.features-list i {
    font-size: 1.5rem;
    color: #4CAF50;
}

/* ========================= media query ============================== */
@media screen and (max-width: 1199px) {
    .logo a img{width: 230px;}
    .heading-style-2{font-size: 40px; line-height: 45px; margin-bottom: 30px; }
    p{font-size: 17px; line-height: 28px; margin-bottom: 22px;}
    .container{left: calc(50% - (920px/2)); padding-block: 80px; max-width: 475px; }   
    .slider-images > img {width: 453px; height: auto;aspect-ratio: 1/1.3;}    
}
@media screen and (max-width: 991px) {
    .logo a img{width: 210px;}
    .heading-style-2{font-size: 35px; line-height: 43px; margin-bottom: 22px;}
    p{font-size: 16px; line-height: 26px; margin-bottom: 18px;}
    .container{left: calc(50% - (720px/2)); padding-block: 70px; max-width: 405px; } 
    .slider-images{width: 45%;}  
    .slider-images > img {width: 340px;aspect-ratio: 1/1.3;}    
}
@media screen and (max-width: 767px) {
    .logo a img{width: 200px;}
    .logo a{margin-bottom: 20px;}
    .slider-main{flex-direction: column;min-height: 900px;}
    .social-icons a{width: 35px;height: 35px;}
    .social-icons img{width: 16px;height: 16px;}
    .container{position: unset; padding-block: 70px; max-width: 540px;width: 100%; } 
    .slider-images{width: 100%;}  
    .slider-images > img {height: 380px;aspect-ratio: 1/1.3; width: auto;} 
    .slider-images > img.active{top: 45%;left: 20%;}   
}
@media screen and (max-width: 575px) {
    .logo a img{width: 180px;}
    .logo a{margin-bottom: 18px;}
    .heading-style-2{font-size: 30px; line-height: 40px; margin-bottom: 20px;}
    p{font-size: 15px; line-height: 24px; margin-bottom: 16px;}
    .social-icons a{width: 32px;height: 32px;}
    .social-icons img{width: 15px;height: 15px;}
    .container{padding: 50px 20px 50px 20px; max-width: 100%;} 
    .slider-images > img {height: 100px;} 
    .slider-images > img.active{top: 50%;left: 5%;}
    .slider-images > img.previous{top: 100%;}   
}

/* ปรับ responsive */
@media (max-width: 991px) {
    .header {
        padding: 1.5rem 4%;
    }
    .navbar {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.2rem 4%;
    }
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 1.5rem;
        transition: 0.3s ease;
    }
    .navbar.active {
        left: 0;
    }

    /* Responsive Design */
    .detail-container {
        flex-direction: column;
        text-align: center;
    }

    .color-list {
        justify-content: center;
    }

    .features li {
        text-align: left;
    }

    /* สำหรับ responsive design */
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .headphone-3d-container {
        width: 300px;
        height: 300px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

/* หรือถ้าต้องการปรับขนาดแบบ responsive */
@media screen and (max-width: 768px) {
    #selected-headphone {
        transform: scale(0.4); /* ลดขนาดลงมากกวาเดิมในหน้าจอขนาดเล็ก */
        top: -30px;
    }
}

@keyframes typing {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes deleting {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Dimension Labels */
.dimension-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.width-label {
    top: 90%;
    left: -15%;
    transform: translate(-100%, -50%);
}

.height-label {
    top: -23%;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 0.8rem;
    white-space: nowrap;
}

.depth-label {
    top: 90%;
    right: -15%;
    transform: translate(100%, -50%);
}

/* Service Section */
.service-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #f6f6f9;
    margin-bottom: 3rem;
}

.service-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.service-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.service-icon {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    color: white;
    font-size: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.service-card p {
    color: #86868b;
    margin-bottom: 20px;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.service-details i {
    color: #4CAF50;
}

.service-button {
    display: inline-block;
    padding: 12px 25px;
    background: #1d1d1f;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.service-button:hover {
    background: #2d2d2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-container {
        flex-direction: column;
    }
    
    .service-card {
        width: 100%;
    }
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #1d1d1f;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle-container {
    text-align: center;
    color: #86868b;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.subtitle-left, .subtitle-right {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.subtitle-left {
    transform: translateX(-50px);
}

.subtitle-right {
    transform: translateX(50px);
}

.subtitle-left.visible, .subtitle-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-subtitle {
    text-align: center;
    color: #86868b;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    gap: 20px;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group.full-width {
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: none;
    min-height: 120px;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    color: #86868b;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group textarea + label {
    top: 25px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #1d1d1f;
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.1);
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:valid + label,
.input-group textarea:valid + label {
    top: 0;
    font-size: 0.8rem;
    color: #1d1d1f;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d1d1f;
    transition: all 0.3s ease;
}

.input-group input:focus ~ .focus-border,
.input-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    align-self: center;
    padding: 15px 40px;
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #1a7a94, #5bc1d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 147, 176, 0.4);
}

.submit-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .contact-container {
        padding: 30px;
    }
}

/* Footer Styles */
.footer {
    background-color: #000000;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 1rem;
}

.footer-content p {
    margin: 8px 0;
}

.scroll-top {
    background: #ffffff;
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-top i {
    font-size: 24px;
}

.scroll-top:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
}

