/* Web Development Page Styles */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.circuit-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 2rem;
}

.circuit-path {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: circuitFlow 2s infinite;
}

.circuit-path:nth-child(1) {
    top: 20px;
    animation-delay: 0s;
}

.circuit-path:nth-child(2) {
    top: 40px;
    animation-delay: 0.5s;
}

.circuit-path:nth-child(3) {
    top: 60px;
    animation-delay: 1s;
}

@keyframes circuitFlow {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(0); opacity: 1; }
}

.loading-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 50%, #2c4a4a 100%);
}

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

/* Code Rain Animation */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.code-rain::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 212, 255, 0.03) 100px
        );
    animation: codeRainFall 20s linear infinite;
}

@keyframes codeRainFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(50%); }
}

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

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

/* Circuit Board Background */
.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(90deg, var(--accent-blue) 1px, transparent 1px),
        linear-gradient(180deg, var(--accent-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitPulse 4s infinite ease-in-out;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    animation: badgeGlow 3s infinite ease-in-out;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--text-white);
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Code Editor Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-editor {
    background: rgba(15, 20, 25, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.editor-header {
    background: rgba(30, 58, 58, 0.5);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.editor-controls {
    display: flex;
    gap: 0.5rem;
}

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

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.editor-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.editor-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.line-number {
    width: 30px;
    color: var(--text-muted);
    user-select: none;
}

.code-text {
    flex: 1;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.string { color: #f1fa8c; }
.function { color: #50fa7b; }
.bracket { color: #f8f8f2; }
.tag { color: #ff79c6; }
.attribute { color: #50fa7b; }
.operator { color: #ff79c6; }
.indent { color: transparent; }

.typing-line .typing-text {
    color: var(--accent-blue);
}

.cursor {
    color: var(--accent-blue);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.tech-icon {
    position: absolute;
    font-size: 2rem;
    animation: floatIcon 6s infinite ease-in-out;
    opacity: 0.7;
}

.tech-icon.react { top: 10%; left: -10%; animation-delay: 0s; }
.tech-icon.vue { top: 30%; right: -15%; animation-delay: 1s; }
.tech-icon.angular { bottom: 40%; left: -5%; animation-delay: 2s; }
.tech-icon.node { bottom: 20%; right: -10%; animation-delay: 3s; }
.tech-icon.js { top: 60%; left: -8%; animation-delay: 4s; }
.tech-icon.html { top: 80%; right: -12%; animation-delay: 5s; }

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .code-editor {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .floating-icons {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .editor-content {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* ===== WHAT WE OFFER SECTION ===== */
.what-we-offer {
    padding: var(--space-24) 0;
    background: var(--gradient-background);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-16);
}

.offering-card {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.offering-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.offering-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.offering-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-white);
}

.offering-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.offering-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.offering-features {
    list-style: none;
    padding: 0;
}

.offering-features li {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
}

.offering-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* ===== WHY CUSTOM DEVELOPMENT SECTION ===== */
.why-custom-dev {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    position: relative;
}

.comparison-container {
    margin-top: var(--space-16);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-item {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(74, 107, 107, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.comparison-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    position: relative;
}

.comparison-icon.custom {
    background: var(--gradient-accent);
    border: 2px solid var(--accent-blue);
}

.comparison-icon.generic {
    background: rgba(148, 163, 184, 0.1);
    border: 2px solid var(--text-muted);
}

.comparison-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-white);
}

.comparison-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.comparison-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ENGAGEMENT MODELS SECTION ===== */
.engagement-models {
    padding: var(--space-24) 0;
    background: var(--gradient-background);
    position: relative;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.model-card {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
}

.model-card.featured {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-header {
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.model-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.model-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-white);
}

.model-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-2);
}

.model-price {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent-blue);
}

.model-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.model-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
}

.model-features li {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    padding-left: var(--space-6);
    position: relative;
}

.model-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.model-ideal {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ===== FAQS SECTION ===== */
.faq-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.faq-question {
    padding: var(--space-6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a5a 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.cta-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 180px;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: #1e3a3a;
    border: 2px solid #ffffff;
}

.cta-buttons .btn-primary:hover {
    background: #f0f9ff;
    color: #1e3a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-buttons .btn-secondary:hover {
    background: #ffffff;
    color: #1e3a3a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Additional Responsive Styles for New Sections */
@media (max-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .cta-title {
        font-size: var(--text-2xl);
    }
    
    .cta-description {
        font-size: var(--text-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
