/* =====================================================
   Community Link Management - Main Stylesheet
   A modern, elegant, high-performance website
   ===================================================== */

/* --------------------- CSS Variables --------------------- */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-primary);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --------------------- Reset & Base --------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* --------------------- Utility Classes --------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------- Buttons --------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* --------------------- Header & Navigation --------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 102px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo .logo-white {
    display: block;
}

.logo .logo-dark {
    display: none;
}

.header.scrolled .logo .logo-white {
    display: none;
}

.header.scrolled .logo .logo-dark {
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.header .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    padding: 5px;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--bg-white);
    transition: all var(--transition-normal);
}

.header.scrolled .mobile-toggle span {
    background: var(--secondary-color);
}

/* --------------------- Hero Section --------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #030712;
    overflow: hidden;
}

/* Animated Gradient Mesh Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 70% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 30% 90%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% {
        filter: blur(0px);
        transform: scale(1) rotate(0deg);
    }
    25% {
        filter: blur(2px);
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        filter: blur(0px);
        transform: scale(1.02) rotate(-1deg);
    }
    75% {
        filter: blur(1px);
        transform: scale(1.03) rotate(0.5deg);
    }
}

/* Grid Pattern Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Floating Orbs */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.2));
    top: -150px;
    right: 10%;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.hero-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.2));
    top: 60%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* Glowing Line Accents */
.hero-glow-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.5), transparent);
    animation: glowMove 8s ease-in-out infinite;
}

.glow-line:nth-child(1) {
    top: 20%;
    left: 0;
    width: 60%;
    animation-delay: 0s;
}

.glow-line:nth-child(2) {
    top: 50%;
    right: 0;
    width: 40%;
    animation-delay: -2s;
}

.glow-line:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 50%;
    animation-delay: -4s;
}

@keyframes glowMove {
    0%, 100% { opacity: 0.3; transform: translateX(0) scaleX(1); }
    50% { opacity: 0.8; transform: translateX(20px) scaleX(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-badge-icon {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

/* Hero Title with Gradient Animation */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #06b6d4, #a78bfa, #60a5fa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title .line {
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 44px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-buttons .btn-primary {
    padding: 18px 36px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: none;
    position: relative;
    overflow: hidden;
}

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

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-buttons .btn-outline {
    padding: 18px 36px;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
}

/* Brands/Trust Section */
.hero-trust {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

.hero-trust-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.trust-logo:hover {
    color: rgba(255, 255, 255, 0.7);
}

.trust-logo svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}


/* --------------------- About Section --------------------- */
.about {
    background: var(--bg-white);
    position: relative;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.about-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.about-experience-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--bg-white);
}

.about-feature span {
    font-weight: 500;
    color: var(--text-primary);
}

/* --------------------- Services Section --------------------- */
.services {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    transition: fill var(--transition-normal);
}

.service-card:hover .service-icon svg {
    fill: var(--bg-white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------- Why Choose Us Section --------------------- */
.why-us {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 30px 30px;
}

.why-us .section-subtitle {
    color: var(--accent-color);
}

.why-us .section-title {
    color: var(--bg-white);
}

.why-us .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.why-us-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.why-us-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--bg-white);
}

.why-us-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 14px;
}

.why-us-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* --------------------- Contact Section --------------------- */
.contact {
    background: var(--bg-white);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    padding: 40px 0;
}

.contact-info .section-subtitle {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-description {
    text-align: left;
    margin: 0 0 40px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.contact-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item-content a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--radius-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--bg-white);
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
}

/* --------------------- Footer --------------------- */
.footer {
    background: var(--secondary-color);
    padding: 80px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 102px;
    width: auto;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-white);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item p,
.footer-contact-item a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-contact-item a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* --------------------- Legal Pages --------------------- */
.legal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 160px 0 80px;
    text-align: center;
}

.legal-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.legal-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 40px 0 16px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content ul li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* --------------------- Scroll Animations --------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------- Responsive Design --------------------- */

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .services-grid,
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }

    .hero-trust-logos {
        gap: 30px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-subtitle,
    .about-content .section-title {
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }

    .about-content .btn {
        margin: 0 auto;
    }

    .contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info .section-subtitle,
    .contact-info .section-title,
    .contact-info .section-description {
        text-align: center;
    }

    .contact-info .section-description {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-links,
    .header .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        color: var(--text-primary);
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav .btn-primary {
        display: flex;
        width: 100%;
        margin-top: 20px;
    }

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

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

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

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero .container {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        margin-bottom: 50px;
    }

    .hero-scroll {
        display: none;
    }

    .hero-trust-logos {
        gap: 20px;
    }

    .trust-logo {
        font-size: 0.95rem;
    }

    .trust-logo svg {
        width: 24px;
        height: 24px;
    }

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

    .services-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-experience {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -50px;
        margin-left: auto;
        margin-right: 20px;
        width: fit-content;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-title .line {
        display: inline;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px 28px;
    }

    .hero-trust {
        display: none;
    }

    .about-image img {
        height: 280px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .service-card,
    .why-us-card {
        padding: 30px 20px;
    }

    .footer {
        padding: 60px 0 0;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}
