/* VARIABLES & THEME */
:root {
    /* Colors - Premium Navy/Slate Palette */
    --primary: #0f172a;
    /* Slate 900 */
    --secondary: #334155;
    /* Slate 700 */
    --accent: #3b82f6;
    /* Blue 500 */
    --background: #f8fafc;
    /* Slate 50 */
    --surface: #ffffff;
    /* White */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 80px;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transitions */
    --smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #f8fafc;
    --secondary: #cbd5e1;
    --accent: #60a5fa;
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
    z-index: 10;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--background);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--smooth);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

    /* Muted gray like reference */
    transition: var(--smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--text-main);
    transform: translateY(-3px);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--background);
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--smooth);
    display: block;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* HERO SECTION */

/* Icon size styles */
.social-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--smooth);
}

.social-icon:hover {
    color: var(--accent);
}

.users-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--smooth);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    color: var(--primary);
}

#hero-title {
    font-size: 1.8rem !important;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

#hero-summary {
    font-size: 1.25rem !important;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 650px !important;
    margin-bottom: 30px;
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    width: 350px;
    height: 350px;
    object-fit: cover;
    object-position: center 15%;
    margin-top: 40px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 15px 15px 50px -10px rgba(0, 0, 0, 0.2);
    animation: morph 8s ease-in-out infinite;
    transition: var(--smooth);
    border: 5px solid rgba(56, 55, 55, 0.1);
    background: #4e4e51;
}

/* FOOTER STYLES */
.main-footer {
    background: var(--surface);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 50px;
    margin-top: 50px;
    transition: var(--smooth);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand Col */
.footer-brand-wrap {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-name {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-bio {
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

/* Links Col */
.footer-heading {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-left: 1.2rem;
}



/* USERS SECTION - MARQUEE & REVEAL */
.users-marquee {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
    /* Mask for smooth edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 100px;
    animation: scroll-marquee 40s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.users-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateX(150px) scale(0.8);
    will-change: transform, opacity;
}

.users-card.reveal {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.users-icon {
    width: 200px;
    height: 100px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--smooth);
    position: relative;
}

.users-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--smooth);
    /* Removed drop-shadow to avoid boxy shadows on non-transparent elements */
}

.users-card:hover .users-icon {
    transform: translateY(-5px) scale(1.05);
}

.users-name {
    display: none;
}



/* Contact Col */
.footer-contact-list {
    list-style: none;
    margin-bottom: 30px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-list i {
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 1.2rem;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.footer-socials a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Back To Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Left side as per image */
    width: 50px;
    height: 50px;
    background: var(--accent);
    /* Cyan/Blue */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* EXPERIENCE TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--background);
}

.timeline-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--smooth);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.timeline-company {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-desc li {
    margin-bottom: 8px;
    color: var(--text-muted);
    list-style-position: inside;
}

/* GRID LAYOUTS (Training & Achievements) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--smooth);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Needs mobile menu implementation */
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CERTIFICATION CARD REDESIGN */
.certification-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: var(--smooth);
    cursor: pointer;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.cert-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    /* Light blue tint */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* SKILLS SECTION OVERHAUL */
.skills-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    /* Increased gap from 40px to 60px */
    width: 100%;
}

/* FLIP CARD STYLES */
.skill-flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
    /* Increased to 400px to fit more content */
    perspective: 1000px;
    /* Essential for 3D effect */
}

.skill-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.skill-flip-card:hover .skill-flip-inner {
    transform: rotateY(180deg);
}

.skill-flip-front,
.skill-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px;
    /* Reduced side padding slightly for scrollbar space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
}

/* FRONT SIDE */
.skill-flip-front {
    z-index: 2;
}

.skill-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--card-accent);
}

.tap-hint {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BACK SIDE */
.skill-flip-back {
    transform: rotateY(180deg);
    background: var(--surface-light);
    /* Slightly lighter/different for contrast */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px 25px;
    /* Reduced padding to maximize space */
    justify-content: flex-start;
    /* Start from top, not center */
    overflow-y: auto;
    /* Enable scrolling for overflow */
    scrollbar-width: thin;
    /* Firefox scrollbar */
    scrollbar-color: var(--border) transparent;
}

/* Custom Scrollbar for Webkit */
.skill-flip-back::-webkit-scrollbar {
    width: 6px;
}

.skill-flip-back::-webkit-scrollbar-track {
    background: transparent;
}

.skill-flip-back::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 20px;
}

.skill-category-title-back {
    font-size: 1.1rem;
    /* Smaller font */
    color: var(--card-accent);
    margin-bottom: 20px;
    /* Reduced margin */
    font-weight: 700;
    margin-top: 5px;
    /* Slight margin from top padding */
}

