* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    --yellow-accent: #fbbf24;
    --yellow-dark: #f59e0b;
    --border-color: rgba(99, 102, 241, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-display: swap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: transform 0.3s ease, padding 0.3s ease;
    /* Safe area for notched devices */
    padding-top: max(0.75rem, env(safe-area-inset-top));
}

.navbar.transparent {
    transform: translateY(-5px);
}

.navbar.scrolled {
    transform: translateY(0);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(10, 12, 24, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.7), rgba(236, 72, 153, 0.35));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-wrapper {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(5, 8, 20, 0.5);
    padding: 0.55rem 1.5rem;
}
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;   
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

#logo-title {
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

#site-title {
    white-space: nowrap;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.nav-menu a::after {
    content: none;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    overflow: hidden;
    contain: layout style paint; /* Performance optimization */
    content-visibility: auto; /* Defer rendering until needed */
}

.hero-animation {
    content-visibility: auto; /* Defer animation rendering */
    will-change: transform, opacity; /* Optimize for animations */
}

.touch-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    animation: hero-pulse 0.85s ease-out forwards;
    mix-blend-mode: screen;
    z-index: 2;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

@keyframes hero-pulse {
    0% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.8);
    }
}

@media (max-width: 767px) {
    .touch-pulse {
        width: 80px;
        height: 80px;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero,
.hero * {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    min-height: 4.5rem;
    height: auto;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease, pulse 6s ease-in-out infinite 1s;
    will-change: transform, opacity;
    content-visibility: auto; /* Performance optimization */
    line-height: 1.2;
    opacity: 1; /* Ensure visible immediately */
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        min-height: 3.2rem;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.02) translateZ(0);
    }
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 1.5rem;
    height: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.4;
    opacity: 1; /* Ensure visible immediately */
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 3rem;
    height: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
    line-height: 1.6;
    opacity: 1; /* Ensure visible immediately */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 2s ease 0.2s both;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 2s ease 1.2s both;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
    min-height: 120px;
    width: 100%;
    opacity: 1; /* Ensure visible immediately */
}

.hero-stat {
    text-align: center;
    min-width: 100px;
    min-height: 80px;
}

.hero-stat h3 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-height: 2.5rem;
    display: block;
    line-height: 1.2;
}

.hero-stat:hover h3 {
    transform: scale(1.1);
}

/* Counter suffixes are handled in JavaScript */

.hero-stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    min-height: 1.2rem;
    line-height: 1.4;
}

