/* Web Development Page Specific Styles */

/* Hero Section */
.webdev-hero {
    background: var(--navy);
    min-height: 100vh;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../../images/services/code-bg.jpg');
    background-size: cover;
    background-position: center;
    animation: pulseBackground 10s ease-in-out infinite;
}

@keyframes pulseBackground {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-typing {
    display: inline-block;
    color: var(--gold);
    position: relative;
    min-width: 200px;
}

.text-typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    justify-content: space-between;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.tech-stack {
    position: relative;
    z-index: 3;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.hero-buttons {
    position: relative;
    z-index: 4;
    margin-top: auto;
}

.tech-icon {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.tech-icon i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

.tech-icon span {
    color: var(--white);
    font-size: 0.9rem;
}

/* Code Editor Styles */
.code-editor {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0.9;
    backdrop-filter: blur(5px);
}

.code-editor-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    color: #abb2bf;
    margin-left: 20px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content code {
    color: #abb2bf;
}

.code-content .keyword { color: #c678dd; }
.code-content .string { color: #98c379; }
.code-content .comment { color: #5c6370; }
.code-content .function { color: #61afef; }
.code-content .number { color: #d19a66; }

/* Add a subtle glow effect */
.code-editor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gold) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .code-editor {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .code-content {
        max-height: 400px;
    }
}

/* Portfolio Section */
.portfolio-section {
    background: var(--offwhite);
    padding: 5rem 0;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.text-navy {
    color: var(--navy);
}

/* Ensure images are centered and fully visible */
.card-img-top {
    border-radius: 0.5rem;
    margin: 0;
    background: var(--offwhite);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: all 0.3s ease;
}

/* Ensure the card maintains a good height */
.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 42, 68, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.portfolio-content p {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags span {
    background: var(--offwhite);
    color: var(--navy);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hero Section */
.webdev-hero {
    position: relative;
    min-height: 100vh;
    background: #00146d;
    display: flex;
    align-items: center;
    padding-top: calc(76px + 5rem);
    overflow: hidden;
}

/* Process Section */
.process-section {
    position: relative;
    overflow: hidden;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin-bottom: 2rem;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    top: -2px;
}

.section-divider::before {
    left: -4px;
}

.section-divider::after {
    right: -4px;
}

.process-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.process-step {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: var(--offwhite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    transition: all 0.3s ease;
}

.process-icon i {
    font-size: 1.75rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    background: var(--gold);
}

.process-card:hover .process-icon i {
    color: var(--navy);
}

.process-card h4 {
    color: var(--navy);
    margin: 1rem 0;
    font-weight: 600;
}

.process-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.process-details li {
    color: var(--black);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.process-details li::before {
    content: '→';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 991px) {
    .process-card {
        margin-bottom: 2rem;
    }
}
