/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }
}


/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    max-width: 600px;
    padding: 0 1.5rem;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@media (min-width: 1200px) {
    .hero-content {
        margin: 0;
        margin-left: 10%;
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-visual {
        display: block;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 15px;
}

.grid-item {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.4s; }
.grid-item:nth-child(4) { animation-delay: 0.6s; }
.grid-item:nth-child(5) { animation-delay: 0.8s; }
.grid-item:nth-child(6) { animation-delay: 1s; }
.grid-item:nth-child(7) { animation-delay: 1.2s; }
.grid-item:nth-child(8) { animation-delay: 1.4s; }
.grid-item:nth-child(9) { animation-delay: 1.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 140px 0 80px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    z-index: -1;
}

.page-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

/* ===== Features Section ===== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}


/* ===== Stats Section ===== */
.stats {
    background: var(--gradient-1);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Services Preview ===== */
.services-preview {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card.large {
    grid-column: span 1;
    grid-row: span 2;
    background: var(--gradient-1);
    color: var(--white);
}

.service-card.large h3,
.service-card.large .service-number {
    color: var(--white);
}

.service-card.large .service-link {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ===== CTA Section ===== */
.cta {
    background: var(--dark);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--gray-400);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand > p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== About Page ===== */
.about-intro {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 1rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: var(--gradient-2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--white);
}

.placeholder-content svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.placeholder-content span {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Mission Vision ===== */
.mission-vision {
    background: var(--gray-50);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mv-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.mv-card h3 {
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--gray-600);
}


/* ===== Team Section ===== */
.team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.team-card h4 {
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== Timeline ===== */
.timeline {
    background: var(--gray-50);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 350px;
}

.timeline-year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

/* ===== Services Page ===== */
.services-main {
    padding: 60px 0;
}

.service-detail {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.service-detail-info h2 {
    margin-bottom: 1rem;
}

.service-detail-info p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-feature {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.service-feature h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-feature p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-detail-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== Process Section ===== */
.process {
    background: var(--gray-50);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--gray-600);
    font-size: 0.95rem;
}


/* ===== Portfolio Page ===== */
.portfolio-filter {
    padding: 40px 0 20px;
    background: var(--white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.portfolio-grid-section {
    padding: 40px 0 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--white);
    opacity: 0.8;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.portfolio-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: var(--gray-700);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-text p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.contact-text a {
    color: var(--primary);
}

.contact-text a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== Contact Form ===== */
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Map Section ===== */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== Business Hours ===== */
.business-hours {
    background: var(--gray-50);
    padding: 60px 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.hours-info h3,
.hours-note h3 {
    margin-bottom: 1.5rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.hours-note p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.emergency-contact {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ===== Legal Pages ===== */
.legal-content {
    padding: 60px 0 80px;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.legal-section p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.7;
    list-style: disc;
}

.contact-info-legal {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.contact-info-legal p {
    margin-bottom: 0.5rem;
}

.contact-info-legal a {
    color: var(--primary);
}

.contact-info-legal a:hover {
    text-decoration: underline;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .cta {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ===== Leaflet Map Custom Styles ===== */
.leaflet-container {
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
}

.leaflet-popup-content {
    margin: 1rem;
}

.map-popup h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.map-popup p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