.hero-stat:hover p {
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.scroll-indicator:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.scroll-indicator i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.scroll-indicator:hover i {
    transform: translateY(3px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: 50%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Section Styles */
section {
    padding: 80px 20px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--dark-card);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    width: 100%;
}

@media (min-width: 1440px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

.service-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s ease forwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03) translateZ(0);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(99, 102, 241, 0.05) 100%);
    will-change: transform;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects {
    background: var(--dark-card);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Prevent layout shift for project cards */
.projects-grid::before {
    content: '';
    display: block;
    grid-column: 1 / -1;
    height: 0;
}

.project-card {
    background: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 1.2s ease forwards;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03) translateZ(0);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
    will-change: transform;
}

.project-image {
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio (200px / 320px) */
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image i {
    position: absolute;
    z-index: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-links a:hover {
    color: white;
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

.project-links a.demo-btn {
    background: var(--gradient);
    color: white;
    border: none;
}

.project-links a.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.demo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.projects-loading {
    text-align: center;
    padding: 3rem;
    display: none;
    min-height: 200px; /* Reserve space to prevent shift */
}

.projects-loading.active {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--dark-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Skills Section */
.skills {
    background: var(--dark-card);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Blog Section */
.blog {
    background: var(--dark-card);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    min-height: 200px; /* Reserve space to prevent shift */
}

.blog-card {
    background: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.blog-image {
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio */
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.blog-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.blog-read-more {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-read-more:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.blog-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    min-height: 200px; /* Reserve space to prevent shift */
}

.blog-loading.active {
    display: block;
}

/* Team Section */
.team {
    background: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    min-height: 300px; /* Reserve space to prevent shift */
}

.team-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.team-avatar {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    aspect-ratio: 1 / 1;
    border: 4px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.team-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.team-social a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    border-color: transparent;
}

.team-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    min-height: 300px; /* Reserve space to prevent shift */
}

.team-loading.active {
    display: block;
}

/* Testimonial Form Styles */
.rating-input input[type="radio"] {
    display: none;
}

.rating-star {
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-input input[type="radio"]:checked + .rating-star,
.rating-input input[type="radio"]:checked ~ .rating-star {
    color: #fbbf24;
}

.testimonial-form-container {
    margin-top: 4rem;
    padding: 2.5rem;
    border-radius: 24px;
.testimonial-form-preview {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.testimonial-form-preview blockquote {
    margin: 0 auto 0.75rem;
    max-width: 540px;
    font-style: italic;
    color: var(--text-primary);
}

.testimonial-form-toggle {
    width: 100%;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-form-toggle i {
    transition: transform 0.3s ease;
}

.testimonial-form-toggle.expanded i {
    transform: rotate(180deg);
}

.testimonial-form-body {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.testimonial-form-body.active {
    max-height: 2000px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 1.5rem;
}

.testimonial-form-body.collapsed {
    max-height: 0;
    opacity: 0;
}

    border: 1px solid rgba(99, 102, 241, 0.15);
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12), transparent 55%), var(--dark-card);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.testimonial-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.testimonial-form-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--text-primary);
    position: relative;
}

.testimonial-form-header .badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

.testimonial-form-header p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1rem;
}

.testimonial-form-container form {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.testimonial-form-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.testimonial-form-container .form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-form-container input,
.testimonial-form-container textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-form-container input:focus,
.testimonial-form-container textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-submit-testimonial {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.35);
}

.btn-submit-testimonial:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Testimonials Section */
.testimonials {
    background: var(--dark-card);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    min-height: 200px; /* Reserve space to prevent shift */
}

.testimonials-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    min-height: 200px; /* Reserve space to prevent shift */
}

.testimonials-loading.active {
    display: block;
}

.testimonial-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.author-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Typing Effect */
.typing-text {
    display: inline-block;
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--primary-color);
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Animated Counters */
.counter {
    transition: all 0.3s;
}

/* Particle Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Interactive Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    display: none;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    display: none;
}

@media (min-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: block;
    }
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Floating Animation - Use transform only to prevent layout shifts */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-20px) translateZ(0);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

/* Pulse Animation - Use transform and opacity only */
@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) translateZ(0);
        opacity: 0.9;
    }
}

.pulse {
    animation: pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Glow Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6),
                0 0 40px rgba(99, 102, 241, 0.4),
                0 0 60px rgba(99, 102, 241, 0.2);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #ec4899, #f59e0b);
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    /* Safe area for notched devices */
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.whatsapp-button {
    --wa-size: 56px;
    --wa-expanded-width: 180px;
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    left: max(30px, env(safe-area-inset-left));
    width: var(--wa-size);
    height: var(--wa-size);
    text-decoration: none;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.35s ease, width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wa-content {
    position: relative;
    width: var(--wa-size);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0fd850, #23c684, #0fb679);
    background-size: 200% 200%;
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
    overflow: hidden;
    transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-radius 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.35s ease,
                background-position 8s ease;
    animation: whatsapp-gradient 8s ease infinite;
}

.wa-content::before,
.wa-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.wa-content::before {
    border: 2px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wa-content::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wa-content i {
    font-size: 1.3rem;
    transition: transform 0.4s ease;
    transform: rotate(-10deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 1;
    margin: 0;
    padding: 0;
}

.wa-label {
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transform: translateX(-8px);
    transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-4px);
    width: var(--wa-expanded-width);
}

.whatsapp-button:hover .wa-content {
    width: 100%;
    padding: 0 1.3rem;
    border-radius: 999px;
    box-shadow: 0 22px 40px rgba(15, 216, 80, 0.35);
    animation: whatsapp-gradient 8s ease infinite, whatsapp-glow 0.5s ease forwards;
}

.whatsapp-button:hover .wa-content::before {
    opacity: 1;
    transform: scale(1.08);
}

.whatsapp-button:hover .wa-content::after {
    opacity: 0.3;
    transform: scale(1.2);
}

.whatsapp-button:hover .wa-content i {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.whatsapp-button:hover .wa-label {
    opacity: 1;
    max-width: 130px;
    transform: translateX(0);
}

@keyframes whatsapp-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes whatsapp-glow {
    0% {
        box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
    }
    60% {
        box-shadow: 0 18px 35px rgba(15, 216, 80, 0.3);
    }
    100% {
        box-shadow: 0 22px 40px rgba(15, 216, 80, 0.35);
    }
}

@media (max-width: 767px) {
    .whatsapp-button {
        width: var(--wa-size);
        left: max(20px, env(safe-area-inset-left));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .wa-content {
        width: var(--wa-size);
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .wa-content i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-10deg);
        font-size: 1.3rem;
        width: auto;
        height: auto;
    }
    
    .wa-label {
        opacity: 0;
        max-width: 0;
        transform: translateX(-6px);
    }
    
    .whatsapp-button:hover .wa-content {
        width: var(--wa-size);
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
        animation: none;
    }
    
    .whatsapp-button:hover .wa-content i {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
    }
    
    .whatsapp-button:hover .wa-label {
        opacity: 0;
        max-width: 0;
    }
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 3rem 0 1.5rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-location i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-location {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Demo Showcase Section */
.demos {
    background: var(--dark-bg);
}

.demo-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.demo-card:hover::before {
    transform: scaleX(1);
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.demo-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.demo-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.demo-card-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.demo-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-card-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    min-width: 150px;
}

.demo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.demo-btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.demo-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.demo-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.demo-loading.active {
    display: block;
}

/* Responsive Design */
/* Mobile First Approach */
@media (max-width: 480px) {
    /* Extra Small Devices (phones) */
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .projects-grid,
    .blog-grid,
    .team-grid,
    .testimonials-grid,
    .demo-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-card-footer {
        flex-direction: column;
    }
    
    .demo-btn-primary,
    .demo-btn-secondary {
        width: 100%;
    }
}

/* Technology Stack Section */
.tech-stack {
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15), transparent 45%), var(--dark-bg);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.tech-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12) 0, transparent 45%),
                      radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.12) 0, transparent 40%),
                      radial-gradient(circle at 60% 80%, rgba(59, 130, 246, 0.1) 0, transparent 35%);
    opacity: 0.8;
    pointer-events: none;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    isolation: isolate;
}

.tech-categories::before {
    content: '';
    position: absolute;
    inset: 10% 8%;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.08));
    filter: blur(60px);
    z-index: -1;
}

