/* ========================
   Projects Page Styles with CSS-only Pagination
   ======================== */

:root {
    --primary-blue: #0066CC;
    --light-blue: #3399FF;
    --accent-orange: #FFA500;
    --highlight-red: #E63946;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E5E7EB;
    --success-green: #25D366;
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
}

/* Header - Same as other pages */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    display: block;
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    padding: 10px 22px;
    white-space: nowrap;
}

.nav-menu > ul > li > a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--primary-blue);
}

.nav-menu a[href="javascript:void(0)"] {
    cursor: pointer;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 0;
    z-index: 100;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 0;
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    text-align: center;
}

.hero h1 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Filter Controls - Hide radio buttons */
.filter-controls input[type="radio"] {
    display: none;
}



/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Project Card */
.project-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-white);
}

.project-badge.flagship {
    background: var(--gold);
    color: var(--text-dark);
}

.project-badge.international {
    background: var(--primary-blue);
}

.card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 60px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta i {
    font-size: 18px;
    color: var(--primary-blue);
}

.card-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 20px;
    flex: 1;
}

.project-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 18px;
    color: var(--text-medium);
}

.project-specs i {
    font-size: 18px;
    color: var(--accent-orange);
}

/* Pagination Navigation */
.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Active page button */
.filter-controls #page1:checked ~ .pagination-nav label[for="page1"],
.filter-controls #page2:checked ~ .pagination-nav label[for="page2"],
.filter-controls #page3:checked ~ .pagination-nav label[for="page3"] {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--bg-white);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    text-align: center;
    color: var(--bg-white);
}

.cta-section h2 {
    margin-bottom: 20px;
    color: var(--bg-white);
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--highlight-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: #d32f3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    color: var(--text-dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.footer-col p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 18px;
}

.contact-info i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 102, 204, 0.2);
}

.footer-bottom p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-wrapper {
        gap: 16px;
    }

    .nav-menu > ul {
        gap: 2px;
    }

    .nav-menu > ul > li > a {
        padding: 10px 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .nav-wrapper {
        padding: 16px 0;
        gap: 0;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu > ul {
        gap: 0;
    }

    .nav-menu > ul > li > a {
        padding: 10px 8px;
        font-size: 19px;
        white-space: nowrap;
    }

    .dropdown {
        min-width: 200px;
    }

    .dropdown a {
        padding: 10px 16px;
        font-size: 16px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 900px), (max-width: 1024px) and (orientation: portrait) {
    .nav-menu {
        display: block;
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > ul > li > a {
        padding: 18px 24px;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown a {
        padding: 14px 24px 14px 44px;
    }
    
    .has-dropdown:hover .dropdown {
        display: none;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 34px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .card-content h3 {
        min-height: auto;
    }
}
