/* ========================================
   Webdesign Page Specific Styles
   ======================================== */

/* Hero Section - Webdesign Page (Same as home-page) */
.hero.webdesign-page {
    background: linear-gradient(135deg, #020617 0%, #0a0f1e 30%, #0f172a 60%, #020617 100%);
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Animated Grid Lines - Sci-Fi Style */
.hero.webdesign-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 150, 213, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 150, 213, 0.4) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: grid-move 15s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes grid-move {
    0% {
        transform: perspective(600px) rotateX(65deg) translateY(0);
    }
    100% {
        transform: perspective(600px) rotateX(65deg) translateY(60px);
    }
}

/* Neon Glow Effects */
.hero.webdesign-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 150, 213, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 213, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 150, 213, 0.15) 0%, transparent 50%);
    animation: neon-pulse 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.4;
        filter: blur(60px);
    }
    50% {
        opacity: 0.6;
        filter: blur(80px);
    }
}

.hero.webdesign-page .container {
    position: relative;
    z-index: 500;
}

/* Code elements for tech feel - Webdesign specific */
.hero.webdesign-page .code-element {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(59, 130, 246, 0.3);
    z-index: 2;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero.webdesign-page .code-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.hero.webdesign-page .code-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero.webdesign-page .code-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Wave separator */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Features/Services Section - Same styling as homepage */
.webdesign-page .features {
    padding: 5rem 0;
}

/* Remove webdesign-specific overrides - use default card styling */

/* Portfolio CTA Section */
.portfolio-cta-section {
    background: linear-gradient(135deg, #0096d5 0%, #005f8d 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.portfolio-cta-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.portfolio-cta-icon svg {
    color: #ffffff;
    width: 48px;
    height: 48px;
}

.portfolio-cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.portfolio-cta-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.portfolio-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    background: #ffffff;
    color: #0096d5;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.button-large:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .hero.webdesign-page {
        min-height: 60vh;
        padding: 100px 0 60px;
    }
    
    /* Hide code elements on mobile to prevent overflow */
    .hero.webdesign-page .code-element:nth-child(2),
    .hero.webdesign-page .code-element:nth-child(3) {
        display: none;
    }
    
    .hero.webdesign-page .code-element:nth-child(1) {
        left: 5%;
    }
    
    .hero.webdesign-page .hero-title {
        font-size: 2rem;
    }
    
    .hero.webdesign-page .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
}

/* Animation for portfolio items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float animation for code elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
}
