/* =============================================
   CSS RESET & VARIABLES
============================================= */
:root {
    --primary-color: #0066ff;
    --secondary-color: #6366f1;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --font-primary: 'Inter', sans-serif;
    --font-chinese: 'Noto Sans SC', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary), var(--font-chinese);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   CONTAINER & LAYOUT
============================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================
   NAVIGATION
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lang-icon {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* =============================================
   HERO SECTION - ASYMMETRIC DESIGN
============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -200px;
    right: -100px;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    bottom: -100px;
    left: -100px;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero Visual - Asymmetric Cards */
.hero-visual {
    position: relative;
    height: 600px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 0;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: 1s;
}

.card-icon {
    font-size: 2rem;
}

.card-text {
    font-weight: 600;
    color: var(--text-dark);
}

.code-snippet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    width: 400px;
    box-shadow: var(--shadow-xl);
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #f59e0b; }
.code-dot:nth-child(3) { background: #10b981; }

.code-body {
    padding: 1.5rem;
    color: var(--gray-200);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-keyword { color: #c678dd; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }

/* =============================================
   SERVICES SECTION
============================================= */
.services-preview {
    padding: 6rem 0;
    background: var(--light-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.asymmetric {
    max-width: 800px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    grid-column: span 4;
}

.service-card.large {
    grid-column: span 8;
    grid-row: span 2;
}

.service-card.accent {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.service-card.accent p,
.service-card.accent .service-link {
    color: rgba(255, 255, 255, 0.9);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* =============================================
   WHY CHOOSE US SECTION
============================================= */
.why-choose {
    padding: 6rem 0;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-visual {
    position: relative;
    height: 500px;
}

.visual-box {
    position: absolute;
    border-radius: 20px;
    transition: var(--transition);
}

.box-1 {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: 0;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.box-2 {
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    bottom: 0;
    right: 0;
    animation: float 4s ease-in-out infinite 1s;
}

.box-3 {
    width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-xl);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 4s ease-in-out infinite 0.5s;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin: 0;
}

/* =============================================
   CTA SECTION
============================================= */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* =============================================
   FOOTER
============================================= */
.footer {
    background: var(--dark-bg);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =============================================
   PAGE HEADER
============================================= */
.page-header {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(99, 102, 241, 0.05));
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
}

/* =============================================
   COMPANY STORY
============================================= */
.company-story {
    padding: 6rem 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-visual {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 8rem;
}

/* =============================================
   MISSION & VISION
============================================= */
.mission-vision {
    padding: 6rem 0;
    background: var(--light-bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mv-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.mv-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    margin-bottom: 1rem;
}

/* =============================================
   COMPANY INFO
============================================= */
.company-info {
    padding: 6rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.info-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-item p {
    margin-bottom: 0.5rem;
}

.info-item .chinese {
    color: var(--text-dark);
    font-weight: 500;
}

/* =============================================
   SERVICES DETAIL
============================================= */
.services-detail {
    padding: 6rem 0;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-content {
    position: relative;
}

.service-number {
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 102, 255, 0.05);
    line-height: 1;
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-detail-content h2 {
    margin-bottom: 1.5rem;
}

.service-detail-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* =============================================
   TECHNOLOGIES
============================================= */
.technologies {
    padding: 6rem 0;
    background: var(--light-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.tech-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-tag:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: var(--white);
}

/* =============================================
   PORTFOLIO
============================================= */
.portfolio-section {
    padding: 6rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.portfolio-item {
    grid-column: span 6;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item.featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item.featured .portfolio-image {
    height: 100%;
}

.portfolio-placeholder {
    font-size: 6rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   RESULTS SECTION
============================================= */
.results-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
}

.result-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.method-content h4 {
    margin-bottom: 0.5rem;
}

.method-content a {
    color: var(--primary-color);
    font-weight: 500;
}

.method-content a:hover {
    text-decoration: underline;
}

.method-content .chinese {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* =============================================
   CONTACT FORM
============================================= */
.contact-form-container {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* =============================================
   MAP SECTION
============================================= */
.map-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.map-placeholder {
    height: 400px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-address {
    text-align: center;
    max-width: 600px;
    font-weight: 500;
}

/* =============================================
   LEGAL CONTENT
============================================= */
.legal-content {
    padding: 6rem 0;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.legal-section h3 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-info-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.contact-info-box p {
    margin-bottom: 0.5rem;
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 1024px) {
    .hero-container,
    .story-content,
    .why-choose-content,
    .service-detail-item,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .service-card,
    .service-card.large {
        grid-column: span 6;
    }
    
    .portfolio-item,
    .portfolio-item.featured {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .code-snippet {
        width: 300px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .service-card.large,
    .service-card.accent {
        grid-column: span 1;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

