/* ----------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------- */
/* Variables */
:root {
    --main-color: #00ffff;
    /* Neon Cyan */
    --text-color: #e0e0e0;
    --dark-bg: #101014;
    --secondary-glow: #8a2be2;
    /* Purple Glow */
}

/* ----------------------------------- */
/* Body + Background Glow */
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    direction: ltr;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 15%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 25% 85%, rgba(138, 43, 226, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
}

/* ----------------------------------- */
/* Projects Section */
.projects-section {
    padding: 100px 50px 80px;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Main Title - PROJECTS */
.main-title {
    font-size: 6vw;
    font-weight: 900;
    color: rgba(0, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ----------------------------------- */
/* Section Header - Same as Certificates */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 auto;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 1rem;
}

.underline {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), transparent);
    border-radius: 2px;
    margin: 0 auto;
}

.section-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-year {
    font-size: 3.5rem;
    color: rgba(0, 255, 255, 0.15);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    text-align: center;
    margin-bottom: 3rem;
}



/* Projects */
.projects-section {
    padding: 100px 50px 80px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    z-index: 1;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background-color: rgba(20, 20, 28, 0.9);
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card .project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.project-visual {
    width: 100%;
    height: 380px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    opacity: 0.92;
    transition: all 0.4s ease;
    display: block;
    filter: brightness(0.95);
}

/* Masam Company - cover style (now 4th card) */
.project-card:nth-child(4) .project-visual img {
    object-fit: cover;
}

.project-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.project-card:hover .project-visual img {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(1.05);
}

/* Image Slider for IC Design Project */
.project-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-images {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slider-image.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 255, 0.2);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--main-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--main-color);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--main-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: var(--main-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.project-title {
    color: var(--main-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.project-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
    min-height: 80px;
}

margin-bottom: 15px;
}

.project-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.project-link {
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--main-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    min-width: 120px;
}

.project-link:hover {
    color: #101014;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-2px);
}

/* Full Width Project */
.project-card.full-width {
    grid-column: span 3;
}

/* ----------------------------------- */
/* Services & Testimonials */
.services-section,
.testimonials-section {
    padding: 50px;
    text-align: left;
}

.services-section h2,
.testimonials-section h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

/* Services Section */
.services-section {
    padding-top: 80px;
}

/* Services Header - Same Style as Certificates */
.services-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-section .section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.services-section .underline {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), transparent);
    border-radius: 2px;
}

.services-section .section-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
}

.service-card {
    background: rgba(20, 20, 28, 0.9);
    padding: 0;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
    opacity: 0.92;
    filter: brightness(0.95);
}

.service-card:hover .service-image img {
    transform: scale(1.12);
    opacity: 1;
    filter: brightness(1.05);
}

.service-card .service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.service-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.service-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}



/* ----------------------------------- */
/* Testimonials Section */
.testimonials-section {
    padding: 50px;
    text-align: left;
}

.testimonials-section h2 {
    font-size: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    margin-bottom: 30px;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

.testimonial-card {
    background-color: rgba(20, 20, 28, 0.9);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
    color: var(--text-color);
}

.testimonial-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-card .source {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--main-color);
    font-size: 0.9rem;
}

/* ----------------------------------- */
/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #888;
    margin-top: 50px;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* ----------------------------------- */
/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        min-height: 260px;
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 10vw;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .project-year {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }

    .project-visual img,
    .project-visual video {
        max-height: 200px;
    }

    .services-section {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        max-width: none;
    }

    .service-card {
        padding: 1.5rem;
        min-height: 250px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .quote-icon {
        font-size: 2rem;
    }

    /* Navigation styles moved to navigation.css */

    .projects-section {
        padding: 40px 20px;
    }

    .project-card.full-width {
        grid-column: span 1;
    }
}

@med ia (max-width: 480px) {
    .services-section {
        padding: 40px 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .service-card {
        min-height: 240px;
        padding: 1.5rem;
        margin: 0;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-name {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .services-header {
        margin-bottom: 1.5rem;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .services-subtitle {
        font-size: 0.9rem;
    }
}