/* Web Development Specific Styles */
/* Override primary colors for web development division */

/* Primary color override */
:root {
    --webdev-primary: #3498db;
    --webdev-secondary: #2980b9;
    --webdev-accent: #5dade2;
    --webdev-light: #85c1e9;
}

/* Web Development Banner */
.webdev-banner {
    background: linear-gradient(135deg, var(--webdev-primary), var(--webdev-secondary));
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    font-family: 'DM Sans', sans-serif;
    border-bottom: 2px solid var(--webdev-accent);
    animation: slideDown 0.5s ease-out;
}

/* Mobile Banner Positioning */
@media (max-width: 768px) {
    .webdev-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 12px 15px 12px 20px;
        border-bottom: none;
        border-top: 2px solid var(--webdev-accent);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
        animation: slideUp 0.5s ease-out;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .webdev-banner .banner-text {
        font-size: 13px;
        line-height: 1.4;
        margin-right: 0;
        flex: 1;
        padding-right: 15px;
        display: block;
    }
    
    .webdev-banner .banner-text strong {
        display: block;
        margin-bottom: 2px;
        font-size: 14px;
    }
    
    .webdev-banner .banner-link {
        white-space: nowrap;
        font-size: 13px;
    }
    
    .webdev-banner .banner-link .material-icons {
        font-size: 16px !important;
        margin-right: 4px;
    }
    
    .webdev-banner .banner-close {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        font-size: 22px;
        padding: 8px;
        margin-left: 10px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .webdev-banner .banner-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .webdev-banner .banner-close .material-icons {
        font-size: 18px;
    }
    
    /* Add bottom padding to body to account for fixed banner */
    body {
        padding-bottom: 85px;
    }
    
    /* Remove padding when banner is hidden */
    body.banner-hidden {
        padding-bottom: 0;
    }
    
    /* Climate badge specific mobile styles */
    .webdev-banner .climate-content {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }
    
    .webdev-banner .climate-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .webdev-banner .climate-subtitle {
        font-size: 11px;
        margin-top: 1px;
    }
    
    .webdev-banner .climate-badge-wrapper {
        transform: scale(0.8);
        margin: -5px 0;
    }
    
    .webdev-banner .climate-badge-wrapper iframe {
        width: 240px !important;
        height: 46px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .webdev-banner {
        padding: 10px 12px 10px 16px;
        min-height: 55px;
    }
    
    .webdev-banner .banner-text {
        font-size: 12px;
        padding-right: 10px;
    }
    
    .webdev-banner .banner-text strong {
        font-size: 13px;
    }
    
    .webdev-banner .banner-link {
        font-size: 12px;
    }
    
    .webdev-banner .banner-link .material-icons {
        font-size: 14px !important;
    }
    
    .webdev-banner .banner-close {
        padding: 6px;
        margin-left: 8px;
    }
    
    .webdev-banner .banner-close .material-icons {
        font-size: 16px;
    }
    
    .webdev-banner .climate-badge-wrapper {
        transform: scale(0.7);
        margin: -8px 0;
    }
    
    .webdev-banner .climate-badge-wrapper iframe {
        width: 250px !important;
        height: 57px !important;
    }
    
    body {
        padding-bottom: 75px;
    }
}

.webdev-banner .banner-text {
    display: inline-block;
    margin-right: 40px;
}

.webdev-banner .banner-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.webdev-banner .banner-link:hover {
    color: var(--webdev-light);
}

.webdev-banner .banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.webdev-banner .banner-close:hover {
    color: var(--webdev-light);
}

.webdev-banner-hide {
    animation: slideUp 0.7s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Mobile slide animations */
@media (max-width: 768px) {
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .webdev-banner-hide {
        animation: slideDownMobile 0.7s ease-out forwards;
    }
    
    @keyframes slideDownMobile {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(100%);
            opacity: 0;
        }
    }
}

/* Header border override */
header {
    border-image: linear-gradient(to right, var(--webdev-primary), var(--webdev-accent)) 1;
}

/* Hide navbar on mobile devices */
@media (max-width: 768px) {
    
    /* Mobile optimization for webdev-hero */
    .webdev-hero {
        flex-direction: column !important;
        gap: 24px;
        padding: 0 20px;
    }
    
    .webdev-hero .hero-right h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .webdev-hero .buttons {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hero-ceo-img {
        width: 200px;
    }
    
    .hero-ceo-caption {
        font-size: 14px;
        margin-top: 8px;
    }
    
    .webdev-subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

/* Logo color override */
header .logo {
    color: var(--webdev-primary);
}

/* Highlight color override */
.hero h1 .highlight {
    color: var(--webdev-primary);
}

.hero h1.highlight {
    color: var(--webdev-primary);
}

.highlight {
    color: var(--webdev-primary) !important;
}

/* WebDev hero layout with CEO image */
.webdev-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.webdev-hero h1 {
    margin-bottom: 0px;
}

.webdev-hero .hero-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
}

.webdev-hero .hero-right {
    flex: 1 1 auto;
    text-align: center;
    order: 2;
}

.webdev-hero .hero-right h1 {
    text-align: center;
}

.webdev-hero .buttons {
    justify-content: center;
}

.hero-ceo-img {
    width: 240px; /* slightly larger for prominence */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    border-radius: 15px; /* subtle rounding */
}

.hero-ceo-caption {
    text-align: center;
    display: block;
    margin-top: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    opacity: 0.95;
}
.hero-ceo-caption .hero-role {
    color: var(--webdev-primary);
    font-weight: 700;
}
.hero-ceo-caption .hero-name {
    color: #ffffff;
}

/* Web Development Subtitle */
.webdev-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--webdev-accent);
    margin-bottom: 40px;
    margin-top: 5px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--webdev-primary), var(--webdev-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
}

.service-icon .material-icons {
    font-size: 40px;
    color: white;
}

/* Portfolio items for web development */
.portfolio-item h3 {
    color: var(--webdev-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Technologies Section */
.technologies {
    padding: 80px 0;
    background: rgba(52, 152, 219, 0.05);
    margin: 60px 0;
}

.technologies h2 {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 60px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--webdev-primary), var(--webdev-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tech-icon .material-icons {
    font-size: 35px;
    color: white;
}

.tech-item h3 {
    color: var(--webdev-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-item p {
    color: #ccc;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.process-section h2 {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--webdev-primary), var(--webdev-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    font-family: 'DM Sans', sans-serif;
}

.process-step h3 {
    color: var(--webdev-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-step p {
    color: #ccc;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* CTA Button overrides for web development */
.cta-button {
    background: linear-gradient(135deg, var(--webdev-primary), var(--webdev-secondary));
    border: 2px solid var(--webdev-primary);
}

.cta-button-outline {
    border: 2px solid var(--webdev-primary);
    color: var(--webdev-primary);
}

.cta-button-outline:hover {
    background: var(--webdev-primary);
    color: white;
}

.cta-button:hover {
    background: #fff;
    color: linear-gradient(var(--webdev-primary), var(--webdev-secondary)); /* Updated */
}

/* Store CTA section override */
.store-content .highlight {
    color: var(--webdev-accent) !important;
}
