/* ========================================
   MODERN STYLES - ULTRA MODERN DESIGN SYSTEM
   ======================================== */

/* ========================================
   ROOT & VARIABLES
   ======================================== */
:root {
    --gradient-primary: linear-gradient(135deg, #2563eb, #10b981);
    --gradient-secondary: linear-gradient(135deg, #10b981, #2563eb);
    --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
    --gradient-light: linear-gradient(135deg, #f8fafc, #ffffff);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(37, 99, 235, 0.4);
}

/* ========================================
   GLOBAL BACKGROUND PATTERNS
   ======================================== */
.global-background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pattern-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 50%;
    animation-delay: 15s;
}

.shape-5 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.08;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.03;
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
        opacity: 0.06;
    }
}

/* ========================================
   ENHANCED NAVIGATION
   ======================================== */
.header-modern {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-enhanced {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-logo-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-animated {
    transition: transform 0.3s ease;
}

.nav-logo-enhanced:hover .logo-animated {
    transform: rotate(360deg) scale(1.1);
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu-enhanced {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link-enhanced {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link-enhanced:hover {
    color: var(--primary-color);
}

.nav-link-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link-enhanced:hover .nav-link-indicator,
.nav-link-enhanced.active .nav-link-indicator {
    transform: translateX(-50%) scaleX(1);
}

.nav-link-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
}

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

.nav-toggle-enhanced {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   HERO SECTION MODERN
   ======================================== */
.hero-modern {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    inset: 0;
    z-index: -1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.9) 0%,
        rgba(240, 249, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.9) 100%);
}

.hero-container-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content-enhanced {
    animation: fadeInLeft 1s ease-out;
}

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

/* Hero Badges */
.hero-badges-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge-animated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: badgeFadeIn 0.8s ease-out backwards;
}

.badge-animated:nth-child(1) { animation-delay: 0.1s; }
.badge-animated:nth-child(2) { animation-delay: 0.2s; }
.badge-animated:nth-child(3) { animation-delay: 0.3s; }

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

.badge-pulse {
    background: linear-gradient(135deg, #2563eb20, #10b98120);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.3);
    animation: badgeFadeIn 0.8s ease-out backwards, pulse 2s infinite;
}

.badge-glow {
    background: linear-gradient(135deg, #10b98120, #2563eb20);
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-float {
    background: linear-gradient(135deg, #fbbf2420, #f59e0b20);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Hero Title */
.hero-title-gradient {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line-1 {
    display: block;
    color: var(--text-dark);
    animation: slideInDown 0.8s ease-out;
}

.title-line-2 {
    display: block;
    margin-top: 0.5rem;
}

.gradient-text-animated {
    background: linear-gradient(270deg, #2563eb, #10b981, #2563eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typing-text {
    position: relative;
}

.cursor {
    animation: blink 1s infinite;
}

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

/* Hero Description */
.hero-description-enhanced {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

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

.text-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.text-accent {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Hero Stats */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card-animated {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat-card-animated:nth-child(1) { animation-delay: 0.6s; }
.stat-card-animated:nth-child(2) { animation-delay: 0.7s; }
.stat-card-animated:nth-child(3) { animation-delay: 0.8s; }

.stat-card-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Hero Buttons */
.hero-buttons-enhanced {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1s backwards;
}

.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

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

.btn-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

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

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-ripple:hover .btn-background {
    transform: translateX(0);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

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

@keyframes scrollWheel {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Hero Visual */
.hero-visual {
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

.code-window-3d {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(37, 99, 235, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.code-window-3d:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.window-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.code-content {
    padding: 2rem;
}

.code-animated {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
}

.code-keyword { color: #c678dd; }
.code-variable { color: #e06c75; }
.code-property { color: #56b6c2; }
.code-string { color: #98c379; }

.window-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent);
    z-index: -1;
    filter: blur(20px);
}

/* ========================================
   SERVICES SECTION MODERN
   ======================================== */
.services-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-gradient {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards 3D */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card-3d {
    perspective: 1000px;
    height: 400px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card-3d:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--gradient-primary);
    color: white;
}

.service-icon-3d {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.service-icon-3d i {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.service-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-hover-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: white;
}

.service-features i {
    color: #10b981;
    font-size: 1.2rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Process Timeline */
.service-process-modern {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.process-connector {
    position: absolute;
    top: 40px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

/* ========================================
   PORTFOLIO SECTION MODERN
   ======================================== */
.portfolio-modern {
    padding: 100px 0;
    background: white;
}

.portfolio-filter-modern {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.filter-count {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.8rem;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Portfolio Cards */
.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.portfolio-card-modern {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.portfolio-card-modern.animated {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card-inner {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.portfolio-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image-gradient {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.portfolio-placeholder i {
    font-size: 3rem;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    color: white;
}

.project-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.portfolio-content-modern {
    padding: 2rem;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.portfolio-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

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

.portfolio-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-react { background: #61dafb20; color: #61dafb; }
.tech-vue { background: #4fc08d20; color: #4fc08d; }
.tech-node { background: #68a06320; color: #68a063; }
.tech-python { background: #3776ab20; color: #3776ab; }
.tech-ai { background: #ff6b6b20; color: #ff6b6b; }
.tech-db { background: #336791; color: #336791; }

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
}

.portfolio-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   ABOUT SECTION MODERN
   ======================================== */
.about-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-content-modern {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.about-text-modern {
    animation: fadeInLeft 0.8s ease-out;
}

.about-intro {
    margin-bottom: 2.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-values {
    margin-bottom: 2.5rem;
}

.about-values h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.value-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.about-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-outline-modern:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-text-modern {
    background: transparent;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
}

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

/* Skills Container */
.about-skills-modern {
    animation: fadeInRight 0.8s ease-out;
}

.skills-container-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.skill-category-modern {
    margin-bottom: 2.5rem;
}

.skill-category-modern:last-child {
    margin-bottom: 0;
}

.skill-category-modern h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.skill-category-modern h5 i {
    color: var(--primary-color);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-bar-item {
    position: relative;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-progress {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-fill.animated {
    animation: fillBar 1.5s ease-out forwards;
}

.skill-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag-modern {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag-modern:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   CTA SECTION MODERN
   ======================================== */
.cta-modern {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-background-modern {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
}

.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-particles::before,
.cta-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-particles::before {
    top: -200px;
    left: -200px;
    animation: float 20s infinite ease-in-out;
}

.cta-particles::after {
    bottom: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out reverse;
}

.cta-content-modern {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-title-modern {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.cta-feature i {
    color: #10b981;
    font-size: 1.2rem;
}

.cta-buttons-modern {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
}

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

/* ========================================
   FOOTER MODERN
   ======================================== */
.footer-modern {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 80px 0 20px;
    position: relative;
}

.footer-background {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--secondary-color) 0%, transparent 50%);
}

.footer-content-modern {
    position: relative;
    z-index: 1;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-modern p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-credit i {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in-scale,
.fade-in-card {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-scale {
    transform: scale(0.9);
}

.fade-in-card {
    transform: translateY(30px) scale(0.95);
}

.fade-in-up.animated,
.fade-in-left.animated,
.fade-in-right.animated,
.fade-in-scale.animated,
.fade-in-card.animated {
    opacity: 1;
    transform: none;
}

/* ========================================
   CONTACT PAGE MODERN STYLES
   ======================================== */
.contact-hero-modern {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-background-gradient {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -300px;
    left: -300px;
    animation: float 20s infinite ease-in-out;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    bottom: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out reverse;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 25s infinite ease-in-out;
}

.contact-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-stat i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Contact Content */
.contact-content-modern {
    padding: 80px 0;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-modern {
    animation: fadeInLeft 0.8s ease-out;
}

.info-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-methods-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-method-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
}

.method-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.icon-bg-animated {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 12px;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.method-icon-wrapper i {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.method-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.method-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.method-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

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

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.tech-badge-mini {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Social Connect */
.social-connect-modern {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
}

.social-connect-modern h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.social-card.linkedin:hover { border-color: #0077b5; color: #0077b5; }
.social-card.github:hover { border-color: #333; color: #333; }
.social-card.twitter:hover { border-color: #1da1f2; color: #1da1f2; }

.social-card i {
    font-size: 1.5rem;
}

/* Contact Form Modern */
.contact-form-modern {
    animation: fadeInRight 0.8s ease-out;
}

.form-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-modern {
    position: relative;
}

.form-group-modern.full-width {
    grid-column: 1 / -1;
}

.input-wrapper,
.textarea-wrapper,
.select-wrapper {
    position: relative;
}

.form-input-modern,
.form-textarea-modern,
.form-select-modern {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input-modern:focus,
.form-textarea-modern:focus,
.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-label-floating {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
}

.form-input-modern:focus ~ .form-label-floating,
.form-input-modern.has-value ~ .form-label-floating,
.form-textarea-modern:focus ~ .form-label-floating,
.form-textarea-modern.has-value ~ .form-label-floating {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 4px);
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.input-wrapper.focused .input-focus-border,
.textarea-wrapper.focused .input-focus-border {
    transform: translateX(-50%) scaleX(1);
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.char-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.char-counter.warning {
    color: #f59e0b;
}

.input-error {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.input-wrapper.error .form-input-modern,
.textarea-wrapper.error .form-textarea-modern,
.select-wrapper.error .form-select-modern {
    border-color: #ef4444;
}

/* Checkbox Modern */
.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-modern input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-box i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: white;
    font-size: 0.8rem;
}

.checkbox-modern input[type="checkbox"]:checked ~ .checkbox-box {
    background: var(--gradient-primary);
    border-color: transparent;
}

.checkbox-modern input[type="checkbox"]:checked ~ .checkbox-box i,
.checkbox-box.checked i {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-actions {
    margin-top: 2rem;
}

.btn-submit-modern {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.btn-submit-modern.loading .btn-content {
    opacity: 0;
}

.btn-submit-modern.loading .btn-loader {
    opacity: 1;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Form Success/Error */
.form-success-modern,
.form-error-modern {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.success-animation {
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-out;
}

.checkmark-circle i {
    font-size: 2.5rem;
    color: white;
}

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

.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.btn-reset {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* FAQ Modern */
.faq-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.faq-grid-modern {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item-modern:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item-modern.open .faq-question {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.toggle-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.faq-item-modern.open .toggle-icon::before {
    transform: rotate(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.faq-item-modern.open .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-pill {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.maintenance-list {
    list-style: none;
    margin-top: 1rem;
}

.maintenance-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.maintenance-list i {
    color: var(--secondary-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .nav-menu-enhanced {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu-enhanced.active {
        left: 0;
    }

    .nav-toggle-enhanced {
        display: flex;
    }

    .hero-container-enhanced,
    .about-grid,
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-title-gradient {
        font-size: 2.5rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .process-connector {
        display: none;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-methods-modern {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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