/* Web Development Modern 2025 Styles - Brand Consistent */

:root {
    /* Brand Palette from Main.css */
    --web-bg: #04202c;
    --web-surface: rgba(10, 106, 110, 0.1);
    /* Teal surface tint */
    --web-glass: rgba(255, 255, 255, 0.05);
    --web-border: rgba(102, 165, 173, 0.2);

    --brand-teal: #0A6A6E;
    --brand-light: #66a5ad;
    --brand-glow: rgba(10, 106, 110, 0.6);

    /* Gradients tailored to brand */
    --gradient-glow: linear-gradient(135deg, #ffffff 0%, #66a5ad 100%);
}

body.web-dev-page {
    background-color: var(--web-bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   Canvas Hero Section
   ========================================= */
.web-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(10, 106, 110, 0.2), transparent 60%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    /* Increased visibility for better effect */
}

.web-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 106, 110, 0.15);
    border: 1px solid rgba(102, 165, 173, 0.3);
    padding: 8px 25px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}

.web-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.web-hero-title span {
    background: var(--gradient-glow);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.web-hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Premium Button (Teal Theme) */
.web-btn-glow {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    background: var(--brand-teal);
    /* Solid brand color base */
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(10, 106, 110, 0.3);
}

.web-btn-glow:hover {
    background: #0d8387;
    /* Slightly lighter teal */
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(10, 106, 110, 0.5);
    color: #fff;
}

.web-btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}

.web-btn-glow:hover::before {
    left: 100%;
}

/* =========================================
   Tech Stack Ticker
   ========================================= */
.tech-strip {
    background: rgba(4, 32, 44, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 60px;
    animation: scrollTech 25s linear infinite;
    /* Slower, smoother */
    width: max-content;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 1.2rem;
    transition: 0.4s;
}

.tech-item:hover {
    color: #fff;
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--brand-light);
    /* Tinted icon */
}

.tech-item:hover i {
    color: #fff;
}

@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Bento Services (Brand Consistent)
   ========================================= */
.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-modern h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.section-header-modern p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.web-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 25px;
}

.web-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.web-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-light);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.web-card-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.02);
    transition: 0.6s ease;
    z-index: 0;
}

.web-card:hover .web-card-bg-icon {
    transform: rotate(-5deg) scale(1.1) translateX(-10px);
    color: rgba(10, 106, 110, 0.1);
}

.web-card-content {
    position: relative;
    z-index: 1;
}

.web-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 106, 110, 0.15);
    /* Brand tint */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #fff;
    /* White icon on brand bg */
    font-size: 1.6rem;
    transition: 0.3s;
}

.web-card:hover .web-card-icon {
    background: var(--brand-teal);
    transform: scale(1.1);
}

.web-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

.web-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.web-card.large {
    grid-column: span 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(10, 106, 110, 0.05));
}

/* =========================================
   Code Preview Section (Node/Java/JS)
   ========================================= */
.code-preview-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.code-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.window-header {
    background: #161b22;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6edf3;
}

.code-line {
    display: block;
}

.kwd {
    color: #ff7b72;
}

/* Keyword */
.str {
    color: #a5d6ff;
}

/* String */
.func {
    color: #d2a8ff;
}

/* Function */
.var {
    color: #79c0ff;
}

/* Variable */
.num {
    color: #79c0ff;
}

/* Number */

/* =========================================
   CMS / Tilda / WordPress Section
   ========================================= */
.cms-section {
    padding: 100px 0;
    position: relative;
}

.cms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cms-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cms-info p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cms-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Impulse Animation Container */
.impulse-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--brand-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(10, 106, 110, 0.4);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.impulse-core {
    font-size: 3rem;
    color: white;
}

/* Pulse Rings */
.impulse-wrapper::before,
.impulse-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--brand-teal);
    animation: impulse 3s linear infinite;
    opacity: 0;
    z-index: -1;
}

.impulse-wrapper::after {
    animation-delay: 1.5s;
}

/* Orbiting CMS Logos */
.cms-orbit-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.cms-orbit-item:nth-child(2) {
    top: 20%;
    left: 10%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.cms-orbit-item:nth-child(3) {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.cms-orbit-item:nth-child(4) {
    top: 10%;
    right: 20%;
    animation: float 6s ease-in-out infinite 2s;
}

.cms-orbit-item i {
    font-size: 1.5rem;
    color: var(--brand-light);
}

.cms-orbit-item:hover {
    border-color: var(--brand-teal);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(10, 106, 110, 0.3);
}

/* Animations */
@keyframes impulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .web-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .web-card.large {
        grid-column: span 1;
    }

    .code-preview-section {
        flex-direction: column;
        gap: 40px;
    }

    .web-hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .web-hero {
        min-height: 600px;
        padding-top: 100px;
    }

    .web-hero-title {
        font-size: 2.8rem;
    }

    .web-hero-desc {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .web-hero-content {
        padding: 0 15px;
    }

    .hero-badge {
        padding: 6px 18px;
        font-size: 0.8rem;
    }

    .web-btn-glow {
        width: 160px;
        height: 50px;
        font-size: 0.9rem;
    }

    .tech-strip {
        padding: 20px 0;
    }

    .tech-item {
        font-size: 1rem;
        gap: 8px;
    }

    .tech-item i {
        font-size: 1.2rem;
    }

    .section-header-modern h2 {
        font-size: 2.2rem;
    }

    .web-card {
        padding: 30px 20px;
    }

    .web-card h3 {
        font-size: 1.4rem;
    }

    .cms-info h2 {
        font-size: 2rem;
    }

    .cms-visual {
        height: 300px;
    }

    .impulse-wrapper {
        width: 90px;
        height: 90px;
    }

    .impulse-core {
        font-size: 2.2rem;
    }

    .cms-orbit-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .code-preview-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .code-content {
        font-size: 0.8rem;
        padding: 15px;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .web-hero-title {
        font-size: 2.2rem;
    }

    .web-hero-desc {
        font-size: 1rem;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .web-btn-glow {
        width: 100%;
        max-width: 280px;
    }

    .web-card-bg-icon {
        font-size: 6rem;
    }

    .cms-orbit-item:nth-child(2) {
        top: 15%;
        left: 5%;
    }

    .cms-orbit-item:nth-child(3) {
        bottom: 15%;
        right: 5%;
    }

    .cms-orbit-item:nth-child(4) {
        top: 5%;
        right: 15%;
    }
}