/* Kinara Timber - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #4A3425;
    --secondary-brown: #8B6F47;
    --light-cream: #F5F1E8;
    --dark-brown: #2B1810;
    --accent-green: #6B8E4E;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    padding-top: 100px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(74, 52, 37, 0.1);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-brown);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-brown);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-brown);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2B1810 0%, #4A3425 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.85) 0%, rgba(74, 52, 37, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero h1 strong {
    font-weight: 700;
    display: block;
    font-size: 5.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 3rem;
    color: var(--light-cream);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--secondary-brown);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid var(--secondary-brown);
    letter-spacing: 1px;
}

.cta-button:hover {
    background: transparent;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.3);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--primary-brown);
}

/* Sections */
section {
    padding: 8rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-brown);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Introduction */
.introduction {
    background: var(--light-cream);
    position: relative;
    overflow: hidden;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-brown);
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.intro-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--secondary-brown);
    padding: 2rem 0;
    border-left: 4px solid var(--secondary-brown);
    padding-left: 2rem;
    margin: 2rem 0;
}

.intro-image {
    position: relative;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 111, 71, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--secondary-brown);
    fill: var(--secondary-brown);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--primary-brown);
    fill: var(--primary-brown);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-brown);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Why Choose Us */
.why-choose {
    background: var(--primary-brown);
    color: var(--white);
}

.why-choose .section-label {
    color: var(--light-cream);
}

.why-choose .section-title {
    color: var(--white);
}

.why-choose .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item {
    position: relative;
    padding: 3rem 2.5rem;
    background-image: url('../resource/bkg_why.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.92) 0%, rgba(74, 52, 37, 0.88) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-item:hover::before {
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.85) 0%, rgba(74, 52, 37, 0.8) 100%);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature-content {
    position: relative;
    z-index: 2;
}

.feature-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--light-cream);
}

.feature-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    padding: 3rem;
    background: var(--light-cream);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-brown);
}

.team-role {
    color: var(--secondary-brown);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-member p {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

/* Products */
.products {
    background: var(--light-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-brown);
}

.product-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Portfolio */
.portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43, 24, 16, 0.95) 0%, transparent 100%);
    padding: 2rem;
    transform: translateY(60%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Expertise/Scope */
.scope {
    background: var(--light-cream);
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.scope-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.scope-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scope-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.scope-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.scope-card:hover .scope-image img {
    transform: scale(1.1);
}

.scope-content {
    padding: 3rem;
}

.scope-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-brown);
}

.scope-content h4 {
    font-size: 1.2rem;
    color: var(--secondary-brown);
    margin-bottom: 1.5rem;
}

.risks-handling {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.risks, .handling {
    background: var(--light-cream);
    padding: 1.5rem;
    border-radius: 6px;
}

.risks h5, .handling h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risks ul, .handling ul {
    list-style: none;
    padding: 0;
}

.risks li, .handling li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.risks li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-brown);
    font-weight: bold;
}

.handling li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Contact */
.contact {
    position: relative;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../resource/bkg_contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-label {
    color: var(--light-cream);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.contact-item {
    display: block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-about .logo img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-cream);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 7rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-brown);
    transform: translateY(-5px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 0 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h1 strong {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .intro-content,
    .services-grid,
    .features-grid,
    .team-grid,
    .products-grid,
    .portfolio-grid,
    .scope-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 strong {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .cta-button {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .cta-button-secondary {
        margin-left: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .scope-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scope-content {
        padding: 2rem 1.5rem;
    }

    .risks-handling {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
