/* =====================================================
ZWDevs Portfolio - Modern CSS with Animations
   ===================================================== */

/* Variables */
:root {
    /* Colors - Deep Purple/Indigo + Teal Palette */
    --primary: #3C3982;
    --primary-light: #5A57A8;
    --primary-dark: #262563;
    --secondary: #275C63;
    --accent: #3AAFA9;
    --accent-alt: #243A4D;
    --success: #275C63;
    --dark: #17102E;
    --dark-light: #16174D;
    --dark-lighter: #262563;
    --light: #E8F4F8;
    --gray: #8892B0;
    --gray-light: #A8B2D1;
    
    /* Gradients - Purple & Teal */
    --gradient-primary: linear-gradient(135deg, #3C3982 0%, #275C63 50%, #3AAFA9 100%);
    --gradient-secondary: linear-gradient(135deg, #262563 0%, #3C3982 100%);
    --gradient-accent: linear-gradient(135deg, #275C63 0%, #3AAFA9 100%);
    --gradient-dark: linear-gradient(135deg, #17102E 0%, #16174D 100%);
    --gradient-glow: linear-gradient(135deg, rgba(60, 57, 130, 0.25) 0%, rgba(39, 92, 99, 0.2) 50%, rgba(58, 175, 169, 0.15) 100%);
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Smooth Scroll with Lenis-like effect */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   Custom Cursor
   ===================================================== */
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

.cursor.hover, .cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
}

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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-text {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-light);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

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

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-light);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--light);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--light);
    transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light);
    transition: var(--transition-normal);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: 0 4px 20px rgba(60, 57, 130, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(58, 175, 169, 0.6);
}

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

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

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

