@font-face {
    font-family: 'AlibabaSans-Bold';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/Alibaba-PuHuiTi-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'AlibabaSans-Medium';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'AlibabaSans-Regular';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Regular.otf') format('opentype');
}

:root {
    --primary: #FF8A00;
    --primary-light: #FFB347;
    --secondary: #0A192F;
    --accent: #00D2FF;
    --neutral: #1E293B;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --text-main: #334155;
    --text-light: #94A3B8;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'AlibabaSans-Regular', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

body {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(255, 138, 0, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.05), transparent 25%);
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'AlibabaSans-Bold', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--accent), #3A86FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 138, 0, 0.3);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1920px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    /* Liquid Glass styling */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65)) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.3s ease;
}

.logo-container {
    height: 60px;
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-container img {
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--secondary);
    font-family: 'AlibabaSans-Medium', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 4px 20px rgba(255, 255, 255, 0.6);
    /* Maximum contrast */
}

/* Hide icons on desktop, show only text */
.nav-links li a i {
    display: none;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'AlibabaSans-Medium', sans-serif;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF6B00);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 20px rgba(255, 138, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 138, 0, 0.3);
}

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

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

.theme-toggle {
    background: #F1F5F9;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: #E2E8F0;
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.shape-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.15), rgba(255, 138, 0, 0));
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

.shape-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 210, 255, 0));
    bottom: -50px;
    left: -150px;
    filter: blur(80px);
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 0, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-family: 'AlibabaSans-Medium';
    color: var(--primary);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    font-size: 16px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 85px);
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 50px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.4s ease-out;
}

.hero-image-wrapper {
    margin-top: 80px;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    position: relative;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1.6s ease-out;
}

.hero-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--secondary), #1A365D);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-img-inner i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 4s infinite ease-in-out;
}

.floating-card {
    position: absolute;
    /* Elevated Solid Glass Effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 30px;
    padding: 24px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.fc-1 {
    top: -30px;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.fc-2 {
    bottom: -40px;
    left: 8%;
    animation: float 8s ease-in-out infinite reverse;
}

.fc-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 138, 0, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.2);
}

.fc-text h4 {
    color: var(--secondary);
    font-family: 'AlibabaSans-Bold', sans-serif;
    font-size: 18px;
    margin-bottom: 4px;
}

.fc-text p {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

body.dark-mode .fc-text h4 {
    color: #F8FAFC;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

body.dark-mode .fc-text p {
    color: #CBD5E1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fc-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 138, 0, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.fc-text h4 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.fc-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 100px 5%;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-number {
    font-family: 'AlibabaSans-Bold';
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-family: 'AlibabaSans-Medium';
}

/* Services Section */
.services {
    padding: 40px 5%;
    background: var(--bg-light);
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--primary);
    font-family: 'AlibabaSans-Medium';
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.03), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card:hover::before {
    opacity: 1;
}

.s-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .s-icon-wrap {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-family: 'AlibabaSans-Medium';
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: var(--primary);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* About Block */
.about-section {
    padding: 120px 5%;
    background: var(--white);
    width: 100%;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-image {
    flex: 1;
    min-width: 400px;
    height: 600px;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg-light);
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right bottom, #E2E8F0, #F1F5F9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-inner i {
    font-size: 120px;
    color: #CBD5E1;
}

.about-content {
    flex: 1;
    min-width: 400px;
}

.about-description {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.f-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.f-text h4 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.f-text p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 40px 5%;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right top, rgba(255, 138, 0, 0.1), transparent 40%),
        radial-gradient(circle at left bottom, rgba(0, 210, 255, 0.1), transparent 40%);
}

.contact-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    padding: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 350px;
    color: var(--white);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-info p {
    color: #94A3B8;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.c-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary);
}

.c-text h5 {
    font-size: 16px;
    color: #94A3B8;
    margin-bottom: 4px;
    font-family: 'AlibabaSans-Regular';
}

.c-text span {
    font-size: 18px;
    font-family: 'AlibabaSans-Medium';
}

.c-text a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.c-text a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 350px;
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'AlibabaSans-Regular';
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    border: none;
    background: var(--secondary);
    color: var(--white);
    font-size: 18px;
    font-family: 'AlibabaSans-Bold';
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
}

/* Portfolio Section */
.portfolio-section {
    padding: 40px 5%;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 138, 0, 0.2);
}

.p-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    /* Softer background frame for images */
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents image cutting */
    transition: transform 0.6s ease;
    padding: 15px;
    /* Nice breathing room inside the frame */
}

.portfolio-card:hover .p-image img {
    transform: scale(1.08);
}

.p-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .p-overlay {
    opacity: 1;
}

.btn-icon {
    width: 60px;
    height: 60px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 24px;
    transform: translateY(20px);
}

.portfolio-card:hover .btn-icon {
    transform: translateY(0);
}

.p-content {
    padding: 30px 40px;
}

