/* ==========================================================================
   Sharaf DG Energy - Projects Page Styles (Updated)
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #004499;
    --primary-blue-light: #3399FF;
    --secondary-orange: #FF6B35;
    --accent-gold: #FFD700;
    --accent-green: #28A745;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #FFA500 100%);
    --gradient-hero: linear-gradient(135deg, #001133 0%, var(--primary-blue-dark) 50%, var(--primary-blue) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-base: 0.3s ease;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 6rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

/* ==========================================================================
   Hero Section - Fixed Layout
   ========================================================================== */
.projects-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/1200x/77/da/16/77da16b59d8a392f04e9b45e23c9b28c.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 17, 51, 0.85) 0%, 
        rgba(0, 68, 153, 0.75) 50%, 
        rgba(0, 102, 204, 0.65) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text-content {
    margin-bottom: var(--spacing-xl);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--accent-gold);
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: heroGlow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue-dark);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

.btn-primary:hover {
    background: #FFA500;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary-orange);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ==========================================================================
   Projects Section - Complete Redesign
   ========================================================================== */
.projects-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    min-height: auto;
}

/* Projects Header */
.projects-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 0 var(--spacing-md);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.filter-btn i {
    font-size: 1rem;
}

/* 4x4 Grid Layout for Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 300px;
    transform: translateY(20px);
    opacity: 0;
    animation: projectCardIn 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
.project-card:nth-child(10) { animation-delay: 1.0s; }
.project-card:nth-child(11) { animation-delay: 1.1s; }
.project-card:nth-child(12) { animation-delay: 1.2s; }
.project-card:nth-child(13) { animation-delay: 1.3s; }
.project-card:nth-child(14) { animation-delay: 1.4s; }
.project-card:nth-child(15) { animation-delay: 1.5s; }
.project-card:nth-child(16) { animation-delay: 1.6s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.project-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.9) 0%, 
        rgba(0, 68, 153, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.project-capacity {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold) !important;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.view-details-btn {
    background: var(--accent-gold);
    color: var(--primary-blue-dark);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-md);
}

.view-details-btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.cta-pattern {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.3'%3E%3Ccircle cx='7' cy='7' r='2'/%3E%3Ccircle cx='37' cy='7' r='2'/%3E%3Ccircle cx='7' cy='37' r='2'/%3E%3Ccircle cx='37' cy='37' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: ctaPattern 20s linear infinite;
}

@keyframes ctaPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 500;
}

.cta-feature i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.cta-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
}

/* ==========================================================================
   Project Modal - 3D Container
   ========================================================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    perspective: 1000px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(15deg);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform-style: preserve-3d;
}

.project-modal.active .modal-overlay {
    opacity: 1;
}

.project-modal.active .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) rotateX(0deg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--secondary-orange);
    transform: scale(1.1);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-xl);
    text-align: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.modal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
    max-height: 500px;
    overflow-y: auto;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.main-image img:hover {
    transform: scale(1.05);
}

.thumbnail-gallery {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.thumbnail-track {
    display: flex;
    gap: var(--spacing-sm);
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-base);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-specs h3,
.project-description h3,
.project-features h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.project-specs h3::before {
    content: '⚡';
    font-size: 1.5rem;
}

.project-description h3::before {
    content: '📋';
    font-size: 1.5rem;
}

.project-features h3::before {
    content: '✨';
    font-size: 1.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.spec-item {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description p {
    color: var(--gray);
    line-height: 1.7;
}

.project-features ul {
    list-style: none;
    display: grid;
    gap: var(--spacing-sm);
}

.project-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray);
    padding: var(--spacing-sm);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.project-features li:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
}

.project-features li::before {
    content: '✓';
    background: var(--accent-green);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.modal-footer {
    background: var(--light-gray);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.footer-pattern {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066cc' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3Ccircle cx='37' cy='7' r='1'/%3E%3Ccircle cx='7' cy='37' r='1'/%3E%3Ccircle cx='37' cy='37' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: footerPattern 15s linear infinite;
}

@keyframes footerPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-container {
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    transition: all var(--transition-base);
    filter: none;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transform: scale(1.05);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-md);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
    transition: color var(--transition-base);
}

.contact-info p:hover {
    color: var(--white);
}

.contact-info i {
    color: var(--accent-gold);
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes heroGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

@keyframes projectCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-card.filtering {
    animation: filterIn 0.4s ease-out;
}

.project-card.hidden {
    display: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .project-card {
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-card {
        height: 260px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-xl);
        transition: right var(--transition-base);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .projects-hero {
        height: 70vh;
        padding-top: 100px;
    }
    
    .projects-section {
        padding: 80px 0;
    }
    
    .projects-header {
        margin-bottom: 60px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-card {
        height: 240px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-background-image {
        background-attachment: scroll;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
        height: 70px;
    }
    
    .projects-hero {
        height: 60vh;
        padding-top: 90px;
        padding-bottom: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .projects-section {
        padding: 60px 0;
    }
    
    .projects-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: var(--spacing-sm);
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-card {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .desktop-only {
        display: none;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-features {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .project-card {
        height: 180px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-info p {
        font-size: 0.8rem;
    }
    
    .view-details-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: var(--spacing-lg);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-badge {
        animation: none;
    }
    
    .footer-pattern,
    .cta-pattern {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0056b3;
        --accent-gold: #ffc107;
        --gray: #495057;
        --light-gray: #e9ecef;
    }
}