/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary-red: #d32f2f;
    --primary-orange: #f39c12;
    --primary-gray: #95a5a6;
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --black: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-red);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    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(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: var(--white);
    border: 2px solid #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-elmag {
    color: var(--primary-red);
}

.logo-bolt {
    color: var(--primary-gray);
    font-size: 1.2rem;
    animation: bolt-pulse 2s infinite;
}

@keyframes bolt-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo-poz {
    color: var(--primary-orange);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--primary-gray);
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-container:has(.hero-content) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-main {
    display: block;
    color: var(--dark-gray);
}

.hero-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-gray);
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 400px;
}

/* New Energy System Animation */
.energy-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-red);
    animation: gear-rotate 4s linear infinite;
}

.gear-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.gear-2 {
    top: 20%;
    right: 20%;
    animation-delay: -1.5s;
}

.gear-3 {
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -3s;
}

@keyframes gear-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.power-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.7;
    animation: power-flow 3s ease-in-out infinite;
}

.line-1 {
    width: 120px;
    height: 3px;
    top: 35%;
    left: 35%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.line-2 {
    width: 120px;
    height: 3px;
    top: 35%;
    right: 35%;
    transform: rotate(-45deg);
    animation-delay: 1s;
}

.line-3 {
    width: 100px;
    height: 3px;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes power-flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--primary-orange);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        filter: brightness(1.5);
    }
}

.circuit-node {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-red);
    animation: node-flicker 2s ease-in-out infinite;
}

