/* assets/css/main.css - Main Stylesheet for GoHoldings */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #333;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Logo dots with green/blue gradient */
.logo-dot:nth-child(1) { background: #2e7d32; }
.logo-dot:nth-child(2) { background: #4caf50; }
.logo-dot:nth-child(3) { background: #76c788; }
.logo-dot:nth-child(4) { background: #3498db; }
.logo-dot:nth-child(5) { background: #2196f3; }
.logo-dot:nth-child(6) { background: #64b5f6; }
.logo-dot:nth-child(7) { background: #4caf50; }
.logo-dot:nth-child(8) { background: #81c784; }
.logo-dot:nth-child(9) { background: #a5d6a7; }

.logo:hover .logo-dot {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.nav-links a:hover {
    color: #3498db;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}

.nav-links a.active-page {
    color: #4caf50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

.nav-links a.active-page::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #3498db, #4caf50);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   LANGUAGE TOGGLE (VN / EN)
   ========================================== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 1rem;
    padding: 4px;
    background: rgba(44, 62, 80, 0.06);
    border-radius: 999px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-radius: 999px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.lang-btn:hover { color: #3498db; }

.lang-btn.active {
    background: linear-gradient(135deg, #4caf50, #3498db);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.35);
}

/* ==========================================
   LAYOUT & CONTAINERS
   ========================================== */
main {
    margin-top: 80px;
}

section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.9) 0%, 
        rgba(52, 152, 219, 0.9) 100%);
    color: #4caf50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(76, 175, 80, 0.3);
    display: inline-block;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.2) 0%, 
        rgba(52, 152, 219, 0.8) 100%);
    color: #4caf50;
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    color: white;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #4caf50, #3498db);
    color: white;
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
}

/* ==========================================
   GRIDS & LAYOUTS
   ========================================== */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4caf50;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.footer-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
}

.footer-logo-dot:nth-child(1) { background: #2e7d32; }
.footer-logo-dot:nth-child(2) { background: #4caf50; }
.footer-logo-dot:nth-child(3) { background: #76c788; }
.footer-logo-dot:nth-child(4) { background: #3498db; }
.footer-logo-dot:nth-child(5) { background: #2196f3; }
.footer-logo-dot:nth-child(6) { background: #64b5f6; }
.footer-logo-dot:nth-child(7) { background: #4caf50; }
.footer-logo-dot:nth-child(8) { background: #81c784; }
.footer-logo-dot:nth-child(9) { background: #a5d6a7; }

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }