/* ============================================
   LEGAL BALANCE - MODERN MINIMALIST DESIGN
   Vibrant Accents: Cyan #00D9FF, Coral #FF6B6B, Lime #00FF88
   ============================================ */

/* ============ ROOT & VARIABLES ============ */
:root {
    --primary-cyan: #00D9FF;
    --primary-coral: #FF6B6B;
    --primary-lime: #00FF88;
    --primary-purple: #7C3AED;
    --primary-blue: #2563EB;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #E8E9EB;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1rem;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-coral);
}

/* ============ CONTAINER & LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============ NAVIGATION ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-coral) 100%) 1;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

.nav-item a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-coral) 100%);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 4rem 2rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-lime) 100%);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-purple) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-lime) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: conic-gradient(from 0deg, var(--primary-purple), var(--primary-blue), var(--primary-cyan));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}

/* ============ ARTICLE SECTION ============ */
.article-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 6rem 2rem;
    position: relative;
}

.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 217, 255, 0.05) 100%);
    pointer-events: none;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-article {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-white), var(--bg-white)), 
                      linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-coral) 50%, var(--primary-lime) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-gray);
}

.article-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 1rem;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--primary-cyan) 0%, var(--primary-coral) 100%);
    border-radius: 2px;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.article-link {
    color: var(--primary-cyan);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--primary-coral);
    text-decoration-thickness: 2px;
}

.article-list {
    list-style: none;
    margin: 2rem 0;
    padding-left: 0;
}

.article-list li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-gray);
}

.article-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============ TABLES ============ */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.article-table thead {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: var(--bg-white);
}

.article-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.article-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-gray);
    color: var(--text-gray);
}

.article-table tbody tr:hover {
    background-color: rgba(0, 217, 255, 0.05);
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============ SERVICES SECTION ============ */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-coral) 50%, var(--primary-lime) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.service-card:nth-child(1) .service-icon { animation-delay: 0s; }
.service-card:nth-child(2) .service-icon { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-icon { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ============ ABOUT SECTION ============ */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

/* ============ CONTACT SECTION ============ */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact .cta-button {
    background: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact .cta-button:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    color: var(--bg-white);
    margin: 0;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .blog-article {
        padding: 2rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content p {
        font-size: 1.25rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    .blog-article {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
        padding-left: 0.75rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .table-wrapper {
        font-size: 0.85rem;
    }

    .article-table th,
    .article-table td {
        padding: 0.75rem;
    }

    .contact-content p {
        font-size: 1.1rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
}

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

/* ============ UTILITY CLASSES ============ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}
