/* Custom Font - YekanBakh */
@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakh-Regular.woff2') format('woff2'),
         url('fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakh-Bold.woff2') format('woff2'),
         url('fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakh-ExtraBlack.woff2') format('woff2'),
         url('fonts/YekanBakh-ExtraBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Base Settings */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    color: #1a1a1a;
    -webkit-overflow-scrolling: touch;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.7s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* Hero Section Override */
.hero-section.reveal.active {
    transition-delay: 0s !important;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    height: 75px;
}

.header-logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #000;
    margin: 0;
    letter-spacing: -1px;
}

/* Desktop Nav */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #8b7355;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 60px 25px 25px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay.open {
    right: 0;
}

.mobile-overlay a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero-section {
    width: 100%;
    margin-top: 75px;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 700vh;
    max-height: 860px;
    min-height: 380px;
    object-fit: cover;
    object-position: center -450px;
    display: block;
}

/* Guide Text */
.welcome-title {
    text-align: center;
    margin: 50px 20px 35px;
}

.welcome-title p {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin: 0;
}

/* Form & Horizontal Scroll Cards Container */
form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.items-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.items-wrapper::-webkit-scrollbar {
    display: none;
}

/* Feature Items Cards */
.feature-item-btn {
    flex: 0 0 320px;
    min-height: 480px;
    background: transparent;
    border: none;
    padding: 25px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: right;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    border-radius: 12px;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item-btn:hover {
    transform: scale(1.015);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-plant { background-color: #264A31; }
.card-skin { background-color: #F27D16; }
.card-files { background-color: #333333; }
.card-kaizen { background-color: #7A1723; }

/* Card Image Box */
.feature-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    transform: scale(0.9);
}

.feature-item-btn:hover .feature-img-box img {
    transform: scale(1.0);
}

.feature-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.feature-info h3 {
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.feature-info p {
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.9); 
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.btn-create-tag {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 8px 22px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
    align-self: flex-start;
}

.feature-item-btn:hover .btn-create-tag {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Action Button */
.btn-info-tag {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 30px;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1a1a1a;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info-tag:hover {
    background-color: #333333;
}

/* Info Sections */
.info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 90px 8%;
    width: 100%;
    gap: 50px;
}

.info-section.bg-beige {
    background-color: #f9f6f0;
}

.info-section.bg-white {
    background-color: #ffffff;
}

.info-content {
    flex: 1;
}

.info-content h2 {
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.5;
}

.info-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content ul li {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.7;
    position: relative;
    padding-right: 22px;
}

.info-content ul li::before {
    content: "•";
    color: #8b7355;
    font-size: 20px;
    position: absolute;
    right: 0;
    top: -2px;
}

.info-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    object-fit: cover;
}

/* Bottom Action Buttons */
.bottom-action-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 70px;
}

.action-btn {
    display: inline-block;
    padding: 13px 38px;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-manage { background-color: #8b7355; }
.btn-manage:hover { background-color: #725e45; }

.btn-login { background-color: #1a1a1a; }
.btn-login:hover { background-color: #333333; }

/* Enamad Container */
.enamad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.enamad-box {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
}

.enamad-box img, .enamad-box a {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 18px;
        height: 60px;
    }
    .header-logo h1 {
        font-size: 21px;
    }
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-section {
        margin-top: 60px;
    }
    .hero-section img {
        height: 48vh;
        min-height: 260px;
        object-fit: cover;
        object-position: top center;
    }
    .welcome-title {
        margin: 25px 15px 20px;
    }
    .welcome-title p {
        font-size: 15px;
    }
    
    .items-wrapper {
        gap: 15px;
        padding: 10px 16px;
        scroll-padding: 0 16px;
    }
    .feature-item-btn {
        flex: 0 0 280px; 
        min-height: 440px;
        padding: 20px 18px;
    }
    .feature-img-box {
        height: 160px;
        margin-bottom: 15px;
    }
    .feature-info h3 {
        font-size: 20px;
    }
    .feature-info p {
        font-size: 13px;
    }
    .btn-create-tag {
        font-size: 12px;
        padding: 8px 18px;
    }
    
    /* Responsive Info Sections */
    .info-section {
        flex-direction: column;
        padding: 50px 20px;
        gap: 30px;
        text-align: center;
    }
    .info-section.bg-white {
        flex-direction: column;
    }
    .info-content ul li {
        text-align: right;
    }

    .bottom-action-container {
        margin-bottom: 40px;
    }
    .action-btn {
        padding: 11px 28px;
        font-size: 13px;
    }
    .enamad-container {
        position: relative;
        bottom: auto;
        right: auto;
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
    }
    .enamad-box {
        width: 58px;
        height: 58px;
    }
}