@media (min-width: 992px) {
    .tech-categories {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
    
    .tech-category:nth-child(3n+2) {
        transform: translateY(20px);
    }
    
    .tech-category:nth-child(3n+3) {
        transform: translateY(40px);
    }
}

.tech-category {
    position: relative;
    padding: 2.25rem 2.25rem 2.5rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(236, 72, 153, 0.35));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.35;
}

.tech-category::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.tech-category:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.65);
}

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.tech-category h3 i {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 5px 10px rgba(99, 102, 241, 0.6));
}

.tech-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.25);
}

.tech-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.8;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.35));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

/* Process Section */
.process {
    background: var(--dark-card);
    padding: 80px 20px;
}

.process-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 1;
}

.process-content {
    flex: 1;
    padding-top: 1rem;
}

.process-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Clients Section */
.clients {
    background: var(--dark-bg);
    padding: 80px 20px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
    min-height: 150px; /* Reserve space to prevent shift */
}

.client-logo {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    aspect-ratio: 3 / 2;
    position: relative;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.client-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.client-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.client-placeholder span {
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    /* Show hamburger menu on tablets and below */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 1.25rem 0 1.75rem;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 0.35rem 0;
    }
    
    .nav-menu a {
        color: var(--text-primary);
        font-size: 1rem;
        padding: 0.65rem 1rem;
        display: block;
        transition: all 0.3s ease;
        white-space: normal;
        line-height: 1.2;
    }
    
    .nav-menu a:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    /* Small Devices (tablets) */
    .navbar.transparent {
        background: rgba(15, 23, 42, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        box-shadow: none;
    }
    
    .navbar.transparent .logo,
    .navbar.transparent .hamburger span {
        /* Ensure logo and hamburger are visible on transparent navbar */
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .nav-wrapper {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    #logo-title {
        font-size: 1rem;
    }
    
    #site-title {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 1.1rem 0 1.5rem;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 0.3rem 0;
    }
    
    .nav-menu a {
        color: var(--text-primary);
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
        display: block;
        transition: all 0.3s ease;
        white-space: normal;
    }
    
    .nav-menu a:hover {
        background: rgba(99, 102, 241, 0.08);
        color: var(--primary-color);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
        justify-content: center;
    }
    
    /* Center the third card on mobile when there are 3 cards */
    .about-stats .stat-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.75rem);
        margin: 0 auto;
    }
    
    .projects-grid,
    .blog-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-showcase {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Disable cursor effects on mobile */
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    /* Optimize particle count on mobile */
    #particles-canvas {
        opacity: 0.5;
    }
    
    /* Process timeline mobile */
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Medium Devices (small laptops) */
    .nav-wrapper {
        padding: 0.55rem 1.25rem;
        gap: 1rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    #logo-title {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        gap: 0.4rem;
    }
    
    .nav-menu a {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .projects-grid,
    .blog-grid,
    .team-grid,
    .testimonials-grid,
    .demo-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    /* Large Tablets / Small Laptops */
    .nav-wrapper {
        padding: 0.8rem 1.5rem;
        gap: 1.25rem;
    }
    
    .nav-menu {
        gap: 1.25rem;
    }
    
    .nav-menu a {
        padding: 0.35rem 0.85rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 1025px) {
    /* Large Devices (desktops) */
    .projects-grid,
    .blog-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .demo-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    section {
        min-height: -webkit-fill-available;
    }
}

/* Android Specific Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .project-card:hover,
    .blog-card:hover,
    .team-card:hover,
    .demo-card:hover {
        transform: none;
    }
    
    .btn:hover,
    .demo-btn-primary:hover,
    .demo-btn-secondary:hover {
        transform: none;
    }
    
    /* Increase touch target sizes for better mobile UX */
    .btn,
    .demo-btn-primary,
    .demo-btn-secondary,
    .project-links a,
    .nav-menu a,
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better tap feedback */
    .btn:active,
    .demo-btn-primary:active,
    .demo-btn-secondary:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    section {
        padding: 40px 20px;
    }
}

    .section-title {
        font-size: 2rem;
    }

    .testimonials-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