.sphere-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-glow);
    border: 1px solid rgba(58, 175, 169, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .line {
    display: block;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: var(--dark-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-lighter);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.window-title {
    font-size: 0.85rem;
    color: var(--gray);
}

.window-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.window-body code {
    display: block;
}

.window-body .purple { color: #c792ea; }
.window-body .blue { color: #89ddff; }
.window-body .yellow { color: #ffcb6b; }
.window-body .green { color: #c3e88d; }

/* Floating Icons */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--dark-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatIcon 4s ease-in-out infinite;
}

.icon-1 { top: -20px; left: -30px; color: #8892be; animation-delay: 0s; }
.icon-2 { top: 20%; right: -30px; color: #f7df1e; animation-delay: 0.5s; }
.icon-3 { bottom: 30%; left: -40px; color: #e34f26; animation-delay: 1s; }
.icon-4 { bottom: -20px; right: 20%; color: #264de4; animation-delay: 1.5s; }
.icon-5 { top: 40%; left: 50%; color: #00758f; animation-delay: 2s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

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

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: flex !important;
        justify-content: center;
    }
}

/* =====================================================
   Section Styles
   ===================================================== */
section {
    padding: var(--section-padding);
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-glow);
    border: 1px solid rgba(58, 175, 169, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 15px;
}

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

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

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

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.image-container {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

/* Floating particles inside placeholder */
.image-placeholder::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    animation: blobFloat 6s ease-in-out infinite;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    animation: blobFloat 8s ease-in-out infinite reverse;
}

.image-placeholder i {
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.image-placeholder span {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    animation: iconPulse 3s ease-in-out infinite 0.5s;
}

/* Orbiting ring */
.image-container::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    animation: spinSlow 12s linear infinite;
    z-index: 0;
}

/* Glow dots orbiting */
.image-container::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: -7px;
    left: calc(50% - 7px);
    animation: orbitDot 12s linear infinite;
    box-shadow: 0 0 12px rgba(99,102,241,0.8);
    z-index: 1;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitDot {
    from { transform: rotate(0deg) translateX(calc(50% + 12px)) rotate(0deg); 
           left: calc(50% - 7px); top: -7px; }
    to   { transform: rotate(360deg) translateX(calc(50% + 12px)) rotate(-360deg);
           left: calc(50% - 7px); top: -7px; }
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-badge .text {
    font-size: 0.85rem;
    color: var(--gray);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.about-text p strong {
    color: var(--primary-light);
}

/* Skills */
.skills-container {
    margin: 30px 0;
}

.skill-item {
    margin-bottom: 40px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--dark-lighter);
    border-radius: 4px;
    overflow: hidden;
}

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

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* =====================================================
   Services Section
   ===================================================== */
.services {
    background: var(--dark);
}

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

.service-card {
    background: var(--dark-light);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(60, 57, 130, 0.2);
}

.service-card.featured {
    background: var(--gradient-glow);
    border: 1px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

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

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 10px;
}

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

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 500;
}

.service-link:hover {
    color: var(--light);
}

.service-link i {
    transition: var(--transition-normal);
}

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

/* =====================================================
   Projects Section
   ===================================================== */
.projects {
    background: var(--gradient-dark);
}

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

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--dark-lighter);
    border-radius: 50px;
    color: var(--gray);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--dark-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-screenshot {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.project-card:hover .project-screenshot {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-placeholder.ecommerce {
    background: linear-gradient(135deg, #275C63 0%, #3AAFA9 100%);
}

.project-placeholder.business {
    background: linear-gradient(135deg, #243A4D 0%, #275C63 100%);
}

.project-placeholder.creative {
    background: linear-gradient(135deg, #3AAFA9 0%, #275C63 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 57, 130, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transform: scale(0);
    transition: var(--transition-normal);
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-link:hover {
    background: var(--dark);
    color: var(--light);
}

.project-info {
    padding: 25px;
}

.project-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gradient-glow);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--dark);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray-light);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials {
    background: var(--dark);
    padding: 100px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--dark-light);
    padding: 40px;
    border-radius: var(--radius-md);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

.rating {
    margin-left: auto;
    color: var(--accent);
}

@media (max-width: 500px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    background: var(--gradient-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--dark-light);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateX(10px);
    border-left: 3px solid var(--primary);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.info-text a, .info-text span {
    font-size: 1rem;
    font-weight: 500;
}

.info-text a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

/* Glass Button Social Links */
.social-links .glass-btn {
    width: 70px !important;
    height: 70px !important;
    background-color: #1a1a2e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.8rem !important;
    color: #ffffff;
}

.glass-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* GitHub Button */
.glass-btn.github-btn {
    box-shadow: 0px 20px 20px -17px rgba(88, 96, 105, 0.5);
}

.glass-btn.github-btn:hover {
    box-shadow: 0px 20px 35px -16px rgba(88, 96, 105, 0.7);
}

.glass-btn.github-btn i {
    color: #ffffff;
}

/* LinkedIn Button */
.glass-btn.linkedin-btn {
    box-shadow: 0px 20px 20px -17px rgba(0, 119, 181, 0.53);
}

.glass-btn.linkedin-btn:hover {
    box-shadow: 0px 20px 35px -16px rgba(0, 119, 181, 0.65);
}

.glass-btn.linkedin-btn i {
    color: #0077b5;
}

/* Instagram Button */
.glass-btn.instagram-btn {
    box-shadow: 0px 20px 20px -17px rgba(225, 48, 108, 0.53);
}

.glass-btn.instagram-btn:hover {
    box-shadow: 0px 20px 35px -16px rgba(225, 48, 108, 0.65);
}

.glass-btn.instagram-btn i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WhatsApp Button */
.glass-btn.whatsapp-btn {
    box-shadow: 0px 20px 20px -17px rgba(37, 211, 102, 0.53);
}

.glass-btn.whatsapp-btn:hover {
    box-shadow: 0px 20px 35px -16px rgba(37, 211, 102, 0.65);
}

.glass-btn.whatsapp-btn i {
    color: #25D366;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(60, 57, 130, 0.3);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form-group select option {
    background: var(--dark);
}

.contact-form .btn {
    grid-column: span 2;
    justify-content: center;
}

/* Form Messages */
.form-message {
    grid-column: span 2;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width, .contact-form .btn, .form-message {
        grid-column: span 1;
    }
}

/* =====================================================
   WhatsApp CTA Section
   ===================================================== */
.whatsapp-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-card {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--dark-lighter);
    transition: var(--transition-normal);
}

.whatsapp-card:hover {
    border-color: #25D366;
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.15);
}

.whatsapp-icon-big {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: white;
    animation: pulse-green 2s ease infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.whatsapp-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--light);
}

.whatsapp-card > p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.7;
}

.whatsapp-btn-wrapper {
    display: inline-block;
    margin-bottom: 30px;
}

.whatsapp-btn-wrapper button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
}

.whatsapp-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    width: 45px;
    height: 45px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    font-size: 1.1rem;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--gray-light);
}

@media (max-width: 600px) {
    .whatsapp-card {
        padding: 35px 25px;
    }
    
    .whatsapp-card h3 {
        font-size: 1.5rem;
    }
    
    .whatsapp-features {
        gap: 20px;
    }
    
    .whatsapp-btn-wrapper button {
        font-size: 0.95rem;
        height: 56px;
        padding-left: 4.5rem;
        padding-right: 1.5rem;
    }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--dark);
    padding: 80px 0 30px;
    border-top: 1px solid var(--dark-lighter);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4, .footer-services h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul, .footer-services ul {
    list-style: none;
}

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

.footer-links a, .footer-services a {
    color: var(--gray);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-lighter);
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #ef4444;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 20px auto 0;
    }
    
    .footer-links h4::after, .footer-services h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* =====================================================
   Back to Top
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 175, 169, 0.5);
}

/* =====================================================
   Animations
   ===================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }

.projects-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.4s; }

/* Text reveal animation */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(58, 175, 169, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(60, 57, 130, 0.6);
    }
}

