/* ============================================
   MACX TECH SOLUTIONS - Modern Classic Design
   ============================================ */

/* === CSS Variables === */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-accent: #c7a15d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtitle {
    color: var(--gold-accent);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(199, 161, 93, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 161, 93, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(199, 161, 93, 0.3);
}

.btn-primary:hover {
    background: #d4b46e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 161, 93, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--gold-accent);
}

.btn-secondary:hover {
    background: var(--gold-accent);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold-accent);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-accent);
    animation: scrollDot 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDot {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Section Styles === */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--gold-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gold-accent);
    margin: 1rem auto;
    border-radius: 3px;
}

/* === About Section === */
.about {
    background: linear-gradient(-45deg, #ffffff, #f8f9fa, #ffffff, #fef7e8);
    background-size: 400% 400%;
    animation: gradientAbout 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAbout {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(199, 161, 93, 0.08), transparent);
    transform: rotate(45deg);
    animation: shimmerAbout 10s ease-in-out infinite;
}

@keyframes shimmerAbout {
    0%, 100% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.highlight-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === Services Section === */
.services {
    background: linear-gradient(135deg, #f0f3f6, #e9ecef, #f8f9fa, #e3e6eb);
    background-size: 400% 400%;
    animation: gradientServices 18s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientServices {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 161, 93, 0.05), transparent);
    animation: slideServices 12s linear infinite;
}

@keyframes slideServices {
    0% { left: -100%; }
    100% { left: 100%; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-category {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--gold-accent);
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    font-weight: bold;
}

/* === Company Structure Section === */
.structure {
    background: linear-gradient(45deg, #ffffff, #fef9f0, #f8f9fa, #ffffff);
    background-size: 400% 400%;
    animation: gradientStructure 20s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientStructure {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.structure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(199, 161, 93, 0.06) 0%, transparent 50%);
    animation: pulseStructure 8s ease-in-out infinite;
}

@keyframes pulseStructure {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.structure-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.brand-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid rgba(199, 161, 93, 0.1);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(199, 161, 93, 0.2);
    border-color: rgba(199, 161, 93, 0.3);
}

.brand-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.brand-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.brand-tagline {
    color: var(--gold-accent);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.brand-description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.brand-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: var(--gold-accent);
    color: var(--text-white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(199, 161, 93, 0.3);
}

.brand-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(199, 161, 93, 0.4);
}

.brand-link span {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* === Contact Section === */
.contact {
    background: linear-gradient(-90deg, #e9ecef, #f5f7f9, #f8f9fa, #e9ecef);
    background-size: 400% 400%;
    animation: gradientContact 16s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientContact {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(199, 161, 93, 0.04), transparent);
    animation: floatContact 14s ease-in-out infinite;
}

@keyframes floatContact {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-simple h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.contact-role {
    color: var(--gold-accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.contact-info-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-simple p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-info-simple strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-info-simple a {
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
}

.contact-info-simple a:hover {
    color: var(--gold-accent);
}

/* === Footer === */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .structure-content {
        flex-direction: column;
    }

    .structure-arrow {
        transform: rotate(90deg);
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
    .service-category,
    .highlight-item,
    .structure-card {
        animation: fadeIn 0.6s ease forwards;
        opacity: 0;
    }

    .service-category:nth-child(1) { animation-delay: 0.1s; }
    .service-category:nth-child(2) { animation-delay: 0.2s; }
    .service-category:nth-child(3) { animation-delay: 0.3s; }
    .service-category:nth-child(4) { animation-delay: 0.4s; }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }
}
