/* ==========================================
   HEMITECHNO - PREMIUM MODERN CSS
   ========================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    
    /* Spacing */
    --section-padding: 100px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-lighter);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Preloader
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Navigation
   =================================== */
#mainNav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mainNav.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: rotate(180deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-toggler {
    border: none;
    padding: 5px;
    width: 30px;
    height: 24px;
    position: relative;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

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

.btn-nav-cta {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    margin-left: 10px;
}

.btn-nav-cta::after {
    display: none;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    position: relative;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.typing-text {
    display: block;
    margin-top: 10px;
}

.typed-text {
    color: var(--primary-light);
}

.cursor {
    display: inline-block;
    background: var(--primary);
    width: 3px;
    animation: blink 0.7s infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-light);
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

.floating-card h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: progress 2s ease-out;
}

@keyframes progress {
    from { width: 0; }
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

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

.hero-image-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    animation: float 8s ease-in-out infinite;
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
}

.stat-content p {
    color: var(--gray-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrowScroll 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes arrowScroll {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* ===================================
   Section Headers
   =================================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 20px 0;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background: var(--white);
}

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

.about-image-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    animation: pulse 2s infinite;
}

.badge-content {
    text-align: center;
    color: var(--white);
}

.badge-content h3 {
    font-size: 2rem;
    color: var(--white);
    margin: 0;
}

.badge-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.floating-element i {
    font-size: 2rem;
    color: var(--primary);
}

.element-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.element-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 3s;
}

.pattern-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.1;
    top: 50%;
    left: -50px;
    z-index: -1;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.about-highlights {
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light);
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.highlight-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.about-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary-modern,
.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary-modern:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.service-card-modern {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-glow {
    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 ease;
}

.service-card-modern:hover .service-glow {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.05);
    font-family: 'Space Grotesk', sans-serif;
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 25px;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    transition: all 0.4s ease;
}

.service-card-modern:hover .icon-bg {
    transform: rotate(45deg) scale(1.1);
    opacity: 0.2;
}

.service-icon-modern i {
    position: relative;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card-modern p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-features li {
    padding: 10px 0;
    color: var(--dark-lighter);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary);
    font-size: 0.9rem;
}

.service-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link-modern:hover {
    gap: 15px;
}

/* Featured Service */
.featured-service {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.featured-service h3,
.featured-service p,
.featured-service li,
.featured-service .service-link-modern {
    color: var(--white);
}

.featured-service .service-number {
    color: rgba(255, 255, 255, 0.1);
}

.featured-badge-new {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===================================
   Process Section
   =================================== */
.process-section {
    background: var(--white);
}

.process-timeline {
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 20px;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.process-step:hover .step-icon i {
    color: var(--white);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.process-step p {
    color: var(--gray);
    font-size: 0.95rem;
}

.process-connector {
    position: absolute;
    top: 25px;
    left: 50%;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(99, 102, 241, 0.2) 100%);
    z-index: 1;
}

/* ===================================
   Technologies Section
   =================================== */
.technologies-section {
    background: var(--light);
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tech-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-logo {
    background: var(--gradient-primary);
}

.tech-logo i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.tech-item:hover .tech-logo i {
    color: var(--white);
}

.tech-item span {
    font-weight: 600;
    color: var(--dark);
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio-section {
    background: var(--white);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--light);
    background: var(--white);
    color: var(--dark-lighter);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.portfolio-grid {
    margin-top: 40px;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card-modern {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    height: 400px;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card-modern:hover .portfolio-image-wrapper img {
    transform: scale(1.1);
}

.portfolio-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 40px;
}

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

.portfolio-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card-modern:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
}

.portfolio-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
    background: var(--light);
}

.testimonial-card-modern {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.featured-testimonial {
    background: var(--gradient-primary);
    color: var(--white);
}

.featured-testimonial .testimonial-text,
.featured-testimonial .author-info h5,
.featured-testimonial .author-info p {
    color: var(--white);
}

.featured-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.featured-testimonial .quote-icon {
    background: rgba(255, 255, 255, 0.2);
}

.quote-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.featured-testimonial .quote-icon i {
    color: var(--white);
}

.rating-stars {
    margin-bottom: 20px;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-right: 3px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-lighter);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author-modern {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light);
}

.featured-testimonial .author-image {
    border-color: rgba(255, 255, 255, 0.3);
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info p {
    margin: 0 0 5px 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

.featured-testimonial .company-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trust-item p {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

/* ===================================
   Contact Section - Continue in next part...
   =================================== */
/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-info-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-intro {
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-info-modern {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-content p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

.social-connect h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-links-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-modern {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.form-group-modern {
    margin-bottom: 0;
    position: relative;
}

.form-group-modern label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.form-control-modern,
.form-select-modern {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--dark);
}

.form-control-modern:focus,
.form-select-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.field-icon {
    position: absolute;
    right: 15px;
    top: 46px;
    color: var(--gray);
    font-size: 1.1rem;
}

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

.btn-submit-modern {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

/* ===================================
   Footer
   =================================== */
.footer-section {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-logo i {
    color: var(--primary);
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--white);
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-light);
}

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

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 50px;
    }
    
    .stats-bar {
        position: relative;
        margin-top: 50px;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .process-connector {
        display: none;
    }
    
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 20px;
    }
    
    .nav-item {
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .floating-card h4 {
        font-size: 0.95rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-image-wrapper {
        height: 300px;
    }
    
    .trust-badges {
        gap: 30px;
    }
    
    .trust-item i {
        font-size: 2rem;
    }
    
    .about-cta,
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-modern {
        padding: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }
    
    .badge-content h3 {
        font-size: 1.6rem;
    }
    
    .badge-content p {
        font-size: 0.75rem;
    }
    
    .service-card-modern {
        padding: 30px 20px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-tags {
        gap: 5px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.container-custom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.bg-primary {
    background: var(--primary);
}

.bg-gradient {
    background: var(--gradient-primary);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .contact-form-modern {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