/* =====================================================
   TYPEWRITER TEXT ANIMATION
   ===================================================== */
.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter-text.no-caret {
    border-right: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Word by Word Animation */
.word-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    animation: wordReveal 0.6s ease forwards;
}

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

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* =====================================================
   HOLOGRAPHIC CARD EFFECT (Pokemon Card Style)
   ===================================================== */
.holo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.holo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 75%,
        transparent 100%
    );
    background-size: 250% 250%;
    background-position: 125% 125%;
    z-index: 10;
    pointer-events: none;
    transition: background-position 0.5s ease;
}

.holo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 0, 0, 0.2) 0%,
        rgba(255, 165, 0, 0.2) 14%,
        rgba(255, 255, 0, 0.2) 28%,
        rgba(0, 255, 0, 0.2) 42%,
        rgba(0, 255, 255, 0.2) 56%,
        rgba(0, 0, 255, 0.2) 70%,
        rgba(128, 0, 128, 0.2) 84%,
        rgba(255, 0, 0, 0.2) 100%
    );
    background-size: 400% 400%;
    z-index: 11;
    opacity: 0;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.holo-card:hover::before {
    background-position: 0% 0%;
}

.holo-card:hover::after {
    opacity: 1;
    animation: holoGradient 3s ease infinite;
}

.holo-card:hover {
    box-shadow: 
        0 0 30px rgba(60, 57, 130, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

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

/* Holographic Sparkle */
.holo-card .holo-sparkle {
    position: absolute;
    inset: 0;
    z-index: 12;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.35) 0%, transparent 2.5%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 1.5%),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 2%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.holo-card:hover .holo-sparkle {
    opacity: 1;
    animation: sparkle 2s ease infinite;
}

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

/* Ensure card content stays above effects */
.holo-card > * {
    position: relative;
    z-index: 1;
}

.holo-card .project-image,
.holo-card .project-info {
    position: relative;
    z-index: 1;
}

/* =====================================================
   HORIZONTAL SCROLL GALLERY
   ===================================================== */
.projects-horizontal-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.projects-horizontal {
    display: flex;
    gap: 30px;
    padding: 30px 50px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.projects-horizontal::-webkit-scrollbar {
    display: none;
}

.projects-horizontal:active {
    cursor: grabbing;
}

.projects-horizontal .project-card {
    flex: 0 0 380px;
    scroll-snap-align: center;
}

/* Scroll Progress */
.scroll-progress-container {
    width: 200px;
    height: 4px;
    background: var(--dark-lighter);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

/* Scroll Navigation */
.scroll-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.scroll-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-light);
    border: 2px solid var(--dark-lighter);
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.scroll-nav-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

/* Drag Hint */
.drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 15px;
}

.drag-hint i {
    animation: dragArrow 1.5s ease infinite;
}

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

/* Responsive for new features */
@media (max-width: 768px) {
    .projects-horizontal {
        padding: 20px;
        gap: 20px;
    }
    
    .projects-horizontal .project-card {
        flex: 0 0 300px;
    }
    
    .holo-card::after {
        display: none;
    }

    .scroll-nav-btn {
        width: 40px;
        height: 40px;
    }
}
