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

:root {
    --primary-gold: #C9A961;
    --dark-bg: #1a1a1a;
    --sidebar-bg: #2d2d2d;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: #404040;
}

body {
    font-family: 'Encode Sans Condensed', sans-serif;
    color: var(--text-light);
    background-color: #f5f5f5;
}

/* Desktop Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    padding: 30px 25px 20px 25px;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile Sidebar Drawer */
.sidebar.mobile-active {
    transform: translateX(0);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
}

.company-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.company-subtitle {
    font-size: 12px;
    color: var(--text-gray);
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-menu li {
    margin-bottom: 3px;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-gold), rgba(201, 169, 97, 0.5));
    border-radius: 3px;
    transition: height 0.3s ease;
}

.nav-menu a:hover::before {
    height: 60%;
}

.nav-menu a.active::before {
    height: 100%;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(201, 169, 97, 0.1);
    color: var(--primary-gold);
    padding-left: 28px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-gray);
    text-align: center;
    margin: 0;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
}

.mobile-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    width: 50px;
    height: 50px;
}

.mobile-company-info {
    display: flex;
    flex-direction: column;
}

.mobile-company-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.mobile-company-subtitle {
    font-size: 11px;
    color: #666;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #333;
    display: block;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-left: 280px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: #1a1a1a;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: flex-end;
    padding: 0 80px 80px 80px;
    position: relative;
    animation: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title br {
    display: block;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

/* Services Section */
.services {
    background-color: white;
    padding: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    background-color: white;
    padding: 80px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    background-color: #f9f9f9;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 4px solid var(--primary-gold);
    position: relative;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.stat-number {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.stat-plus {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-left: 5px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.stat-item p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* About Section */
.about-section {
    background-color: #f9f9f9;
    padding: 80px;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-top: 30px;
}

.about-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Team Section */
.team-section {
    background-color: white;
    padding: 80px;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-member-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.2);
    transform: translateY(-5px);
}

.member-image {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.member-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-member-card:hover .member-photo {
    transform: scale(1.05);
}

.member-placeholder {
    width: 150px;
    height: 150px;
    background-color: rgba(201, 169, 97, 0.1);
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-placeholder i {
    font-size: 80px;
    color: var(--primary-gold);
}

.member-info {
    padding: 35px 30px;
}

.member-name {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.member-credentials {
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.member-title {
    font-size: 16px;
    font-weight: 700;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.member-details {
    margin-bottom: 20px;
}

.member-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.member-details strong {
    color: #333;
}

.member-affiliations {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.member-affiliations li {
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.member-affiliations li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.registration-number {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

.member-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.member-contact i {
    font-size: 20px;
    color: var(--primary-gold);
}

.member-contact a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-contact a:hover {
    color: var(--primary-gold);
}

/* Projects Portfolio Gallery Section */
.projects-section {
    background-color: white;
    padding: 80px;
}

/* Portfolio Search */
.portfolio-search-wrapper {
    max-width: 500px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.portfolio-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.portfolio-search-input {
    width: 100%;
    padding: 14px 48px 14px 50px;
    border: 2px solid rgba(201, 169, 97, 0.25);
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: linear-gradient(135deg, rgba(249, 249, 249, 1), rgba(255, 255, 255, 0.9));
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-search-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

.portfolio-search:focus-within .portfolio-search-icon {
    color: var(--primary-gold);
}

.portfolio-search-input::placeholder {
    color: #999;
}

.portfolio-search-clear {
    position: absolute !important;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    overflow: visible !important;
}

.portfolio-search-clear:hover {
    color: var(--primary-gold);
}

.portfolio-search-clear.hidden {
    display: none;
}

/* Browse Button */
.portfolio-browse-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(249, 249, 249, 1), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(201, 169, 97, 0.25);
    color: #999;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-browse-btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

/* No Results Message */
.portfolio-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    width: 100%;
}

.portfolio-no-results svg {
    display: block;
    margin: 0 auto 15px;
    color: #ccc;
}

/* Dark Mode - Search */
body.dark-mode .portfolio-search-input {
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(30, 30, 30, 0.9));
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .portfolio-search-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

body.dark-mode .portfolio-search-input::placeholder {
    color: #666;
}

body.dark-mode .portfolio-search-icon {
    color: #666;
}

body.dark-mode .portfolio-search:focus-within .portfolio-search-icon {
    color: var(--primary-gold);
}

body.dark-mode .portfolio-search-clear {
    color: #666;
}

body.dark-mode .portfolio-search-clear:hover {
    color: var(--primary-gold);
}

body.dark-mode .portfolio-browse-btn {
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(30, 30, 30, 0.9));
    border-color: rgba(212, 175, 55, 0.3);
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .portfolio-browse-btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

body.dark-mode .portfolio-no-results {
    color: #666;
}

/* Portfolio Filter Tabs */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(249, 249, 249, 1), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(201, 169, 97, 0.25);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
}

/* Masonry Grid Layout */
.portfolio-gallery {
    max-width: 1400px;
    margin: 0 auto;
}

/* Flex fallback when Masonry is disabled (e.g. during search) */
.portfolio-gallery.no-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.portfolio-gallery.no-masonry .portfolio-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 0;
}

.grid-sizer,
.portfolio-item {
    width: calc(33.333% - 17px);
}

.portfolio-item {
    margin-bottom: 25px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item.hidden {
    display: none;
}

/* Masonry Item Sizes */
.portfolio-item.tall .portfolio-card {
    height: 500px;
}

.portfolio-item.wide {
    width: calc(66.666% - 13px);
}

.portfolio-item:not(.tall) .portfolio-card {
    height: 280px;
}

/* Masonry gutter sizer */
.portfolio-gutter {
    width: 25px;
}

/* Portfolio Card */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.portfolio-card:hover {
    box-shadow: 0 20px 50px rgba(201, 169, 97, 0.25);
    transform: translateY(-8px);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.15);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.portfolio-card:hover .portfolio-overlay-content h3,
.portfolio-card:hover .portfolio-overlay-content p {
    transform: translateY(0);
}

/* Portfolio Info (Bottom) */
.portfolio-info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.portfolio-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(201, 169, 97, 0.3);
}

/* Proposed Status Badge */
.portfolio-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(38, 150, 135, 0.9);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(38, 150, 135, 0.3);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(249, 249, 249, 1), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.15);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.load-more-btn:hover::before {
    left: 0;
}

.load-more-btn:hover {
    color: white;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.load-more-btn svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(3px);
}

.load-more-btn.hidden {
    display: none;
}

/* Collapse Button */
.collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(249, 249, 249, 1), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(201, 169, 97, 0.5);
    color: var(--primary-gold);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.collapse-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(184, 150, 90, 0.2));
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.collapse-btn:hover::before {
    left: 0;
}

.collapse-btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

.collapse-btn svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.collapse-btn:hover svg {
    transform: translateY(-3px);
}

.collapse-btn.hidden {
    display: none;
}

/* Project Modal/Lightbox */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.project-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: slideUp 0.4s ease;
}

.modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--primary-gold);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-gallery {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 15px;
}

.modal-main-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-img-prev,
.modal-img-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.modal-img-prev { left: 10px; }
.modal-img-next { right: 10px; }

.modal-img-prev:hover,
.modal-img-next:hover {
    background-color: var(--primary-gold);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.modal-img-prev.hidden,
.modal-img-next.hidden {
    display: none;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumbnails.hidden {
    display: none;
}

.modal-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.modal-thumb:hover {
    opacity: 0.9;
}

.modal-thumb.active {
    border-color: var(--primary-gold);
    opacity: 1;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card {
    cursor: pointer;
}

.modal-details {
    padding: 40px;
    overflow-y: auto;
}

.modal-category {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(201, 169, 97, 0.1);
    color: var(--primary-gold);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.modal-status-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(38, 150, 135, 0.12);
    color: #269687;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-left: 8px;
}

.modal-details h2 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.modal-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-location::before {
    content: '\f3c5';
    font-family: 'Icofont';
    color: var(--primary-gold);
}

.modal-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-description p {
    margin-bottom: 15px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Upcoming Projects Section */
.upcoming-section {
    background-color: white;
    padding: 80px;
}

.upcoming-subtitle {
    text-align: left;
    font-size: 16px;
    color: #777;
    margin-top: -25px;
    margin-bottom: 50px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.upcoming-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.upcoming-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.upcoming-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.upcoming-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.upcoming-card:hover .upcoming-card-image img {
    transform: scale(1.08);
}

.upcoming-phase-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    background: rgba(107, 120, 52, 0.9);
    color: #e8ecd4;
}

.upcoming-card-body {
    padding: 22px 24px 24px;
}

.upcoming-card-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.upcoming-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 14px;
}

.upcoming-card-location svg {
    flex-shrink: 0;
}

.upcoming-card-categories {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.upcoming-card-categories svg {
    flex-shrink: 0;
    color: #777;
}

.upcoming-card-categories span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.upcoming-card-categories .cat-separator {
    color: #555;
}

/* Book Launch Section */
.book-launch-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 80px;
    color: var(--text-light);
}

.book-launch-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.event-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-gold);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}

.book-launch-section .section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.book-title {
    font-family: 'Zen Antique Soft', serif;
    font-size: 28px;
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-weight: 700;
    font-style: italic;
}

.book-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.detail-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-item strong {
    display: block;
    color: var(--primary-gold);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.event-highlights {
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.event-highlights h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.event-highlights ul {
    list-style: none;
    padding-left: 0;
}

.event-highlights li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.event-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.book-launch-media {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.book-cover-display {
    text-align: center;
}

.book-cover-display img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    //box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.book-cover-display img:hover {
    transform: scale(1.02);
}

.book-cover-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

.book-launch-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
}

.cta-button-dark {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    border: 2px solid var(--primary-gold);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cta-button-dark:hover::before {
    transform: translateX(100%);
}

.cta-button-dark:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

/* Purchase Section */
.purchase-section {
    background-color: white;
    padding: 80px;
}

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

.book-info-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 50px;
    color: var(--text-light);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.book-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-details-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.book-info-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.purchase-book-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    //box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.purchase-book-cover:hover {
    transform: scale(1.05);
}

.book-specs {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-top: 15px;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    margin: 40px 0;
}

.pricing-section h3 {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.price-card {
    background-color: #f9f9f9;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.15);
    transform: translateY(-5px);
}

.price-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.currency {
    font-size: 20px;
    color: var(--primary-gold);
    font-weight: 600;
}

.price {
    font-size: 56px;
    color: var(--primary-gold);
    font-weight: 700;
}

.price-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #555;
}

.price-item span {
    color: #666;
}

.price-item strong {
    color: #333;
    font-weight: 600;
}

.price-item.total {
    border-top: 2px solid var(--primary-gold);
    padding-top: 18px;
    margin-top: 10px;
}

.price-item.total span,
.price-item.total strong {
    font-size: 18px;
    color: var(--primary-gold);
    font-weight: 700;
}

/* Payment Section */
.payment-section {
    background-color: #f9f9f9;
    padding: 35px;
    border-radius: 12px;
    margin: 40px 0;
}

.payment-section h3 {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.payment-instruction {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.contact-item-purchase {
    background-color: white;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item-purchase:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.contact-item-purchase svg {
    width: 40px;
    height: 40px;
    color: var(--primary-gold);
    stroke: var(--primary-gold);
    fill: var(--primary-gold);
    margin: 0 auto 12px;
    display: block;
}

.contact-item-purchase h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-item-purchase a {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-purchase a:hover {
    color: var(--primary-gold);
}

/* Bank Details */
.bank-details {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
}

.bank-details h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-align: center;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.bank-row:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bank-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.bank-value {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 700;
    text-align: right;
}

.purchase-methods h3 {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
}

.purchase-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.method-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.method-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-gold);
}

.method-icon svg {
    width: 30px;
    height: 30px;
}

.method-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.method-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.purchase-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background-color: var(--primary-gold);
    color: white;
}

.contact-purchase {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.contact-purchase p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.contact-purchase a {
    display: block;
    color: var(--primary-gold);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.contact-purchase a:hover {
    color: #333;
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 80px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background-color: #fafafa;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background-color: white;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.15);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
}

/* Math Captcha */
.math-captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.math-captcha label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.math-captcha input[type="number"] {
    width: 100px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.math-captcha input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-gold);
    background-color: white;
}

/* Form Message */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit Button Loading State */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Main Footer */
.main-footer {
    background-color: var(--sidebar-bg);
    padding: 20px 40px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links {
    display: inline;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-divider {
    color: var(--text-gray);
    margin: 0 8px;
    font-size: 11px;
}

.main-footer .footer-copyright {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0;
}

.footer-separator {
    color: var(--text-gray);
    margin: 0 8px;
    font-size: 11px;
}

.footer-credit {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0;
    display: inline;
}

.footer-credit a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--primary-gold);
}

/* Policy Modals */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.policy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.policy-modal-content {
    position: relative;
    z-index: 1;
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.policy-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.policy-modal-close:hover {
    background: var(--primary-gold);
    color: white;
}

.policy-modal-close svg {
    width: 20px;
    height: 20px;
}

.policy-modal-body {
    padding: 30px 40px 40px 40px;
    max-height: 85vh;
    overflow-y: auto;
}

.policy-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    padding-right: 40px;
}

.policy-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
    font-style: italic;
}

.policy-modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.policy-modal-body p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.policy-modal-body ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.policy-modal-body li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 8px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.cookie-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.cookie-table td {
    color: #555;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 15px 20px;
        margin-bottom: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }

    .footer-separator {
        display: none;
    }

    .footer-links a,
    .footer-divider {
        font-size: 10px;
    }

    .main-footer .footer-copyright,
    .footer-credit {
        font-size: 10px;
    }

    .policy-modal-content {
        width: 95%;
        max-height: 80vh;
        border-radius: 12px;
    }

    .policy-modal-body {
        padding: 25px;
    }

    .policy-modal-body h2 {
        font-size: 22px;
    }

    .policy-modal-body h3 {
        font-size: 15px;
    }

    .policy-modal-body p,
    .policy-modal-body li {
        font-size: 13px;
    }
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item.active {
    color: var(--primary-gold);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-sizer,
    .portfolio-item {
        width: calc(50% - 13px);
    }

    .portfolio-item.wide {
        width: calc(100% - 0px);
    }

    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .upcoming-section {
        padding: 60px 40px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        display: flex;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 70px;
        padding-bottom: 67px;
    }

    .hero {
        height: 60vh;
        padding: 0 20px 40px 20px;
        background-image: url('../images/bg.png');
        align-items: flex-end;
    }

    .hero-title {
        font-size: 26px;
    }

    .cta-button {
        display: none;
    }

    .services {
        padding: 40px 20px;
        padding-bottom: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    /* Statistics Section Mobile */
    .stats-section {
        padding: 40px 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item h3 {
        font-size: 40px;
    }

    .stat-item p {
        font-size: 14px;
    }

    /* About Section Mobile */
    .about-section {
        padding: 40px 20px;
    }

    /* Team Section Mobile */
    .team-section {
        padding: 40px 20px;
    }

    .team-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .member-name {
        font-size: 20px;
    }

    .member-credentials {
        font-size: 13px;
    }

    .member-title {
        font-size: 15px;
    }

    .member-info {
        padding: 25px 20px;
    }

    .member-affiliations li {
        font-size: 12px;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }

    .member-image {
        min-height: 220px;
        padding: 30px;
    }

    /* Portfolio Gallery Mobile */
    .projects-section {
        padding: 40px 20px;
    }

    .portfolio-search-wrapper {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .portfolio-search-input {
        padding: 12px 44px 12px 44px;
        font-size: 14px;
    }

    .portfolio-filters {
        gap: 10px;
        margin-bottom: 35px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .grid-sizer,
    .portfolio-item {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .portfolio-item.tall .portfolio-card,
    .portfolio-item.wide .portfolio-card,
    .portfolio-item:not(.tall) .portfolio-card {
        height: 250px;
    }

    .portfolio-overlay {
        padding: 20px;
    }

    .portfolio-overlay-content h3 {
        font-size: 18px;
    }

    .portfolio-overlay-content p {
        font-size: 13px;
    }

    .portfolio-info {
        bottom: 10px;
        right: 10px;
    }

    .portfolio-category {
        font-size: 10px;
        padding: 5px 12px;
    }

    .load-more-container {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .load-more-btn,
    .collapse-btn {
        padding: 14px 30px;
        font-size: 14px;
        margin: 0;
    }

    /* Upcoming Projects Mobile */
    .upcoming-section {
        padding: 40px 20px;
    }

    .upcoming-subtitle {
        font-size: 14px;
        margin-top: -20px;
        margin-bottom: 30px;
    }

    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upcoming-card-image {
        height: 200px;
    }

    .upcoming-card-title {
        font-size: 18px;
    }

    /* Project Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image-gallery {
        padding: 15px;
        gap: 10px;
    }

    .modal-main-image-wrapper img {
        max-height: 300px;
    }

    .modal-img-prev,
    .modal-img-next {
        width: 34px;
        height: 34px;
    }

    .modal-img-prev { left: 6px; }
    .modal-img-next { right: 6px; }

    .modal-thumb {
        width: 50px;
        height: 38px;
    }

    .modal-details {
        padding: 25px 20px;
    }

    .modal-details h2 {
        font-size: 24px;
    }

    .modal-location {
        font-size: 14px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    /* Book Launch Mobile */
    .book-launch-section {
        padding: 40px 20px;
    }

    .book-launch-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .book-title {
        font-size: 22px;
    }

    .event-highlights {
        padding: 20px;
    }

    .event-highlights h4 {
        font-size: 16px;
    }

    .event-highlights li {
        font-size: 13px;
    }

    .book-launch-media {
        gap: 30px;
    }

    .book-cover-display img {
        max-width: 300px;
    }

    .video-container {
        border-radius: 8px;
    }

    /* Purchase Section Mobile */
    .purchase-section {
        padding: 40px 20px;
    }

    .book-info-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 25px;
        text-align: center;
    }

    .book-details-column {
        text-align: center;
    }

    .book-info-card h3 {
        font-size: 24px;
    }

    .purchase-book-cover {
        max-width: 250px;
    }

    .book-specs {
        font-size: 14px;
    }

    .pricing-section h3 {
        font-size: 22px;
    }

    .price-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .price-card {
        padding: 25px 20px;
    }

    .price {
        font-size: 42px;
    }

    .price-breakdown {
        gap: 12px;
    }

    .price-item {
        font-size: 14px;
        padding: 10px 0;
    }

    .price-item.total span,
    .price-item.total strong {
        font-size: 16px;
    }

    .payment-section {
        padding: 25px 20px;
    }

    .payment-section h3 {
        font-size: 20px;
    }

    .payment-instruction {
        font-size: 14px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-item-purchase {
        padding: 20px 15px;
    }

    .contact-item-purchase svg {
        width: 36px;
        height: 36px;
    }

    .contact-item-purchase h4 {
        font-size: 13px;
    }

    .contact-item-purchase a {
        font-size: 15px;
    }

    .bank-details {
        padding: 30px 20px;
    }

    .bank-details h4 {
        font-size: 18px;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }

    .bank-label {
        font-size: 12px;
    }

    .bank-value {
        font-size: 15px;
        text-align: left;
    }

    .purchase-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .purchase-methods h3 {
        font-size: 22px;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 40px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bottom-nav {
        display: flex;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (min-width: 769px) {
    .mobile-header,
    .bottom-nav {
        display: none !important;
    }
}

/* Scroll-triggered Fade-in Animations */
.scroll-animate,
.portfolio-item,
.team-member-card,
.book-launch-content,
.book-launch-media,
.book-info-card,
.purchase-button-container,
.contact-container,
.portfolio-filters {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animation for portfolio items */
.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.15s; }
.portfolio-item:nth-child(3) { transition-delay: 0.2s; }
.portfolio-item:nth-child(4) { transition-delay: 0.25s; }
.portfolio-item:nth-child(5) { transition-delay: 0.3s; }
.portfolio-item:nth-child(6) { transition-delay: 0.35s; }
.portfolio-item:nth-child(7) { transition-delay: 0.4s; }
.portfolio-item:nth-child(8) { transition-delay: 0.45s; }
.portfolio-item:nth-child(9) { transition-delay: 0.5s; }

/* Staggered animation for book launch section */
.book-launch-content {
    transition-delay: 0.1s;
}

.book-launch-media {
    transition-delay: 0.3s;
}

/* Staggered animation for purchase section */
.book-info-card {
    transition-delay: 0.1s;
}

.purchase-button-container {
    transition-delay: 0.3s;
}

/* Purchase Button */
.purchase-button-container {
    text-align: center;
    margin-top: 40px;
}

.purchase-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.35);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.purchase-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.purchase-button:hover::before {
    transform: translateX(100%);
}

.purchase-button svg {
    stroke: white;
    fill: none;
    transition: transform 0.3s ease;
}

.purchase-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

.purchase-button:hover svg {
    transform: translateX(3px);
}

.purchase-button:active {
    transform: translateY(-1px) scale(1);
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.active {
    opacity: 1;
}

.payment-modal-content {
    position: relative;
    z-index: 1;
    background-color: white;
    max-width: 700px;
    margin: 40px auto;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.payment-modal.active .payment-modal-content {
    transform: translateY(0);
}

.payment-modal-body {
    padding: 50px 40px;
}

.payment-modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.payment-modal .payment-instruction {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.payment-modal .contact-details {
    margin-bottom: 35px;
}

.payment-modal .bank-details {
    margin-top: 35px;
}

.payment-modal .pricing-section {
    margin-bottom: 40px;
}

.payment-instructions-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
    margin: 40px 0;
}

.payment-instructions-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* Mobile Payment Modal */
@media (max-width: 768px) {
    .payment-modal-content {
        margin: 20px;
        max-height: 85vh;
    }

    .payment-modal-body {
        padding: 40px 25px;
    }

    .payment-modal-title {
        font-size: 24px;
    }

    .purchase-button {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* Dark Mode Variables & Styling */
body.dark-mode {
    --primary-gold: #D4AF37;
    --dark-bg: #0a0a0a;
    --sidebar-bg: #1a1a1a;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --border-color: #333;
    background-color: #0d0d0d;
}

body.dark-mode .projects-section,
body.dark-mode .about-section,
body.dark-mode .team-section,
body.dark-mode .purchase-section,
body.dark-mode .contact-section,
body.dark-mode .stats-section,
body.dark-mode .book-launch-section,
body.dark-mode .upcoming-section,
body.dark-mode .services {
    background-color: #111;
}

body.dark-mode .portfolio-card,
body.dark-mode .team-member-card,
body.dark-mode .stat-item,
body.dark-mode .method-card,
body.dark-mode .contact-item-purchase,
body.dark-mode .price-card,
body.dark-mode .book-info-card,
body.dark-mode .bank-details,
body.dark-mode .service-card,
body.dark-mode .service-icon,
body.dark-mode .payment-section,
body.dark-mode .pricing-section {
    background-color: #1a1a1a;
    color: var(--text-light);
}


body.dark-mode .member-name,
body.dark-mode .section-title,
body.dark-mode .stat-item p,
body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: var(--text-light);
}

body.dark-mode .member-title {
    color: var(--text-gray);
}

/* Dark Mode - Portfolio Filters */
body.dark-mode .filter-btn {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-light);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    color: white;
}

body.dark-mode .filter-btn {
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(30, 30, 30, 0.9));
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

body.dark-mode .load-more-btn {
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(30, 30, 30, 0.9));
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

body.dark-mode .load-more-btn:hover {
    color: white;
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
}

body.dark-mode .collapse-btn {
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(30, 30, 30, 0.9));
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .collapse-btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

body.dark-mode .cta-button {
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    border-color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cta-button:hover {
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
}

body.dark-mode .mobile-header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-company-name {
    color: var(--text-light);
}

body.dark-mode .bottom-nav {
    background-color: #1a1a1a;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

/* Dark Mode - Contact Form */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #1a1a1a;
    border-color: #333;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-form input:hover,
body.dark-mode .contact-form textarea:hover {
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #666;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: var(--primary-gold);
    background-color: #222;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
}

body.dark-mode .math-captcha label {
    color: #aaa;
}

body.dark-mode .math-captcha input[type="number"] {
    background-color: #1a1a1a;
    border-color: #333;
    color: var(--text-light);
}

body.dark-mode .form-message.success {
    background-color: #1a3d1a;
    color: #8fd19e;
    border-color: #2d5a2d;
}

body.dark-mode .form-message.error {
    background-color: #3d1a1a;
    color: #f5a6a6;
    border-color: #5a2d2d;
}

/* Dark Mode - Modal */
body.dark-mode .modal-content {
    background-color: #1a1a1a;
}

body.dark-mode .modal-body {
    background-color: #1a1a1a;
}

/* Dark Mode - Footer (uses CSS variables, minimal overrides needed) */

/* Dark Mode - Policy Modals */
body.dark-mode .policy-modal-content {
    background-color: #1a1a1a;
}

body.dark-mode .policy-modal-close {
    background: #333;
    color: #fff;
}

body.dark-mode .policy-modal-close:hover {
    background: var(--primary-gold);
}

body.dark-mode .policy-modal-body h2 {
    color: #f0f0f0;
}

body.dark-mode .policy-date {
    color: #666;
}

body.dark-mode .policy-modal-body h3 {
    color: #ddd;
}

body.dark-mode .policy-modal-body p,
body.dark-mode .policy-modal-body li {
    color: #aaa;
}

body.dark-mode .cookie-table th {
    background: #252525;
    color: #ddd;
    border-color: #333;
}

body.dark-mode .cookie-table td {
    color: #aaa;
    border-color: #333;
}

body.dark-mode .modal-category {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
}

body.dark-mode .modal-status-badge {
    background-color: rgba(38, 150, 135, 0.2);
    color: #3dc4b2;
}

body.dark-mode .portfolio-status-badge {
    background: rgba(38, 150, 135, 0.95);
}

body.dark-mode .browse-project-proposed {
    color: #3dc4b2;
    background: rgba(38, 150, 135, 0.15);
}

/* Dark Mode - Upcoming Section */
body.dark-mode .upcoming-section {
    background-color: #111;
}

body.dark-mode .upcoming-subtitle {
    color: #888;
}

body.dark-mode .upcoming-card {
    background: #1a1a1a;
}

body.dark-mode .modal-location {
    color: var(--text-gray);
}

body.dark-mode .modal-description {
    color: var(--text-gray);
}

body.dark-mode .modal-image-gallery {
    background-color: #111;
}

body.dark-mode .modal-img-prev,
body.dark-mode .modal-img-next {
    background-color: rgba(50, 50, 50, 0.9);
    color: #ddd;
}

body.dark-mode .modal-img-prev:hover,
body.dark-mode .modal-img-next:hover {
    background-color: var(--primary-gold);
    color: white;
}

body.dark-mode .modal-thumb {
    border-color: transparent;
}

body.dark-mode .modal-thumb.active {
    border-color: var(--primary-gold);
}

body.dark-mode .modal-close {
    background-color: #333;
    color: #ddd;
}

body.dark-mode .modal-close:hover {
    background-color: var(--primary-gold);
    color: white;
}

/* Browse Projects Modal */
.browse-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.browse-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.browse-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.browse-modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

.browse-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.browse-modal-header h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.browse-modal-header .modal-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    flex-shrink: 0;
}

.browse-modal-search {
    padding: 12px 24px;
    position: relative;
    flex-shrink: 0;
}

.browse-search-icon {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.browse-modal-search input {
    width: 100%;
    padding: 10px 16px 10px 36px;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #f8f8f8;
    outline: none;
    transition: all 0.3s ease;
}

.browse-modal-search input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.15);
    background: white;
}

.browse-modal-search input::placeholder {
    color: #aaa;
}

.browse-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0 0 8px;
}

.browse-category-group {
    margin-bottom: 4px;
}

.browse-category-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
    border-bottom: 1px solid #eee;
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.browse-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(201, 169, 97, 0.12);
    color: var(--primary-gold);
    font-size: 11px;
    font-weight: 600;
}

.browse-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.browse-project-item:hover {
    background-color: rgba(201, 169, 97, 0.06);
    border-left-color: var(--primary-gold);
}

.browse-project-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.browse-project-location {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 12px;
    text-align: right;
}

.browse-project-proposed {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #269687;
    background: rgba(38, 150, 135, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

.browse-no-results {
    text-align: center;
    padding: 40px 24px;
    color: #999;
    font-size: 14px;
}

/* Dark Mode - Browse Modal */
body.dark-mode .browse-modal-content {
    background-color: #1a1a1a;
}

body.dark-mode .browse-modal-header {
    border-bottom-color: #333;
}

body.dark-mode .browse-modal-header h3 {
    color: var(--text-light);
}

body.dark-mode .browse-modal-search input {
    background: #222;
    border-color: #333;
    color: var(--text-light);
}

body.dark-mode .browse-modal-search input:focus {
    border-color: var(--primary-gold);
    background: #1a1a1a;
}

body.dark-mode .browse-modal-search input::placeholder {
    color: #666;
}

body.dark-mode .browse-search-icon {
    color: #666;
}

body.dark-mode .browse-category-header {
    background: linear-gradient(135deg, #222, #1e1e1e);
    border-bottom-color: #333;
}

body.dark-mode .browse-project-item:hover {
    background-color: rgba(201, 169, 97, 0.08);
}

body.dark-mode .browse-project-title {
    color: var(--text-light);
}

body.dark-mode .browse-project-location {
    color: #666;
}

body.dark-mode .browse-no-results {
    color: #666;
}

/* Responsive - Browse Modal */
@media (max-width: 768px) {
    .browse-modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }

    .browse-modal-header {
        padding: 16px 18px 12px;
    }

    .browse-modal-header h3 {
        font-size: 18px;
    }

    .browse-modal-search {
        padding: 10px 18px;
    }

    .browse-search-icon {
        left: 32px;
    }

    .browse-project-item {
        padding: 11px 18px;
    }

    .browse-category-header {
        padding: 9px 18px;
    }

    .portfolio-browse-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Dark Mode - Additional Elements */
body.dark-mode .bank-row .bank-label {
    color: var(--text-gray);
}

body.dark-mode .bank-row .bank-value {
    color: var(--text-light);
}

body.dark-mode .book-description,
body.dark-mode .payment-instruction,
body.dark-mode .event-highlights ul li {
    color: var(--text-gray);
}

body.dark-mode .about-text p,
body.dark-mode .member-details p,
body.dark-mode .member-credentials,
body.dark-mode .contact-item h4 {
    color: var(--primary-gold);
}

body.dark-mode .contact-item p {
    color: var(--text-gray);
}

body.dark-mode .contact-info,
body.dark-mode .contact-item {
    background-color: transparent;
}

body.dark-mode .service-title {
    color: var(--text-light);
}

body.dark-mode .service-description {
    color: var(--text-gray);
}

body.dark-mode .price-note {
    color: var(--text-gray);
}

body.dark-mode .price-breakdown .price-item span {
    color: var(--text-gray);
}

body.dark-mode .price-breakdown .price-item strong {
    color: var(--text-light);
}

body.dark-mode .pricing-section h3,
body.dark-mode .payment-section h3 {
    color: var(--text-light);
}

/* Dark Mode - Payment Modal */
body.dark-mode .payment-modal-content {
    background-color: #1a1a1a;
}

body.dark-mode .payment-modal-title {
    color: var(--text-light);
}

body.dark-mode .payment-modal .payment-instruction {
    color: var(--text-gray);
}

body.dark-mode .payment-instructions-title {
    color: var(--text-light);
}

body.dark-mode .payment-instructions-divider {
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

/* Custom Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-gold), #b8965a);
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) transparent;
}

/* Dark Mode Scrollbar */
body.dark-mode ::-webkit-scrollbar-track {
    background: transparent;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-gold), #b8965a);
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.5);
}

body.dark-mode * {
    scrollbar-color: var(--primary-gold) transparent;
}

/* Floating Buttons */
.floating-button {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-gold), #b8965a);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
}

.floating-button svg {
    stroke: white;
    fill: none;
    transition: transform 0.3s ease;
}

.floating-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.6);
}

.floating-button:hover svg {
    transform: scale(1.1);
}

.dark-mode-toggle {
    bottom: 30px;
    right: 30px;
}

.whatsapp-button {
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-button.pushed-up {
    bottom: 170px;
}

.whatsapp-button svg {
    fill: white;
    stroke: none;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.scroll-to-top {
    bottom: 100px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile positioning for floating buttons */
@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .whatsapp-button {
        bottom: 90px;
        right: 20px;
    }

    .whatsapp-button.pushed-up {
        bottom: 160px;
    }

    .scroll-to-top {
        bottom: 90px;
        right: 20px;
    }

    .scroll-to-top.show {
        transform: translateY(0);
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 30px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    animation: fade 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animated Gradient Backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body.dark-mode .hero {
    background: linear-gradient(-45deg, #2d2d2d, #1a1a1a, #3d3d3d, #2a2a2a);
    position: relative;
}

body.dark-mode .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--random-hero-bg, url('../images/bg.png'));
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    animation: none !important;
}

.book-launch-section {
    background: linear-gradient(-45deg, #2d2d2d, #1a1a1a, #252525, #1f1f1f);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

.book-info-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #252525 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

.bank-details {
    background: linear-gradient(-45deg, #2d2d2d, #1a1a1a, #252525);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Mobile Responsive for Floating Buttons */
@media (max-width: 768px) {
    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .whatsapp-button {
        bottom: 90px;
        right: 20px;
    }

    .whatsapp-button.pushed-up {
        bottom: 160px;
    }

    .scroll-to-top {
        bottom: 90px;
        right: 20px;
    }

    .loader-logo {
        width: 80px;
        height: 80px;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Ripple Effect for Buttons */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    z-index: 999;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure buttons have proper positioning for ripple effect */
button:not(.floating-button),
.cta-button,
.filter-btn,
.load-more-btn,
.collapse-btn,
.purchase-button,
.modal-close,
input[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Floating buttons need overflow hidden for ripple but keep their fixed positioning */
.floating-button {
    overflow: hidden;
}

/* Dark mode ripple effect */
body.dark-mode .ripple {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .cta-button .ripple,
body.dark-mode .load-more-btn .ripple,
body.dark-mode .collapse-btn .ripple {
    background: rgba(212, 175, 55, 0.4);
}

/* ============================================ */
/* Utility Classes (replacing inline styles)   */
/* ============================================ */

/* Footer credit link */
.footer-credit-link {
    color: #828282;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit-link:hover {
    color: var(--primary-gold);
}

/* Book subtitle styling */
.book-subtitle {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Hidden elements (for JS/accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot field */
.honeypot-field {
    display: none;
}


/* ============================================ */
/* Hero Slider Styles                           */
/* ============================================ */

/* Hero slider container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slider navigation container */
.hero-slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

/* Prev/Next buttons */
.hero-slider-prev,
.hero-slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(201, 169, 97, 0.9);
    border-color: var(--primary-gold);
    transform: scale(1.1);
}

.hero-slider-prev svg,
.hero-slider-next svg {
    width: 24px;
    height: 24px;
}

/* Pagination dots */
.hero-slider-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    width: 14px;
    height: 14px;
}

/* Hero content needs higher z-index */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Responsive slider navigation */
@media (max-width: 768px) {
    .hero-slider-nav {
        bottom: 20px;
        gap: 15px;
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
    }

    .hero-slider-prev svg,
    .hero-slider-next svg {
        width: 20px;
        height: 20px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider-dot.active {
        width: 12px;
        height: 12px;
    }

    .hero-slider-pagination {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-slider-nav {
        bottom: 15px;
        gap: 10px;
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 35px;
        height: 35px;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
    }

    .hero-slider-dot.active {
        width: 10px;
        height: 10px;
    }
}
