/* NewDi Microcement Website - Premium Brown/Beige Design */
/* Updated Color Palette:
   Primary: #8B7355 (Warm brown)
   Secondary: #D4A574 (Rich golden brown)
   Accent: #C19A6B (Camel/tan)
   Light: #F5E6D3 (Warm cream)
   Neutral: #EDE0D4 (Light beige)
   Text: #3A3028 (Dark brown)
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B7355;
    --secondary: #D4A574;
    --accent: #C19A6B;
    --light: #F5E6D3;
    --neutral: #EDE0D4;
    --text: #3A3028;
    --text-light: #6B5D54;
    --white: #ffffff;
    --cream: #FAF7F2;
    --shadow: rgba(58, 48, 40, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= NAVIGATION - UPDATED LOGO STYLING ============= */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* LOGO STYLING - Original circular design */
.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px var(--shadow);
    transition: var(--transition);
}

.nav-brand:hover .logo {
    transform: scale(1.05);
}

.nav-brand span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: var(--transition);
}

.language-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral);
    background: var(--white);
    color: var(--text);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============= HERO SECTION - RICH BROWN GRADIENT ============= */
.hero {
    margin-top: 70px;
    height: 90vh;
    background: linear-gradient(135deg, #8B7355 0%, #D4A574 50%, #C19A6B 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top left, rgba(255,255,255,0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 20px
        );
}

.hero-content {
    text-align: center;
    z-index: 1;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(58, 48, 40, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ============= BUTTONS ============= */
.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============= SECTIONS ============= */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 1rem auto;
}

/* ============= FEATURES - WARM TONES ============= */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.3), rgba(237, 224, 212, 0.5));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--neutral);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.1);
    background: var(--cream);
}

.feature-number {
    font-size: 3rem;
    font-weight: 200;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    position: relative;
    line-height: 1;
}

.feature-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--secondary);
    opacity: 0.5;
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* ============= APPLICATIONS - BROWN GRADIENTS ============= */
.applications {
    padding: 5rem 0;
    background: var(--cream);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.app-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
}

.app-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow);
}

.app-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

/* Update application card gradients */
.app-card:nth-child(1) .app-image {
    background: linear-gradient(135deg, #8B7355, #D4A574);
}

.app-card:nth-child(2) .app-image {
    background: linear-gradient(135deg, #C19A6B, #F5E6D3);
}

.app-card:nth-child(3) .app-image {
    background: linear-gradient(135deg, #D4A574, #EDE0D4);
}

.app-card:nth-child(4) .app-image {
    background: linear-gradient(135deg, #A0826D, #DCC9B6);
}

.app-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: var(--text);
}

/* ============= CTA SECTION - RICH BROWN ============= */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #A0826D, #C19A6B);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============= PAGE HEADER - BROWN GRADIENT ============= */
.page-header {
    margin-top: 70px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #8B7355, #C19A6B);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============= ABOUT PAGE ============= */
.about-content {
    padding: 4rem 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image .image-placeholder {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    background: linear-gradient(135deg, #D4A574, #F5E6D3);
}

.values-section {
    margin-top: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(237, 224, 212, 0.5), rgba(245, 230, 211, 0.3));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--secondary);
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ============= SERVICES PAGE ============= */
.services-content {
    padding: 4rem 0;
    background: var(--cream);
}

.service-item {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 4px solid var(--secondary);
}


/* Service numbers for premium look */
.service-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    font-family: 'Georgia', serif;
    position: relative;
}

.service-item:hover .service-number {
    background: var(--secondary);
    color: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-list {
    list-style: none;
    padding: 1rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 2rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.process-section {
    margin-top: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

/* ============= PORTFOLIO PAGE ============= */
.portfolio-content {
    padding: 4rem 0;
    background: var(--cream);
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    border: 2px solid var(--neutral);
    background: var(--white);
    color: var(--text);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Update portfolio placeholders with brown gradients */
.portfolio-item:nth-child(odd) .portfolio-placeholder {
    background: linear-gradient(135deg, #8B7355, #C19A6B);
}

.portfolio-item:nth-child(even) .portfolio-placeholder {
    background: linear-gradient(135deg, #D4A574, #A0826D);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 115, 85, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ============= LIGHTBOX ============= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 48, 40, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin: 5% auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

/* ============= LICENSE PAGE ============= */
.license-content {
    padding: 4rem 0;
    background: var(--cream);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--secondary);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.partners-section {
    margin-top: 4rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: linear-gradient(135deg, rgba(237, 224, 212, 0.3), rgba(245, 230, 211, 0.2));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.warranty-section {
    margin-top: 4rem;
}

.warranty-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 4px solid var(--secondary);
}

.warranty-list {
    list-style: none;
    padding: 1rem 0;
}

.warranty-list li {
    padding: 0.7rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 2rem;
}

.warranty-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

/* ============= CONTACT PAGE ============= */
.contact-content {
    padding: 4rem 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--neutral);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
}

.contact-info-items {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--secondary);
}

.contact-info-item h3 {
    color: var(--text);
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    color: var(--text-light);
    margin: 0.2rem 0;
}

.map-placeholder {
    margin-top: 2rem;
}

.map-placeholder > div {
    background: linear-gradient(135deg, #D4A574, #F5E6D3);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
}

/* ============= FOOTER - DARK BROWN ============= */
.footer {
    background: linear-gradient(135deg, #3A3028, #4A3F36);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ============= FLOATING BUTTON - BROWN ============= */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.kakao-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.kakao-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
    .nav-brand span {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}
/* Language switcher links (updated from buttons) */
.language-switch {
    display: flex;
    gap: 0.5rem;
}

.language-switch a.lang-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral);
    background: var(--white);
    color: var(--text);
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.language-switch a.lang-btn.active,
.language-switch a.lang-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}