/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #3d5af1;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2rem;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--highlight-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
}

.btn-secondary:hover {
    background-color: rgba(61, 90, 241, 0.05);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: rgba(61, 90, 241, 0.05);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 90, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(61, 90, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61, 90, 241, 0);
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-sq {
    background-color: var(--highlight-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--highlight-color);
}

.contact-link {
    background-color: var(--highlight-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.contact-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-link::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
}

.hero-subheadline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-lighter);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(61, 90, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--highlight-color);
    font-size: 1.8rem;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== DEMO CARDS ===== */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.demo-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.demo-card-image {
    height: 220px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.demo-card-content {
    padding: 30px;
}

.demo-card-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.demo-card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.demo-card-actions {
    display: flex;
    gap: 15px;
}

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

/* ===== PROJECTS PREVIEW ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-tag {
    background-color: rgba(61, 90, 241, 0.1);
    color: var(--highlight-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.project-link:hover {
    gap: 12px;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(61, 90, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--highlight-color);
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--light-gray);
    padding: 60px 0 30px;
}

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

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

.footer-tagline {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1rem;
}

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

.footer-contact {
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-contact a {
    color: var(--highlight-color);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-powered {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-powered a {
    color: var(--highlight-color);
}

.footer-powered a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-lighter);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
    width: 100%;
}

/* ===== ANIMATION UTILITIES ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-headline {
        font-size: 3rem;
    }
    
    .hero-subheadline {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .demos-grid,
    .categories-grid,
    .projects-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-card-actions {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}
/* ===== DEMOS PAGE SPECIFIC STYLES ===== */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Full Demo Cards */
.demos-grid-full {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.demo-card-full {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.demo-card-full.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-card-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.demo-card-full-image {
    position: relative;
    min-height: 300px;
}

.demo-card-full-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.3rem;
}

.demo-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.demo-card-full-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-card-full-header {
    margin-bottom: 20px;
}

.demo-card-full-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.demo-feature i {
    color: var(--highlight-color);
}

.demo-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.demo-card-full-actions {
    display: flex;
    gap: 15px;
}

/* Premium Actions - Enhanced for Demo Cards */
.premium-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* View Demo Button - Primary */
.btn-demo-view {
    width: 100%;
    background: linear-gradient(135deg, var(--highlight-color) 0%, #5d6fef 100%);
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(61, 90, 241, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-demo-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-demo-view:hover::before {
    left: 100%;
}

.btn-demo-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 90, 241, 0.35);
}

/* Email Request Button - Premium Style */
.btn-lead-email {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-color);
    border: 2px solid var(--highlight-color);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-lead-email .btn-arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.btn-lead-email:hover {
    background: linear-gradient(135deg, var(--highlight-color) 0%, #5d6fef 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 90, 241, 0.25);
}

.btn-lead-email:hover .btn-arrow {
    transform: translateX(4px);
}

/* WhatsApp Button - Brand Colors */
.btn-lead-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-lead-whatsapp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-lead-whatsapp:hover::before {
    width: 300px;
    height: 300px;
}

.btn-lead-whatsapp:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-lead-whatsapp i {
    font-size: 1.1rem;
    animation: whatsappPulse 2s infinite;
}

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

/* Success Notification */
.request-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.4s ease, slideOutRight 0.4s ease 2.6s;
    font-weight: 600;
}

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

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

/* CTA Section */
.cta-section {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 60px;
    text-align: center;
}

.cta-section .cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-section .cta-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive for Demos Page */
@media (max-width: 992px) {
    .demo-card-full {
        grid-template-columns: 1fr;
    }
    
    .demo-card-full-image {
        min-height: 250px;
    }
    
    .demo-card-full-content {
        padding: 30px;
    }
    
    .premium-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .demo-card-full-actions,
    .premium-actions {
        flex-direction: column;
    }
    
    .lead-buttons-group {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .demo-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-demo-view,
    .btn-lead-email,
    .btn-lead-whatsapp {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* ===== PROJECTS PAGE SPECIFIC STYLES ===== */
/* Stats Counter */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
}

.stat-number.animated {
    animation: countUp 1.5s ease-out forwards;
}

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

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Featured Project */
.featured-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-project-image {
    position: relative;
}

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

.project-image-main .image-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    padding: 20px;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--highlight-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-category {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tag {
    background-color: rgba(61, 90, 241, 0.1);
    color: var(--highlight-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.project-highlights {
    margin-bottom: 30px;
}

.project-highlights h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.highlight-list li i {
    color: var(--highlight-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.project-actions {
    display: flex;
    gap: 15px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-item-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-view-btn {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.portfolio-view-btn:hover {
    background-color: var(--highlight-color);
    color: var(--white);
    transform: scale(1.1);
}

.portfolio-item-content {
    padding: 30px;
}

.portfolio-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.portfolio-item-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.portfolio-category {
    background-color: rgba(61, 90, 241, 0.1);
    color: var(--highlight-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    background-color: var(--light-gray);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-link:hover {
    gap: 12px;
}

/* Process Timeline */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 35px;
    width: 2px;
    height: calc(100% + 20px);
    background-color: var(--gray);
    z-index: -1;
}

.process-step-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--highlight-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.process-step-icon i {
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.process-step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.process-step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive for Projects Page */
@media (max-width: 992px) {
    .featured-project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-container {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        justify-content: flex-start;
    }
    
    .stat-item {
        width: calc(50% - 15px);
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .portfolio-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .portfolio-tags {
        width: 100%;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .process-step-icon {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .stat-item {
        width: 100%;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step-content h3 {
        font-size: 1.3rem;
    }
}

/* ===== DEMO TEMPLATE PAGE SPECIFIC STYLES ===== */
/* Demo Header */
.demo-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.demo-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.demo-header-breadcrumb {
    margin-bottom: 30px;
}

.demo-header-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.demo-header-breadcrumb a:hover {
    color: var(--highlight-color);
    gap: 12px;
}

.demo-header-main {
    text-align: center;
}

.demo-category-badge {
    display: inline-block;
    background-color: rgba(61, 90, 241, 0.1);
    color: var(--highlight-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.demo-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
}

.demo-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.demo-header-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

/* Demo Preview */
.demo-preview-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.demo-device-frame {
    background-color: #f1f3f5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.device-header {
    background-color: #e9ecef;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.device-dots {
    display: flex;
    gap: 8px;
}

.device-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #adb5bd;
}

.device-dots span:nth-child(1) {
    background-color: #ff6b6b;
}

.device-dots span:nth-child(2) {
    background-color: #ffd166;
}

.device-dots span:nth-child(3) {
    background-color: #06d6a0;
}

.device-url {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
}

.demo-screen {
    padding: 30px;
    background-color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-screen-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.demo-hero {
    margin-bottom: 40px;
}

.demo-hero h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.demo-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.demo-features-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-feature-box {
    background-color: var(--light-gray);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    width: 150px;
    transition: var(--transition);
}

.demo-feature-box:hover {
    transform: translateY(-5px);
    background-color: rgba(61, 90, 241, 0.05);
}

.demo-feature-box i {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.demo-feature-box h4 {
    font-size: 1rem;
    color: var(--primary-color);
}

.demo-cta {
    background-color: rgba(61, 90, 241, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--highlight-color);
}

.demo-cta p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.demo-cta-btn {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.demo-cta-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.demo-preview-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.preview-size-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.preview-size-btn:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

.preview-size-btn.active {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--white);
}

/* Features Detail */
.features-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-detail-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-detail-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(61, 90, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--highlight-color);
    font-size: 2rem;
}

.feature-detail-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-detail-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Template Sections */
.sections-showcase {
    max-width: 800px;
    margin: 0 auto;
}

.section-showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray);
    opacity: 0;
    transform: translateY(30px);
}

.section-showcase-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-showcase-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(61, 90, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-showcase-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-showcase-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Technical Specifications */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.specs-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.specs-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.specs-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li strong {
    color: var(--primary-color);
}

/* Demo CTA Section */
.demo-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.demo-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.demo-cta-content .cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.demo-cta-content .cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.demo-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.demo-cta-note {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.demo-cta-note p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.demo-cta-note i {
    color: var(--highlight-color);
}

/* Related Demos */
.related-demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.related-demo-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-demo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.related-demo-image {
    height: 180px;
}

.related-demo-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.related-demo-content {
    padding: 30px;
}

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

.related-demo-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive for Demo Template */
@media (max-width: 992px) {
    .demo-title {
        font-size: 2.5rem;
    }
    
    .demo-subtitle {
        font-size: 1.2rem;
    }
    
    .features-detail-grid,
    .specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .demo-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .demo-title {
        font-size: 2.2rem;
    }
    
    .demo-header-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-header-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .demo-preview-container {
        padding: 20px;
    }
    
    .demo-screen {
        padding: 20px;
        min-height: 400px;
    }
    
    .demo-features-showcase {
        gap: 20px;
    }
    
    .demo-feature-box {
        width: 130px;
        padding: 20px 15px;
    }
    
    .section-showcase-item {
        flex-direction: column;
        text-align: center;
    }
    
    .section-showcase-icon {
        margin: 0 auto;
    }
    
    .related-demos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .demo-title {
        font-size: 1.8rem;
    }
    
    .demo-subtitle {
        font-size: 1.1rem;
    }
    
    .demo-preview-actions {
        flex-direction: column;
    }
    
    .preview-size-btn {
        justify-content: center;
    }
    
    .features-detail-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-cta-content .cta-title {
        font-size: 2rem;
    }
}