/* ========================================
   SMAJ Ecosystem - Main Stylesheet
   Inspired by Lime Technologies Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #E6F0FA;
    --secondary-color: #1A1A2E;
    --accent-color: #00D4AA;
    --text-dark: #1A1A2E;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1A2E;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Body scroll lock when mobile menu open */
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white) !important;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Background Variations */
.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark p {
    color: var(--text-white);
}

.bg-dark .section-header h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-medium);
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background: #00B894;
    border-color: #00B894;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-medium);
}

.card:hover .card-icon {
    background: var(--primary-color);
}

.card-icon svg,
.card-icon img {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
    transition: var(--transition-medium);
}

.card:hover .card-icon svg,
.card:hover .card-icon img {
    fill: var(--text-white);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered Animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2D2D44 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--text-white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-buttons .btn {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-buttons .btn:nth-child(1) {
    animation-delay: 0.5s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 1;
    opacity: 0;
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated .stat-icon {
    opacity: 1;
    transform: scale(1);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    color: var(--accent-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.stat-phrase {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    letter-spacing: -0.01em;
}

.stat-item.animated .stat-phrase {
    animation: fadeInUp 0.8s ease forwards;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    transition: var(--transition-medium);
}

.service-card:hover .service-icon svg {
    fill: var(--text-white);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    overflow: hidden;
}

.why-choose-us .grid-2 {
    align-items: center;
}

.why-choose-us-image {
    position: relative;
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

.why-choose-us-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.why-choose-us-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.why-choose-us-content h2 {
    margin-bottom: 24px;
}

.why-choose-us-content h2::after {
    display: none;
}

.why-choose-us-list {
    margin: 30px 0;
}

.why-choose-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}

.why-choose-us-list li:nth-child(1) { animation-delay: 0.1s; }
.why-choose-us-list li:nth-child(2) { animation-delay: 0.2s; }
.why-choose-us-list li:nth-child(3) { animation-delay: 0.3s; }
.why-choose-us-list li:nth-child(4) { animation-delay: 0.4s; }

.why-choose-us-list .icon {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
    margin-top: 4px;
}

.why-choose-us-list .icon svg {
    width: 14px;
    height: 14px;
    fill: var(--text-dark);
}

.why-choose-us-list h4 {
    margin-bottom: 4px;
}

.why-choose-us-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Projects Section */
.projects-section {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: visible;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-badge {
    position: absolute;
    top: 16px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-medium);
}

.project-badge-ready {
    right: 16px;
    background: var(--accent-color);
}

.project-badge-ready:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 212, 170, 0.3);
}

.project-badge-dev {
    left: 16px;
    background: #FFA500;
}

.project-badge-dev:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-medium);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    gap: 8px;
    margin-top: auto;
}

.project-link:hover {
    gap: 12px;
}

.project-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insight-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.insight-image {
    height: 200px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.insight-card:hover .insight-image img {
    transform: scale(1.1);
}

.insight-content {
    padding: 24px;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.insight-category {
    color: var(--primary-color);
    font-weight: 600;
}

.insight-content h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.insight-content p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052A3 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2D2D44 100%);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb span {
    color: var(--text-white);
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.5);
}

/* About Page Styles */
.about-intro {
    padding: 100px 0 80px;
}

.about-intro .grid-2 {
    align-items: center;
    gap: 60px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--primary-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
}

.team-member:hover .team-image {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    margin-bottom: 4px;
}

.team-member p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 12px 0 16px 0;
    line-height: 1.5;
}

.team-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 18px;
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 4px;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--primary-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    transition: var(--transition-medium);
}

.social-link:hover svg {
    fill: var(--text-white);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Projects Page */
.projects-page {
    padding: 80px 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* Project Card Filtering */
.project-card {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Partnerships Page */
.partnerships-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

.partnership-levels {
    padding: 80px 0;
}

.partnership-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    height: 100%;
}

.partnership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.partnership-card.featured {
    border: 3px solid var(--primary-color);
    position: relative;
}

.partnership-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.partnership-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partnership-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.partnership-card h3 {
    margin-bottom: 16px;
}

.partnership-card ul {
    text-align: left;
    margin: 24px 0;
}

.partnership-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.partnership-card li:last-child {
    border-bottom: none;
}

.partnership-card li svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

/* Legal Page */
.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.legal-section h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 24px;
}

.legal-section li {
    margin-bottom: 12px;
    list-style: disc;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
}

.footer-social a.social-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.35s ease, transform 0.35s ease;
    font-size: 24px;
}

