:root {
    --primary: #1a3c34;
    --primary-dark: #132a24;
    --secondary: #ffd700;
    --secondary-dark: #e6c200;
    --accent: #ff6b6b;
    --dark: #212529;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--primary-dark);
}

header.scrolled {
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-dark);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--light);
    margin-top: 2px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 0rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.nav-links>li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    display: block;
    font-size: 0.95rem;
}

.nav-links>li>a {
    padding: 0rem 1rem;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links>li>a:hover::after {
    width: calc(100% - 2rem);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.8rem 0rem;
    z-index: 999;
}

.nav-links>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 0.1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.dropdown a:hover {
    background: var(--light-gray);
    color: var(--primary);
    padding-left: 2rem;
}

.has-dropdown>a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-links>li:hover>.has-dropdown>a::after {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 60, 52, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--light);
    cursor: pointer;
    z-index: 1001;
    min-height: 44px;
    width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-nav-buttons {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

/* Hero Section */
.projects-hero {
    background: linear-gradient(rgba(26, 60, 52, 0.9), rgba(19, 42, 36, 0.9)),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.projects-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.projects-hero p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: white;
}

/* Projects Grid Section */
.projects-section {
    padding: 80px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.project-meta i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.project-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary);
    gap: 0.8rem;
}

/* View More Button */
.view-more-btn {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto;
}

.view-more-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 1rem 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-share {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-share span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-icons a {
    color: var(--secondary);
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.copyright-text {
    font-size: 0.8rem;
    color: #aaa;
}

.copyright-text strong {
    color: var(--secondary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}


/* CTA Section */
.cta-section {
    background: var(--primary);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.cta-section p {
    font-size: 0.8rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.cta-btn {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: var(--transition);
    border: none;
}

#scrollToTop.show {
    opacity: 1;
}

#scrollToTop:hover {
    background: var(--secondary-dark);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-hero {
        padding: 150px 0 60px;
        margin-top: 70px;
    }

    .projects-hero h1 {
        font-size: 2.8rem;
    }

    .project-img {
        height: 220px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 130px 0 50px;
        margin-top: 60px;
    }

    .projects-hero h1 {
        font-size: 2.3rem;
    }

    .projects-hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .category-filter {
        gap: 0.8rem;
    }

    .category-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .projects-hero {
        padding: 110px 0 40px;
    }

    .projects-hero h1 {
        font-size: 2rem;
    }

    .category-filter {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 80%;
        max-width: 250px;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .view-more-btn,
    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-hero h1 {
        font-size: 1.8rem;
    }

    .project-img {
        height: 200px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* RESPONSIVE: Below 850px */
@media (max-width: 850px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 100px;
        transition: left 0.4s ease;
        z-index: 999;
        gap: 0;
        overflow-y: auto;
        color: var(--dark);
        background-color: var(--primary);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links>li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links>li>a {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-dropdown-toggle {
        display: flex;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(248, 249, 250, 0.8);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-radius: 0;
    }

    .dropdown.open {
        max-height: 600px;
        padding: 0.5rem 0;
    }

    .dropdown a {
        padding: 0.8rem 3rem;
        font-size: 1rem;
    }

    .has-dropdown>a::after {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-nav-buttons {
        display: flex;
    }

    .logo-main {
        font-size: 1.5rem;
    }

    .logo-sub {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .logo-main {
        font-size: 1.4rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .nav-links>li>a {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .dropdown a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .mobile-nav-buttons {
        padding: 0 1.2rem;
    }
}