/* Theme Colors */
.theme-blue {
    --card-accent: #3b82f6;
    --card-glow: rgba(59, 130, 246, 0.2);
}

.theme-emerald {
    --card-accent: #10b981;
    --card-glow: rgba(16, 185, 129, 0.2);
}

.theme-purple {
    --card-accent: #a855f7;
    --card-glow: rgba(168, 85, 247, 0.2);
}

.skill-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent);
}

/* Typography Overrides for Flip Card */
.skill-category-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.skill-tags-wrapper {
    display: flex;
    flex-direction: column;
    /* Vertical list as per reference */
    gap: 10px;
    /* Reduced gap from 15px */
    width: 100%;
    align-items: center;
    /* Center items */
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 15px;
    /* Reduced padding */
    border-radius: 50px;
    font-size: 0.85rem;
    /* Smaller font for skills */
    color: var(--text-light);
    transition: all 0.3s ease;
}

.skill-pill i {
    font-size: 1.1rem;
    color: var(--card-accent);
}

.skill-pill:hover {
    background: var(--card-glow);
    border-color: var(--card-accent);
    transform: scale(1.05);
    /* User request: Scale Up */
    box-shadow: 0 0 15px var(--card-glow);
    /* User request: Glow */
    color: var(--white);
}

/* ABOUT SECTION ENHANCEMENTS */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed nav */
    padding-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    /* Widened right column */
    gap: 60px;
    /* Increased gap */
    align-items: center;
}

.about-left {
    display: flex;
    justify-content: center;
    position: relative;
    height: 300px;
    /* Space for the visual */
}

/* Abstract Visual Animation */
.about-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-layer {
    position: absolute;
    border-radius: 50%;
    /* Using circles for smooth tech look, hex uses clip-path generally but border-radius is cleaner for pure CSS rings */
    border: 2px solid transparent;
    transition: var(--smooth);
}

.layer-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent);
    border-bottom-color: var(--accent);
    animation: spin 10s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.layer-2 {
    width: 70%;
    height: 70%;
    border-left-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin-reverse 8s linear infinite;
}

.layer-3 {
    width: 40%;
    height: 40%;
    background: var(--surface);
    border: 1px solid var(--border);
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.glow-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.p1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.p2 {
    bottom: 20%;
    left: 10%;
    animation: pulse 2s infinite;
}

.p3 {
    bottom: 20%;
    right: 10%;
    animation: pulse 2s infinite 1s;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* About Text & Highlights */
.about-custom-title {
    font-size: 2.5rem;
    /* Larger Title */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.time-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Text Highlights in Bio */
.about-text b {
    color: var(--text-main);
    font-weight: 700;
}

.about-text .text-primary {
    color: var(--primary);
    /* Deep blue for primary role */
}

.about-text .text-accent {
    color: var(--accent);
    /* Light blue for key certifications */
}

.about-text {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.15rem;
    /* Larger Text */
    text-align: justify;
}

.about-highlights {
    display: flex;
    gap: 40px;
    /* Increased gap */
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    /* Larger highlight text */
    color: var(--primary);
}

.highlight-item i {
    color: var(--accent);
    font-size: 1.4rem;
    /* Larger icons */
}

/* Entrance Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        margin: 0 auto;
    }

    .about-highlights {
        justify-content: center;
    }
}




/* PROJECTS SECTION STYLES */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 15px;
    width: 350px;
    transition: var(--smooth);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-main);
    margin-left: 10px;
    width: 100%;
}

.search-box i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.projects-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--smooth);
}

.accordion-header {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font: inherit;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: var(--smooth);
    user-select: none;
    outline: none;
    width: 100%;
    border: none;
    text-align: left;
    min-height: 48px; /* larger touch target */
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 56px;
    }
}


.accordion-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.accordion-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-year i {
    color: var(--accent);
}

.accordion-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--background);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out, padding 0.15s ease-out;
    padding: 0 25px;
}

.accordion-item.open .accordion-content {
    max-height: 5000px;
    padding: 10px 25px 25px 25px;
}

.accordion-item.open .accordion-header {
    border-bottom: 1px solid var(--border);
    background: rgba(59, 130, 246, 0.02);
}

.project-cards-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.project-detail-card {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--smooth);
}

.project-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-client-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.45;
    flex-grow: 1;
}

.project-deliverables-box {
    border-top: 1px dashed var(--border);
    padding-top: 15px;
    margin-top: auto;
}

.deliverables-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.deliverables-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.deliverable-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Client badge color variations */
.client-lnsw {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.client-kemenkeu {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.client-bpjs {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.client-kai {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.client-kominfo {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}
.client-default {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

@media (max-width: 768px) {
    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .project-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
