:root {
    --color-cyan: #00d1ff;
    --color-mint: #adffed;
    --color-lime: #e4ff36;
    --color-purple: #e077ff;
    --color-dark: #1a1a1a;
    --color-gray: #666;
}

/* Hero Section */
.projects-hero {
    background: #1a1a1a;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-cyan);
    top: -150px;
    right: -100px;
    animation: float-shape 20s ease-in-out infinite;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    bottom: -100px;
    left: -80px;
    animation: float-shape 15s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-mint);
    top: 40%;
    right: 25%;
    animation: float-shape 18s ease-in-out infinite;
}

@keyframes float-shape {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 209, 255, 0.1);
    border: 2px solid var(--color-cyan);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.hero-badge img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.hero-badge span {
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    color: white;
    background: linear-gradient(135deg, #fff 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    padding: 100px 20px;
    background: white;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Projects Grid - Now Vertical Stack */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Project Card - Horizontal Layout */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: row;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}
.project-card:nth-child(2) {
    animation-delay: 0.2s;
}
.project-card:nth-child(3) {
    animation-delay: 0.3s;
}
.project-card:nth-child(4) {
    animation-delay: 0.4s;
}
.project-card:nth-child(5) {
    animation-delay: 0.5s;
}
.project-card:nth-child(6) {
    animation-delay: 0.6s;
}
.project-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* Alternate Layout - Image on Right */
.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 209, 255, 0.2);
    border-color: var(--color-cyan);
}

/* Project Image */
.project-image {
    position: relative;
    width: 35%;
    min-height: 280px;
    max-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-cyan), #00b8e6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
    z-index: 10;
}

/* Project Content */
.project-content {
    flex: 1;
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-description {
    color: var(--color-gray);
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 1.05rem;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 8px;
}

.project-description::-webkit-scrollbar {
    width: 4px;
}

.project-description::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.project-description::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 2px;
}

.project-description::-webkit-scrollbar-thumb:hover {
    background: #00b8e6;
}

/* Project Social */
.project-social {
    display: flex;
    gap: 12px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
    border: 2px solid rgba(0, 209, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    background: var(--color-cyan);
    color: white;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 209, 255, 0.4);
    border-color: var(--color-cyan);
}

.social-btn svg {
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .project-image {
        width: 35%;
        min-height: 250px;
        max-height: 280px;
    }

    .project-content {
        padding: 35px 40px;
    }

    .project-title {
        font-size: 1.7rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .projects-hero h1 {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .projects-section {
        padding: 60px 20px;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        min-height: 200px;
        max-height: 220px;
    }

    .project-description {
        max-height: 120px;
    }

    .project-content {
        padding: 30px 25px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }
}

/* Hover Effect Enhancement */
@media (hover: hover) {
    .project-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(
            90deg,
            var(--color-cyan),
            var(--color-mint),
            var(--color-lime)
        );
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
        z-index: 10;
    }

    .project-card:hover::before {
        transform: scaleX(1);
    }
}

/* Additional Enhancement - Side Accent Line */
.project-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--color-cyan), var(--color-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:nth-child(even)::after {
    left: auto;
    right: 0;
}

.project-card:hover::after {
    opacity: 1;
}

/* ── Project Timeline ── */
.project-timeline {
    margin: 1rem 0 0.75rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    gap: 8px;
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    flex: 1;
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 600;
}

.timeline-bar {
    height: 7px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.timeline-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-active {
    background: linear-gradient(90deg, #00D1FF, #00b8e6);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.15); }
    100% { filter: brightness(1); }
}

.fill-completed {
    background: linear-gradient(90deg, #28a745, #20c45a);
}

.fill-upcoming {
    background: #e0e0e0;
}

.timeline-remaining {
    font-size: 0.72rem;
    color: #bbb;
    font-weight: 500;
}

/* Tags */
.timeline-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-completed {
    background: rgba(40,167,69,0.1);
    color: #28a745;
    border: 1.5px solid rgba(40,167,69,0.2);
}

.tag-upcoming {
    background: rgba(108,117,125,0.1);
    color: #6c757d;
    border: 1.5px solid rgba(108,117,125,0.2);
}

.tag-active {
    background: rgba(0,209,255,0.1);
    color: #00a8d6;
    border: 1.5px solid rgba(0,209,255,0.2);
}

.tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00D1FF;
    animation: blink 1.5s ease-in-out infinite;
}

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