.footer-social a.social-icon:hover {
    color: #7d3cff;
    transform: scale(1.15);
}

.footer-social a.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .footer-social {
        gap: 16px;
        margin: 20px 0;
    }
    .footer-social a.social-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: var(--text-white);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.preloader-text {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ========================================
   HEADER STYLES - Production Ready
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, rgba(12, 15, 25, 0.95) 0%, rgba(15, 20, 34, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all var(--transition-medium) ease;
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header-container {
    max-width: 100%;
    height: 100%;
    padding: 0 40px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

/* Logo - Left Aligned */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform var(--transition-fast) ease;
}

.logo-wrap:hover {
    transform: scale(1.05);
}

.logo {
    height: 40px;
    width: auto;
    transition: filter var(--transition-fast) ease;
}

.logo:hover {
    filter: brightness(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    display: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00D4AA 0%, #0066CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation - Centered Horizontally */
.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast) ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width var(--transition-fast) ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-white);
}

/* Desktop CTA Button - Right Aligned */
.btn-nav-cta {
    background: linear-gradient(135deg, #6d28ff 0%, #8b5cf6 100%);
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(109, 40, 255, 0.3);
    flex-shrink: 0;
    transition: all var(--transition-medium) ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(109, 40, 255, 0.4);
    filter: brightness(1.08);
}

.btn-nav-cta:active {
    transform: translateY(-1px);
}

/* Mobile Menu Button (Hamburger) */
.btn-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    flex-shrink: 0;
    color: var(--text-white);
    font-size: 1.5rem;
    z-index: 1001;
    padding: 0;
    position: relative;
    flex-direction: row;
}

.btn-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-menu-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Icon visibility inside hamburger button */
.btn-menu-toggle .icon-open,
.btn-menu-toggle .icon-close {
    position: absolute;
    font-size: 1.5rem;
    line-height: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #ffffff;
    font-weight: 700;
}

/* Show open icon by default */
.btn-menu-toggle .icon-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn-menu-toggle .icon-close {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When menu is active, show close icon and hide open icon */
.btn-menu-toggle.active .icon-open {
    visibility: hidden;
    opacity: 0;
}

.btn-menu-toggle.active .icon-close {
    visibility: visible;
    opacity: 1;
}

/* Mobile Menu Overlay - Dark Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw; /* cover the left half of the screen */
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium) ease, visibility var(--transition-medium) ease;
    z-index: 1099;
    cursor: pointer;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu - Slides in from Right */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw; /* exactly half of viewport width */
    height: 100vh;
    background: linear-gradient(180deg, rgba(12, 15, 25, 0.98) 0%, rgba(15, 20, 34, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 90px 30px 40px;
    transition: transform var(--transition-medium) ease;
    z-index: 1100; /* above header */
    overflow-y: auto;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    align-items: center; /* center links */
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    border-bottom: none;
    transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
    letter-spacing: 0.2px;
    text-align: center; /* center the link text */
    width: 100%;
}

.mobile-nav-link + .mobile-nav-link {
    margin-top: 6px;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Mobile CTA Button */
.btn-mobile-cta {
    margin-top: 30px;
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
    padding: 14px 20px !important;
}

.mobile-nav-cta {
    margin-top: 24px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .btn-menu-toggle {
        display: flex;
    }

    .btn-nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        background: linear-gradient(180deg, #0c0f19 0%, #0f1422 100%);
        padding: 40px 24px;
        gap: 20px;
        animation: slideDown 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active .nav-link {
        font-size: 1.1rem;
    }

    .nav-links.active .nav-cta {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        min-height: auto;
        padding: 150px 0 80px;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .grid-2, 
    .grid-3, 
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Breakpoint - Adjust header padding for small screens */
@media (max-width: 640px) {
    .header-container {
        padding: 0 20px;
    }

    .btn-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .mobile-menu {
        max-width: 100vw;
        width: 50vw;
        padding: 80px 20px 40px;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 14px 0;
    }

    .btn-mobile-cta {
        padding: 12px 16px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .project-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 12px;
    }
    
    .project-badge-ready {
        right: 12px;
    }
    
    .project-badge-dev {
        left: 12px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-levels .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-phrase {
        font-size: 1.125rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon svg {
        width: 26px;
        height: 26px;
    }
}
/* Keep header above overlay when mobile menu is open */
.header.menu-open {
    z-index: 1102;
}

/* Park the toggle inside the open menu panel */
.header.menu-open .btn-menu-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1101;
    background: rgba(12, 15, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .header.menu-open .btn-menu-toggle {
        top: 14px;
        right: 18px;
    }
}
