:root {
    --primary-color: #E65100;
    /* Carrot Orange */
    --primary-light: #FF8A50;
    --secondary-color: #1A237E;
    /* Navy */
    --text-color: #333333;
    --light-bg: #F9F9F9;
    --white: #FFFFFF;
    --border-color: #EEEEEE;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #DB4D00;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/hero_background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-color);
}

/* Features/Why Us */
.features {
    background-color: var(--light-bg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.portfolio-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.portfolio-text ul {
    margin-bottom: 30px;
}

.portfolio-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.portfolio-text ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.portfolio-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-img img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.portfolio-img:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact {
    background-color: var(--secondary-color);
    color: var(--white);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.contact-message h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-message p {
    font-size: 18px;
    opacity: 0.8;
}

.contact-details {
    text-align: right;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #DB4D00;
}

/* Footer */
#detail {
    scroll-margin-top: 100px;
}

footer {
    background-color: #111;
    color: #888;
    padding: 60px 0 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* Before & After */
.before-after-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.ba-card {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.ba-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.ba-img img {
    width: 100%;
    height: auto;
    display: block;
}

.ba-label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ba-label.before {
    background-color: #757575;
}

.ba-label.removing {
    background-color: #FF8A50;
    /* Primary Light */
}

.ba-label.after {
    background-color: var(--secondary-color);
}

.ba-arrow {
    font-size: 24px;
    color: #ccc;
}

.ba-card p {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .grid-3,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        /* Center align on mobile */
    }

    .contact-details {
        text-align: center;
        /* Center align details on mobile */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-details p[style*="text-align: right"] {
        text-align: center !important;
        /* Force center email on mobile */
    }

    .before-after-grid {
        flex-direction: column;
        gap: 30px;
    }

    .ba-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}