/* 
   TAPCRAFT Website Styles 
   Bright and simple design
*/

:root {
    /* Main color scheme - white with mint green accent */
    --primary-color: #3EB489; /* Mint green */
    --secondary-color: #5dc99f; /* Light mint */
    --accent-color: #2d8c6d; /* Deep mint */
    --text-dark: #333333;
    --text-light: #6e6e6e;
    --text-lighter: #9e9e9e;
    --bg-light: #ffffff;
    --bg-off-white: #f9fffc;
    --bg-gray: #f0f9f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.section-divider:before {
    content: '';
    position: absolute;
    height: 4px;
    width: 35px;
    background: var(--secondary-color);
    left: 0;
    top: 0;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 0.75rem 0;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    max-width: 100%;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.language-switch a {
    font-size: 0.875rem;
    padding: 0.25rem 0.375rem;
}

.language-switch a.active {
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Hero section */
.hero-section {
    background-image: linear-gradient(rgba(53, 139, 107, 0.02), rgba(62, 180, 137, 0.05)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 12rem 0 8rem;
    position: relative;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-right: 2rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    height: 350px;
    background-color: var(--bg-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(120, 168, 150, 0.15); /* Overlay màu xanh mint với độ trong suốt */
    z-index: 1;
    pointer-events: none;
}

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

/* About section */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-off-white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.core-values, .vision, .mission {
    margin-bottom: 2.5rem;
}

.core-values ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.core-values ul li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.about-leadership {
    flex: 1;
    min-width: 400px;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ceo-image {
    background-image: url('../images/ceo.png');
    background-size: cover;
    background-position: center;
}

.cto-image {
    background-image: url('../images/cto.png');
    background-size: cover;
    background-position: center;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-weight: 500;
}

/* Services section */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
}

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

/* Contact section */
.contact-section {
    padding: 6rem 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-dark);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background-color: #333333;
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #94a3b8;
}

.footer-language a {
    color: #94a3b8;
    margin: 0 0.25rem;
}

.footer-language a.active,
.footer-language a:hover {
    color: white;
}

/* Responsive styles */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-light);
        box-shadow: var(--shadow-lg);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1002;
    }
    
    .mobile-menu-btn.active i:before {
        content: "\f00d";
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 10rem 0 6rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .about-leadership {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .member-image {
        width: 200px;
        height: 200px;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
    }
}
