/* ==========================================================================
   Erolia CSS Stylesheet - Premium Dark & Neon Theme
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark: hsl(225, 30%, 7%);
    --bg-card: hsla(225, 30%, 12%, 0.6);
    --bg-card-hover: hsla(225, 30%, 16%, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(147, 51, 234, 0.3);
    
    --primary: hsl(263, 85%, 65%);
    --primary-glow: hsla(263, 85%, 65%, 0.4);
    --primary-light: hsl(263, 90%, 75%);
    
    --secondary: hsl(190, 90%, 50%);
    --secondary-glow: hsla(190, 90%, 50%, 0.4);
    
    --accent: hsl(290, 90%, 60%);
    
    --text-main: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 15%, 75%);
    --text-dark: hsl(220, 15%, 15%);
    
    --font-family: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --gradient-hero: linear-gradient(135deg, hsl(263, 85%, 65%) 0%, hsl(190, 90%, 50%) 100%);
    --gradient-purple: linear-gradient(135deg, hsl(263, 85%, 65%) 0%, hsl(290, 90%, 60%) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(225, 30%, 7%) 0%, hsl(225, 30%, 3%) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Button Typography & Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--primary-glow), 0 0 15px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
}

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

/* Badges & Section Tags */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(147, 51, 234, 0.12);
    border: 1px solid rgba(147, 51, 234, 0.25);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-header {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    display: flex;
    align-items: center;
}

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

.logo-dot {
    color: var(--secondary);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-glass);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: inline-block;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 60%);
    filter: blur(20px);
    z-index: 0;
}

/* Glassmorphic Mockup Frame */
.mockup-frame {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    z-index: 1;
    transition: var(--transition-smooth);
}

.mockup-frame:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glass-glow);
    box-shadow: 0 35px 70px rgba(147, 51, 234, 0.15), 0 0 30px rgba(147, 51, 234, 0.1);
}

.mockup-header {
    background: rgba(30, 41, 59, 0.5);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-left: 20px;
}

.mockup-body {
    padding: 20px;
    min-height: 280px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
}

.mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border-glass);
    padding-right: 12px;
}

.side-item {
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.side-item.active {
    background: var(--gradient-hero);
}

.mockup-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.glow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
}

.widget-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.widget-val {
    font-size: 1.3rem;
    font-weight: 700;
}

.widget-chart-bar {
    margin-top: 8px;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.widget-chart-bar span {
    display: block;
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.table-row.header {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-align: center;
    width: fit-content;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 30, 0.5) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-glass-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 25px rgba(147, 51, 234, 0.08);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
}

.service-icon-wrapper.icon-purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.03) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.1);
}

.service-icon-wrapper.icon-cyan {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.service-card:hover .service-features li i {
    animation: bounceRight 0.5s ease;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.service-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    width: fit-content;
    transition: var(--transition-fast);
    z-index: 5;
}

.service-detail-link i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.service-detail-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.service-detail-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Desktop Integration Section
   ========================================================================== */
.integration-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

.integration-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.integration-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.integration-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.integration-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.point-item {
    display: flex;
    gap: 16px;
}

.point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.point-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.point-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* CSS Diagram styling */
.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-canvas {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.diagram-node {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    width: 140px;
    text-align: center;
}

.diagram-node:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
}

.desktop-node .node-icon {
    color: var(--accent);
}

.cloud-node {
    width: 160px;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.cloud-node .node-icon {
    color: var(--primary-light);
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.sub-nodes-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.web-node {
    width: 100px;
    padding: 12px 8px;
}

.web-node .node-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    color: var(--secondary);
}

/* Connecting Line Animations */
.sync-lines, .sync-lines-vertical {
    position: absolute;
    z-index: 1;
}

.sync-lines {
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background: rgba(255,255,255,0.05);
}

.sync-lines-vertical {
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background: rgba(255,255,255,0.05);
}

.line-left-right {
    height: 100%;
    width: 100%;
    position: relative;
}

.line-vertical {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Pulse dots moving through connection lines */
.pulse-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
}

.dot-1 {
    top: 0;
    left: -2px;
    animation: flowDown 3s infinite linear;
}

.dot-2 {
    bottom: 0;
    left: -2px;
    animation: flowUp 3s infinite linear;
}

.pulse-dot.dot-v1 {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    top: 0;
    left: -2px;
    animation: flowDown 2.5s infinite linear;
}

.pulse-dot.dot-v2 {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    bottom: 0;
    left: -2px;
    animation: flowUp 2.5s infinite linear;
}

@keyframes flowDown {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes flowUp {
    0% { bottom: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.5) 0%, transparent 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-img-wrapper {
    width: 100%;
    height: 220px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS Styled Website Screen Mockups */
.project-mockup {
    width: 90%;
    height: 85%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 16px;
    position: absolute;
    bottom: -10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.portfolio-card:hover .project-mockup {
    transform: translateY(-10px);
}

.mockup-brand {
    font-weight: 800;
    font-size: 1.1rem;
}

.mockup-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    width: fit-content;
    font-weight: 600;
}

.mockup-overlay-text {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: auto;
}

/* Specific portfolio theme styling */
.theme-burger {
    background: linear-gradient(135deg, #1e1b18 0%, #3a2312 100%);
    border-top: 3px solid #f97316;
}
.theme-burger .mockup-brand {
    color: #f97316;
}
.theme-burger .mockup-badge {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.theme-bereket {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 3px solid #0ea5e9;
}
.theme-bereket .mockup-brand {
    color: #0ea5e9;
}
.theme-bereket .mockup-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.theme-esyagayrimenkul {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    border-top: 3px solid #10b981;
}
.theme-esyagayrimenkul .mockup-brand {
    color: #10b981;
}
.theme-esyagayrimenkul .mockup-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.portfolio-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.portfolio-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.portfolio-link i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    color: var(--secondary);
}

.portfolio-link:hover i {
    transform: translate(3px, -3px);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.calculator-info h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.calculator-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.calculator-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.step-item p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Calculator options box */
.calculator-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
}

.calculator-box h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.calculator-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-option {
    display: grid;
    grid-template-columns: 24px 36px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    user-select: none;
}

.calc-option:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.15);
}

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

/* Custom Checkbox circle */
.option-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.option-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-fast);
}

.calc-option input[type="checkbox"]:checked ~ .option-check {
    border-color: var(--secondary);
}

.calc-option input[type="checkbox"]:checked ~ .option-check::after {
    transform: scale(1);
}

.calc-option input[type="checkbox"]:checked ~ .option-icon {
    color: var(--secondary);
}

.calc-option input[type="checkbox"]:checked {
    background: rgba(6, 182, 212, 0.05);
}

.calc-option:has(input[type="checkbox"]:checked) {
    background: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.3);
}

.option-icon {
    font-size: 1.15rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
}

.option-details {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.option-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary);
}

/* Range Slider wrapper */
.calculator-range-wrapper {
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

#page-count-val {
    color: var(--secondary);
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary-glow);
    transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Result box */
.calculator-result-box {
    margin-top: 32px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.price-value .currency {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-left: 4px;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 30, 0.4) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.form-group input[readonly] {
    background: rgba(255,255,255,0.02);
    border-style: dashed;
    cursor: default;
}

.form-group input[readonly]:focus {
    border-color: var(--border-glass);
    box-shadow: none;
}

/* Success Messages */
.form-message {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 20px;
    font-weight: 500;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-glass);
    background: hsl(225, 30%, 4%);
}

.footer-top {
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 320px;
}

.footer-links h4, .footer-products h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links ul, .footer-products ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-products li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 16px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================================================
   Scroll Animations & Reveal States
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .integration-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