.p-category {
    color: var(--primary);
    font-family: 'AlibabaSans-Medium';
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.p-content h3 {
    font-size: 24px;
    color: var(--secondary);
    margin: 0;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 80px 5% 30px;
    color: #94A3B8;
}

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



.footer-logo {
    margin-bottom: 24px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    font-size: 14px;
}

/* ================================= */
/* Dark Mode Overrides */
/* ================================= */
body.dark-mode {
    --bg-light: #0F172A;
    --text-main: #F8FAFC;
    --text-light: #94A3B8;
    --white: #1E293B;
    --secondary: #FFFFFF;
    --glass-bg: rgba(30, 41, 59, 0.5);
}

body.dark-mode nav {
    background: rgba(15, 23, 42, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

body.dark-mode .logo-container img {
    filter: brightness(0) invert(1);
}

body.dark-mode .floating-card {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .about-image-inner {
    background: linear-gradient(to right bottom, #1E293B, #0F172A);
}

body.dark-mode .about-image-inner i {
    color: #475569;
}

body.dark-mode .form-control {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

body.dark-mode .contact-section,
body.dark-mode .btn-submit {
    background: #0A192F;
}

body.dark-mode .contact-info .section-title,
body.dark-mode .contact-info p,
body.dark-mode .contact-info .c-text h5,
body.dark-mode .contact-info .c-text span,
body.dark-mode .contact-info .c-text a,
body.dark-mode .contact-form h3,
body.dark-mode .footer-col h4,
body.dark-mode .social-icon {
    color: #FFFFFF;
}

/* Enhancing dark-mode components and hover states */
body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: rotate(30deg);
}

body.dark-mode .btn-outline {
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .floating-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .portfolio-card:hover,
body.dark-mode .stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 138, 0, 0.15);
    border-color: rgba(255, 138, 0, 0.3);
}

body.dark-mode .document-container {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .document-container h2,
body.dark-mode .document-container h4,
body.dark-mode .document-container strong {
    color: #FFFFFF !important;
}

/* Modal Portafolio */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.portfolio-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--secondary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--white);
    background: var(--accent);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

.modal-image-container {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 20px;
    font-family: 'AlibabaSans-Bold';
}

.modal-info p {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
}

/* ================================= */
/* Responsive Design (Mobile & Tablet) */
/* ================================= */

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    color: var(--secondary);
    cursor: pointer;
    background: transparent;
    border: none;
}

body.dark-mode .mobile-menu-btn {
    color: var(--white);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Menu */
    .mobile-menu-btn {
        display: none !important;
    }

    .d-none-mobile {
        display: none !important;
    }

    nav {
        background: var(--white) !important;
    }

    body.dark-mode nav {
        background: var(--bg-dark) !important;
    }

    .nav-links {
        position: fixed;
        top: calc(100vh - 85px);
        top: calc(100dvh - 85px);
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 95%;
        max-width: 450px;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
        gap: 0;
        transition: all 0.4s ease;
        z-index: 1001; 
        overflow-y: visible;
        border-radius: 35px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.9);
    }

    body.dark-mode .nav-links {
        background: rgba(15, 23, 42, 0.9);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li {
        width: auto;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .nav-links li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 5px 0;
        font-size: 10px;
        font-family: 'AlibabaSans-Regular';
        color: var(--secondary);
    }
    
    body.dark-mode .nav-links li a {
        color: var(--white);
    }

    .nav-links li a i {
        display: block !important;
        font-size: 22px;
        margin-bottom: 2px;
        transition: transform 0.3s;
    }
    
    .nav-links li a:hover i {
        transform: scale(1.1);
        color: var(--primary);
    }
    
    .nav-links li a::after {
        display: none !important;
    }

    /* Layout adjustments */
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-image-wrapper {
        display: none;
        /* Focus purely on CTAs on very small screens */
    }

    .about-image-wrapper {
        display: none;
        /* Focus strictly on text to save scrolling padding */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4,
    .footer-links a {
        justify-content: center;
    }

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

    /* Modal Mobile */
    .modal-body {
        flex-direction: column;
    }

    .modal-image-container {
        padding: 20px;
        min-height: 250px;
    }

    .modal-info {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {

    .services-grid,
    .portfolio-grid,
    .stats-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 30px !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Fix for Mobile Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    nav {
        height: 60px !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .d-none-mobile {
        display: none !important;
    }
    .nav-actions .btn {
        display: none !important; /* Hide massive CTA in header on tiny heights */
    }
    .nav-links {
        position: fixed;
        top: calc(100vh - 75px);
        top: calc(100dvh - 75px);
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 95%;
        max-width: 450px;
        height: 60px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
        gap: 0;
        transition: all 0.4s ease;
        z-index: 1001;
        overflow-y: visible;
        border-radius: 35px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    body.dark-mode .nav-links {
        background: rgba(15, 23, 42, 0.9);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links li {
        width: auto;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .nav-links li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 5px 0;
        font-size: 10px;
        font-family: 'AlibabaSans-Regular';
        color: var(--secondary);
    }
    body.dark-mode .nav-links li a {
        color: var(--white);
    }
    .nav-links li a i {
        display: block !important;
        font-size: 20px;
        margin-bottom: 2px;
        transition: transform 0.3s;
    }
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero h1 {
        font-size: 34px !important;
    }
    .hero-image-wrapper, .about-image-wrapper {
        display: none !important;
    }
    .stats-grid, .services-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}