.node-1 { top: 15%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 50%; right: 15%; transform: translateY(-50%); animation-delay: 0.5s; }
.node-3 { bottom: 15%; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.node-4 { top: 50%; left: 15%; transform: translateY(-50%); animation-delay: 1.5s; }

@keyframes node-flicker {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-gray);
    border-bottom: 2px solid var(--primary-gray);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Why Choose Us */
.why-us {
    padding: 5rem 0;
    background: var(--light-gray);
    width: 100%;
    display: block;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.feature-content p {
    color: var(--primary-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--primary-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* New About Info Cards */
.about-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-red);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.info-card p {
    color: var(--primary-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Services Detailed */
.services {
    padding: 5rem 0;
    background: var(--light-gray);
    width: 100%;
    display: block;
    margin: 0;
}

.services-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-detail {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    transform: scale(0.95);
}

.service-detail:hover {
    transform: translateY(-3px) scale(1);
    box-shadow: var(--shadow-medium);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon-large {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-detail h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
}

.service-detail p {
    color: var(--primary-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-detail ul {
    list-style: none;
    padding: 0;
}

.service-detail li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-detail li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--white);
}

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.tab-btn:hover:not(.active) {
    background: var(--white);
    box-shadow: var(--shadow-light);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* References Header */
.references-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.references-header h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.references-header p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.add-reference-btn {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.add-reference-btn .btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    transition: var(--transition);
}

.add-reference-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.add-reference-btn .btn-secondary {
    background: var(--primary-gray);
    color: var(--white);
}

.add-reference-btn .btn-secondary:hover {
    background: var(--dark-gray);
}

/* Search References */
.search-references {
    position: relative;
    margin: 1rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-references input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-references input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gray);
    pointer-events: none;
}

/* Filter References */
.filter-references {
    margin: 1rem 0;
    text-align: center;
}

.filter-references select {
    padding: 8px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-references select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Reference Actions */
.reference-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.reference-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Editable content styles */
[contenteditable="true"]:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

[contenteditable="true"]:hover {
    background: rgba(211, 47, 47, 0.05);
    cursor: text;
}



/* Slider Styles */
.projects-slider {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
    min-height: 500px;
    padding-bottom: 120px;
}

.projects-slider .project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.projects-slider .project-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.projects-slider .project-content p {
    color: var(--primary-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    height: 8rem; /* Stała wysokość dla 5 linii tekstu */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.slider-wrapper {
    overflow: hidden;
    width: 1200px;
    height: 650px;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

.slider-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    gap: 1rem;
    will-change: transform;
}

.project-slide {
    min-width: 389px;
    width: 389px;
    height: 650px;
    padding: 0 1rem;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.project-image {
    height: 480px;
    overflow: hidden;
    position: relative;
}

/* Image Slider within Project */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide .image-placeholder {
    height: 100%;
    border-radius: 0;
    border: none;
    background: var(--light-gray);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
    -webkit-filter: contrast(1.1) saturate(1.1) brightness(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.project-content p {
    color: var(--primary-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-content .btn {
    margin-top: auto;
    align-self: flex-start;
}





/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--light-gray);
    width: 100%;
    display: block;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Company Info */
.company-info {
    margin-bottom: 2rem;
}

.company-info h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.company-info p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.contact-text p {
    color: var(--primary-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contact Map */
.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.contact-map iframe {
    border-radius: var(--border-radius);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form > p {
    color: var(--primary-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--primary-gray);
    font-size: 0.8rem;
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-red);
}

.file-upload input[type="file"] {
    display: none;
}

.file-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-btn:hover {
    background: var(--primary-gray);
    color: var(--white);
}

.file-text {
    color: var(--primary-gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    width: 100%;
    display: block;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-subtitle {
    color: var(--primary-gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--primary-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--primary-gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--primary-gray);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.floating-cta.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-detailed {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .floating-cta .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .dark-mode-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }

    .project-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .slider-wrapper {
        width: 100%;
        height: 600px;
    }
    
    .project-slide,
    .reference-slide {
        min-width: 100%;
        width: 100%;
    }
    
    .related-projects .slider-wrapper {
        width: 100%;
        height: 600px;
    }
    
    .related-projects .project-slide {
        min-width: 100%;
        width: 100%;
    }

    .reference-actions {
        flex-direction: column;
    }
}

/* Tablet styles - show 2 slides */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider-wrapper {
        width: 100%;
        height: 600px;
    }
    
    .project-slide {
        min-width: calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
    
    .related-projects .slider-wrapper {
        width: 100%;
        height: 600px;
    }
    
    .related-projects .project-slide {
        min-width: calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .floating-cta {
        display: none;
    }
}

/* Project Pages Styles */
.project-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: var(--white);
}

.project-header-content {
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.breadcrumb span {
    opacity: 0.6;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-orange);
}

/* Project Content */
.project-content {
    padding: 5rem 0;
    background: var(--white);
}

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-description h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.project-description h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin: 2rem 0 1rem;
}

.project-description p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-description ul {
    list-style: none;
    padding: 0;
}

.project-description li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 1.5rem;
}

.project-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.spec-item strong {
    color: var(--dark-gray);
}

.spec-item span {
    color: var(--primary-red);
    font-weight: 600;
}

/* Project Gallery */
.project-gallery h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.gallery-item .image-placeholder {
    height: 100%;
    border-radius: 0;
    border: none;
    background: var(--light-gray);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
    -webkit-filter: contrast(1.1) saturate(1.1) brightness(1.05);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Project Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--primary-red);
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary-red);
    width: 20px;
    text-align: center;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.detail-item span {
    color: var(--primary-gray);
    font-size: 0.9rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gray);
    font-size: 0.9rem;
}

.cert-item i {
    color: var(--primary-red);
    width: 16px;
}

/* Technical Specification Sidebar */
.spec-grid-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-item-sidebar {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-label {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
}

/* Related Projects */
.related-projects {
    padding: 5rem 0;
    background: var(--light-gray);
}

.related-projects h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
}

.related-projects .projects-slider {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
    min-height: 500px;
    padding-bottom: 120px;
}

.related-projects .slider-wrapper {
    overflow: hidden;
    width: 1200px;
    height: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

.related-projects .slider-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    width: 100%;
}

.related-projects .slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    gap: 1rem;
    will-change: transform;
}

.related-projects .project-slide {
    min-width: 389px;
    width: 389px;
    height: 600px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.related-projects .project-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.related-projects .project-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.related-projects .image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.related-projects .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.related-projects .slide.active {
    opacity: 1;
}

.related-projects .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.related-projects .project-content {
    padding: 1.5rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-projects .project-content h3 {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.related-projects .project-content h4 {
    font-size: 1.1rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-projects .project-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.project-image {
    height: 480px;
    overflow: hidden;
}

.project-image .image-placeholder {
    height: 100%;
    border-radius: 0;
    border: none;
    background: var(--light-gray);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.project-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Responsive for Project Pages */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .spec-grid-sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}

/* References Section */
.references {
    padding: 5rem 0;
    background: var(--light-gray);
    width: 100%;
    display: block;
    margin: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reference-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    min-height: 280px;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.reference-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reference-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.reference-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reference-content h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.reference-content p {
    color: var(--primary-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.reference-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.reference-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

/* Responsive for References */
@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reference-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .reference-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .reference-icon {
        align-self: center;
    }

    .reference-actions {
        justify-content: center;
    }

    .reference-actions .btn {
        flex: none;
        min-width: 140px;
    }
}

/* PDF Modal Styles */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.pdf-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-heavy);
    animation: slideInUp 0.3s ease-out;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    background: var(--light-gray);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.pdf-modal-header h3 {
    color: var(--dark-gray);
    font-size: 1.3rem;
    margin: 0;
}

.pdf-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.pdf-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light-gray);
    background: var(--light-gray);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    gap: 1rem;
}

.pdf-modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive PDF Modal */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .pdf-modal-header,
    .pdf-modal-footer {
        padding: 1rem;
    }
    
    .pdf-modal-body iframe {
        height: 400px;
    }
    
    .pdf-modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pdf-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pdf-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .pdf-modal-body iframe {
        height: 300px;
    }
    
    .pdf-modal-header h3 {
        font-size: 1.1rem;
    }
}

/* Image Gallery Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-red);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-red);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

.image-modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-red);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Main Image Preview on Project Page */
.main-image-preview {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.main-image-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.main-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
    -webkit-filter: contrast(1.1) saturate(1.1) brightness(1.05);
    transition: var(--transition);
}

.main-image-preview .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.main-image-preview:hover .image-overlay {
    opacity: 1;
}

.main-image-preview .image-overlay i {
    color: var(--primary-red);
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-image-preview .image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-image-preview .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-red);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-image-preview:hover .image-nav {
    opacity: 1;
}

.main-image-preview .image-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.main-image-preview .image-nav.prev {
    left: 20px;
}

.main-image-preview .image-nav.next {
    right: 20px;
}

/* Responsive Image Modal */
@media (max-width: 768px) {
    .image-modal-nav {
        display: none;
    }
    
    .image-modal-close {
        top: -40px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .image-modal img {
        max-height: 70vh;
    }
    
    .main-image-preview {
        height: 50vh;
        min-height: 300px;
    }
    
    .main-image-preview .image-nav {
        display: none;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    transform: translateY(-1px);
}

.dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px) scale(1.1);
}

/* Lightbulb Icon Styles */
.fa-lightbulb {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Lightbulb ON - Dark Mode Active */
.lightbulb-on {
    color: #ffd700 !important;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700;
    animation: lightbulb-glow 2s ease-in-out infinite alternate;
}

/* Lightbulb OFF - Light Mode Active */
.lightbulb-off {
    color: var(--primary-gray);
    opacity: 0.7;
}

.lightbulb-off:hover {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    opacity: 1;
}

/* Lightbulb Glow Animation */
@keyframes lightbulb-glow {
    0% {
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #ffd700;
        transform: scale(1);
    }
    100% {
        text-shadow: 
            0 0 15px #ffd700,
            0 0 25px #ffd700,
            0 0 35px #ffd700,
            0 0 45px #ffd700;
        transform: scale(1.05);
    }
}

/* Electric Spark Effect */
.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.dark-mode-toggle.bulb-active::before,
.dark-mode-toggle:hover::before {
    width: 36px;
    height: 36px;
    opacity: 0.3;
    animation: electric-pulse 1.5s ease-in-out infinite;
}

@keyframes electric-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary-red: #ff5252;
    --primary-orange: #ff9800;
    --primary-gray: #b0bec5;
    --dark-gray: #e0e0e0;
    --light-gray: #2c2c2c;
    --white: #1a1a1a;
    --black: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background-color: var(--white);
    color: var(--dark-gray);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-link {
    color: var(--dark-gray);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-orange);
}

[data-theme="dark"] .dark-mode-toggle {
    color: var(--dark-gray);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Lightbulb Styles */
[data-theme="dark"] .lightbulb-off {
    color: var(--primary-gray);
    opacity: 0.8;
}

[data-theme="dark"] .lightbulb-off:hover {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    opacity: 1;
}

[data-theme="dark"] .lightbulb-on {
    color: #ffd700 !important;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700;
    animation: lightbulb-glow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--white) 0%, #2c2c2c 100%);
}

[data-theme="dark"] .section-title {
    color: var(--primary-orange);
}

[data-theme="dark"] .feature-item,
[data-theme="dark"] .service-detail,
[data-theme="dark"] .reference-item,
[data-theme="dark"] .project-card {
    background: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-red);
}

[data-theme="dark"] .feature-item:hover,
[data-theme="dark"] .service-detail:hover,
[data-theme="dark"] .reference-item:hover,
[data-theme="dark"] .project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

[data-theme="dark"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .btn-secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--primary-orange);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
}

[data-theme="dark"] .contact-form {
    background: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

[data-theme="dark"] .footer {
    background: var(--light-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer a {
    color: var(--dark-gray);
}

[data-theme="dark"] .footer a:hover {
    color: var(--primary-orange);
}

[data-theme="dark"] .footer-section h4 {
    color: var(--dark-gray);
}

[data-theme="dark"] .floating-cta {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
}

[data-theme="dark"] .project-header {
    background: linear-gradient(135deg, var(--white) 0%, #2c2c2c 100%);
}

[data-theme="dark"] .project-header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--white); /* fallback for browsers that don't support background-clip */
}

[data-theme="dark"] .project-subtitle {
    color: var(--black);
    opacity: 0.9;
}

[data-theme="dark"] .breadcrumb a {
    color: var(--black);
    opacity: 0.8;
}

[data-theme="dark"] .breadcrumb span {
    color: var(--black);
    opacity: 0.6;
}

[data-theme="dark"] .breadcrumb i {
    color: var(--black);
    opacity: 0.6;
}

[data-theme="dark"] .meta-item {
    color: var(--black);
}

[data-theme="dark"] .meta-item i {
    color: var(--primary-orange);
}

[data-theme="dark"] .project-description h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-orange); /* fallback for browsers that don't support background-clip */
}

[data-theme="dark"] .project-gallery h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-orange); /* fallback for browsers that don't support background-clip */
}

[data-theme="dark"] .project-content {
    background: var(--white);
}

[data-theme="dark"] .projects-slider .project-content {
    background: var(--light-gray);
}

[data-theme="dark"] .project-card {
    background: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-red);
}

[data-theme="dark"] .image-placeholder {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .image-modal {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .image-modal-close {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
}

[data-theme="dark"] .image-modal-nav {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
}

[data-theme="dark"] .image-modal-nav:hover {
    background: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .image-modal-counter {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
}

[data-theme="dark"] .main-image-preview .image-counter {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
}

[data-theme="dark"] .tech-tag {
    background: #3a3a3a;
    color: var(--black);
    border: 1px solid var(--primary-red);
}

[data-theme="dark"] .detail-item i {
    color: var(--primary-red);
}

[data-theme="dark"] .detail-item strong {
    color: var(--black);
}

[data-theme="dark"] .detail-item span {
    color: var(--black);
}

/* Dark Mode Project Sidebar */
[data-theme="dark"] .project-card h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-orange); /* fallback for browsers that don't support background-clip */
}

/* Dark Mode Technical Specification Sidebar */
[data-theme="dark"] .spec-item-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .spec-label {
    color: var(--black);
}

[data-theme="dark"] .spec-value {
    color: var(--primary-orange);
}

[data-theme="dark"] .related-projects h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-orange); /* fallback for browsers that don't support background-clip */
}

[data-theme="dark"] .related-projects .project-slide {
    background: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .related-projects .project-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .related-projects .project-content h3 {
    color: var(--primary-orange);
}

[data-theme="dark"] .related-projects .project-content h4 {
    color: var(--primary-orange);
}

[data-theme="dark"] .related-projects .project-content p {
    color: var(--dark-gray);
}

[data-theme="dark"] .projects-slider .project-slide {
    background: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .projects-slider .project-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .projects-slider .project-content h3 {
    color: var(--primary-orange);
}

[data-theme="dark"] .projects-slider .project-content h4 {
    color: var(--primary-orange);
}

[data-theme="dark"] .projects-slider .project-content p {
    color: var(--dark-gray);
}

/* Mobile Dark Mode Adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: rgba(26, 26, 26, 0.98);
    }
    
    [data-theme="dark"] .nav-link {
        color: var(--dark-gray);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
} 