/* Font Loading Optimization */
@font-face {
    font-family: 'Inter-fallback';
    src: local('system-ui'), local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Helvetica Neue'), local('Arial');
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CSS Custom Properties */
:root {
    --color-linx-blue: #5EB4E5;
    --color-linx-green: #8CC63F;
    --color-linx-black: #231F20;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --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-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);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

/* Theme Variables */
.light-theme {
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-50);
    --bg-tertiary: var(--color-gray-100);
    --text-primary: var(--color-linx-black);
    --text-secondary: var(--color-gray-600);
    --text-tertiary: var(--color-gray-500);
    --border-color: var(--color-gray-200);
}

.dark-theme {
    --bg-primary: var(--color-gray-900);
    --bg-secondary: var(--color-gray-800);
    --bg-tertiary: var(--color-gray-700);
    --text-primary: var(--color-white);
    --text-secondary: var(--color-gray-300);
    --text-tertiary: var(--color-gray-400);
    --border-color: var(--color-gray-700);
}

body.light-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-linx-blue);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #4fa3d1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.text-accent {
    color: var(--color-linx-blue);
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.dark-theme .navbar.scrolled {
    background-color: rgba(31, 41, 55, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo .logo {
    height: 2.5rem;
    width: auto;
    transition: var(--transition);
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-linx-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-linx-blue);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.1);
}

.theme-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-primary);
}

.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-nav-controls {
        display: none;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.hamburger {
    position: relative;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -0.5rem;
}

.hamburger::after {
    top: 0.5rem;
}

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--bg-secondary);
    color: var(--color-linx-blue);
}

.mobile-cta {
    margin-top: 1rem;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.bg-blob-1 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-linx-blue);
    animation: float 6s ease-in-out infinite;
}

.bg-blob-2 {
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-linx-green);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo img {
    height: 12rem;
    width: auto;
    margin-bottom: 2rem;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .hero-logo img {
        height: 16rem;
        margin-bottom: 3rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title-line1 {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title-line2 {
    display: block;
    color: var(--color-linx-blue);
}

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

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Logo Ticker Section */
.logo-ticker {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.ticker-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.ticker-container {
    position: relative;
    width: 100%;
}

.ticker-row {
    display: flex;
    width: 200%;
    margin-bottom: 3rem;
}

.ticker-row:last-child {
    margin-bottom: 0;
}

.ticker-content {
    display: flex;
    width: 50%;
    gap: 4rem;
    align-items: center;
}

.ticker-forward .ticker-content {
    animation: tickerForward 40s linear infinite;
}

.ticker-reverse .ticker-content {
    animation: tickerReverse 35s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    padding: 0 1rem;
}

.logo-item img {
    max-height: 64px;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

.dark-theme .logo-item img {
    filter: grayscale(100%) brightness(0) invert(1);
}

.dark-theme .logo-item:hover img {
    filter: grayscale(0%) brightness(1) invert(0);
}

@keyframes tickerForward {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes tickerReverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
.ticker-row:hover .ticker-content {
    animation-play-state: paused;
}

/* Responsive logo ticker */
@media (max-width: 768px) {
    .ticker-content {
        gap: 2rem;
    }
    
    .logo-item {
        min-width: 120px;
        height: 60px;
    }
    
    .logo-item img {
        max-height: 48px;
        max-width: 100px;
    }
}

/* Services Section */
.services {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
}

@media (min-width: 768px) {
    .services {
        padding: 5rem 0;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.service-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(140, 198, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-icon .icon {
    color: var(--color-linx-green);
    width: 1.5rem;
    height: 1.5rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-top: auto;
    padding-top: 1rem;
}

.service-features li {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--color-linx-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Products Section */
.products {
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

@media (min-width: 768px) {
    .products {
        padding: 5rem 0;
    }
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .product-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-item.reverse {
        direction: rtl;
    }
    
    .product-item.reverse > * {
        direction: ltr;
    }
}

.product-content {
    opacity: 0;
    transform: translateX(-30px);
}

.product-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(140, 198, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon .icon {
    color: var(--color-linx-green);
    width: 2rem;
    height: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-features li::before {
    content: '→';
    color: var(--color-linx-blue);
    font-weight: 600;
}

.case-study {
    background-color: rgba(94, 180, 229, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-linx-blue);
}

.case-study h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-study p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.product-image {
    opacity: 0;
    transform: translateX(30px);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.product-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.product-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
}

@media (min-width: 768px) {
    .slideshow-container {
        min-height: 500px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

@media (min-width: 768px) {
    .slide {
        min-height: 500px;
    }
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .slide img {
        min-height: 500px;
    }
}

.slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--color-linx-blue);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Slideshow fade animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide.fade-in {
    animation: slideIn 0.8s ease-out;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-blob-3 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-linx-blue);
    animation: float 8s ease-in-out infinite;
}

.bg-blob-4 {
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-linx-green);
    animation: float 10s ease-in-out infinite reverse;
}

.about-content {
    position: relative;
    z-index: 10;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.value-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.value-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(94, 180, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.value-icon .icon {
    color: var(--color-linx-blue);
    width: 1.5rem;
    height: 1.5rem;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(360deg);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.achievements {
    background-color: rgba(94, 180, 229, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius-2xl);
}

.achievements-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.achievement {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.achievement.animate {
    opacity: 1;
    transform: translateY(0);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-linx-blue);
    margin-bottom: 0.5rem;
}

.achievement-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.achievement-description {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .project-item {
        grid-template-columns: 1fr 1fr;
    }
}

.project-content {
    opacity: 0;
    transform: translateX(-30px);
}

.project-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(94, 180, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.stat-icon .icon {
    color: var(--color-linx-blue);
    width: 1.5rem;
    height: 1.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.project-features li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-linx-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.project-image {
    opacity: 0;
    transform: translateX(30px);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.project-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.project-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.project-image:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Default 3-item layout (for index.html) */
@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4-item layout (for identity.html) */
.contact-info.contact-info-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .contact-info.contact-info-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-info.contact-info-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contact-item {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(94, 180, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.contact-icon .icon {
    color: var(--color-linx-blue);
    width: 1.5rem;
    height: 1.5rem;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(360deg);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--color-linx-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-form-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-section {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-form-section.animate {
    opacity: 1;
    transform: translateX(0);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-linx-blue);
    box-shadow: 0 0 0 3px rgba(94, 180, 229, 0.1);
}

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

.form-submit {
    align-self: flex-start;
    gap: 0.5rem;
}

.form-submit .icon {
    width: 1rem;
    height: 1rem;
}

.social-section {
    opacity: 0;
    transform: translateX(30px);
}

.social-section.animate {
    opacity: 1;
    transform: translateX(0);
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--bg-secondary);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-linx-blue);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .product-title,
    .project-title {
        font-size: 1.25rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .achievements-grid {
        gap: 1.5rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .product-title,
    .project-title {
        font-size: 1.5rem;
    }
}

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

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn-primary:focus,
.nav-link:focus,
.theme-toggle:focus,
.mobile-menu-btn:focus,
.contact-link:focus {
    outline: 2px solid var(--color-linx-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    #particles-canvas {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .section-title {
        color: black;
    }
}
