/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1e2036;
    color: #f5f5f5;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CSS Variables */
:root {
    --bg-dark: #1e2036;
    --bg-light: #2c2f48;
    --primary-blue: #007bff;
    --electric-yellow: #f0f325;
    --text-light: #f5f5f5;
    --text-dark: #c0c0d0;
    --gradient-main: linear-gradient(135deg, #00c6ff, #0072ff);
    --border-color: rgba(255, 255, 255, 0.15);
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

@keyframes text-glow {
    from { text-shadow: 0 0 5px rgba(0, 198, 255, 0.5), 0 0 10px rgba(0, 114, 255, 0.3); }
    to { text-shadow: 0 0 20px rgba(0, 198, 255, 0.8), 0 0 30px rgba(0, 114, 255, 0.6); }
}

h2 {
    font-size: clamp(1.7rem, 4.5vw, 3.5rem);
    text-align: center;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.2);
}

.section-header p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #ffffff;
    font-size: 1.15rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--electric-yellow);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(30, 32, 54, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 5px rgba(0, 198, 255, 0.3);
}

.nav-brand .fa-bolt {
    color: var(--electric-yellow);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.nav-brand:hover .fa-bolt {
    transform: rotate(15deg) scale(1.1);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 25px;
    max-width: 100%;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--electric-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--electric-yellow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.8) 0%, rgba(30, 32, 54, 0.9) 100%), 
                url('images/electrical-studio.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.7) 0%, rgba(30, 32, 54, 0.85) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    animation: text-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 30px auto 50px;
    max-width: 700px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--electric-yellow);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.5);
    background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
    border-color: var(--electric-yellow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: white;
    color: #667eea;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
#home {
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.8) 0%, rgba(30, 32, 54, 0.9) 100%), 
                url('images/electrical-studio.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#services {
    background-color: var(--bg-light);
}

#gallery {
    background-color: var(--bg-dark);
}

#contact {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.section-actions {
    text-align: center;
    margin-bottom: 40px;
}

/* Services Overview */
.services-overview {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--bg-dark);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--electric-yellow);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-dark);
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    background: var(--bg-light);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.gallery-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gallery-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 198, 255, 0.15);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--bg-dark);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--electric-yellow);
    width: 55px;
    height: 55px;
    background: rgba(0, 198, 255, 0.15);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
}

.contact-details p {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Footer */
.footer {
    background-color: #1a1b2a;
    padding: 60px 0 25px;
    border-top: 4px solid;
    border-image: var(--gradient-main) 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--electric-yellow);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--electric-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--electric-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.footer-contact i {
    color: var(--electric-yellow);
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item,
.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 4px 0;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(30, 32, 54, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 999;
        gap: 10px;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        text-align: center;
        margin: 0;
        padding: 0 20px;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        margin: 0;
        color: var(--text-light);
        text-decoration: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary-blue);
        color: white;
    }
    
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
        gap: 4px;
        z-index: 1000;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .nav-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .gallery-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 20px auto 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .service-card,
    .contact-item {
        padding: 25px 20px;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .contact-content {
        gap: 30px;
        padding: 30px 20px;
    }
    
    .contact-item {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 20px auto 30px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .filter-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-image img {
        height: 250px;
        object-fit: cover;
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .gallery-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .gallery-tags {
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .contact-content {
        padding: 25px 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Touch-friendly optimizations */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .filter-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .checkbox-label {
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
}

/* Additional Form Styles */
.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #e74c3c;
}

.contact-form input:valid,
.contact-form textarea:valid {
    border-color: #27ae60;
}

.checkbox-label {
    color: var(--text-light);
}

.checkbox-label:hover {
    color: var(--electric-yellow);
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Additional Mobile Optimizations */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 0 3px;
    }
    
    .hero-description {
        font-size: 0.8rem;
        padding: 0 3px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 260px;
        min-height: 40px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 260px;
        min-height: 40px;
    }
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 15px 10px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 260px;
    }
    
    .gallery-image img {
        height: 160px;
    }
    
    .gallery-content {
        padding: 0.8rem;
    }
    
    .gallery-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-content p {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .footer-content {
        padding: 25px 10px;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin: 15px auto 20px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        max-width: 200px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .gallery-filters {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        max-width: 150px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-image img {
        height: 200px;
    }
    
    .gallery-content {
        padding: 1rem;
    }
    
    .gallery-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .nav-toggle {
        width: 28px;
        height: 20px;
        padding: 6px;
    }
    
    .nav-toggle span {
        height: 2.5px;
    }
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 32, 54, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 9998;
    padding: 8px 0;
}

.mobile-contact-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 44px;
    justify-content: center;
    flex: 1;
    margin: 0 4px;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-btn:active {
    transform: scale(0.95);
}

.contact-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.phone-btn {
    color: #00c6ff;
}

.whatsapp-btn {
    color: #25d366;
}

.telegram-btn {
    color: #0088cc;
}

/* Show mobile contact bar on mobile */
@media (max-width: 768px) {
    .mobile-contact-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 40px;
    }
    
    .contact-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .contact-btn {
        padding: 5px 6px;
        font-size: 0.65rem;
        min-height: 38px;
    }
    
    .contact-btn i {
        font-size: 0.9rem;
    }
}