/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #0f1b3d 50%, #1a2847 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER SECTION
======================================== */
.projects-header {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 27, 61, 0.95) 50%, rgba(26, 40, 71, 0.9) 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 138, 101, 0.3), transparent 50%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Logo Positioning */
.logo-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: inline-block;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(180deg);
}

.projects-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.highlight {
    background: linear-gradient(90deg, #ff8a65, #ffb74d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: #d0d0ff;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ========================================
   PROJECTS CONTAINER
======================================== */
.projects-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* ========================================
   PROJECT CARDS
======================================== */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    min-height: 350px;
}

/* Background Image Effect */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Dynamic Background Images */
.project-card[data-bg="customer-service.jpg"]::before {
    background-image: url('../assets/img/customer-service.jpg');
}

.project-card[data-bg="marketing.jpg"]::before {
    background-image: url('../assets/img/marketing.jpg');
}

.project-card[data-bg="legal-services.jpg"]::before {
    background-image: url('../assets/img/legal-services.jpg');
}

.project-card[data-bg="finance.jpg"]::before {
    background-image: url('../assets/img/finance.jpg');
}

.project-card[data-bg="healthcare.jpg"]::before {
    background-image: url('../assets/img/healthcare.jpg');
}

.project-card[data-bg="hr.jpg"]::before {
    background-image: url('../assets/img/hr.jpg');
}

.project-card[data-bg="manufacturing.jpg"]::before {
    background-image: url('../assets/img/manufacturing.jpg');
}

.project-card[data-bg="coming-soon.jpg"]::before {
    background-image: url('../assets/img/coming-soon.jpg');
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.85), rgba(48, 43, 99, 0.85));
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-card:hover::before {
    opacity: 0.3;
}

/* ========================================
   CARD TITLE
======================================== */
.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffb74d;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   PROJECT LIST
======================================== */
.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}

.project-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff8a65;
    font-size: 1.2rem;
}

.project-list strong {
    color: #a8a8ff;
    font-weight: 600;
}

/* ========================================
   COMING SOON CARD
======================================== */
.coming-soon-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 138, 101, 0.1), rgba(120, 119, 198, 0.1));
    border: 2px solid rgba(255, 138, 101, 0.3);
}

.coming-soon-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0ff;
    font-style: italic;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(145, 34, 0, 0.85), rgba(116, 69, 0, 0.85)),
                url('../assets/img/coming-soon.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #302b63;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 3);
}

/* ========================================
   FOOTER
======================================== */
.projects-footer {
    background: rgba(15, 12, 41, 0.95);
    padding: 30px 20px;
    text-align: center;
    color: #a8a8ff;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .logo-link {
        top: 20px;
        left: 20px;
    }
    
}

@media (max-width: 480px) {
    .projects-header {
        padding: 35px 15px;
    }

    .projects-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .project-card {
        padding: 30px 20px;
    }

    .logo-link {
        top: 15px;
        left: 15px;
    }

    .logo {
        height: 40px;
    }
}