/* Add these styles at the top of your file */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Interior Design specific styles */
.parallax-section {
    height: 100vh;
    /* Lighter overlay gradient for brighter look */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)), url('images/interor\ bacgrund\ img\ 1.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Enhanced hero overlay with gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.2)
    );
    z-index: 1;
}

/* Center align all section headings */
h1, h2, h3 {
    text-align: center;
}

/* Hero content specific alignment */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-popup-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-popup-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-popup-btn:active {
    transform: translateY(1px);
}

/* Add animation for the button */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-popup-btn {
    animation: buttonPulse 2s infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#design-services {
    padding: 5rem 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Service cards heading alignment */
.service-card h3 {
    text-align: center;
    margin: 1rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #f1f1f1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Optimize animations */
    background: #f0f0f0; /* Placeholder color while loading */
    animation: smoothReveal 1s ease-out forwards;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item.loaded::before {
    opacity: 0;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-overlay h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .gallery-item {
        height: 250px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.process-step {
    text-align: center;
    position: relative;
}

/* Design process section alignment */
.process-step h3 {
    text-align: center;
    margin: 1rem 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.consultation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .parallax-section {
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Container titles alignment */
.container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

/* Add decorative line under section headings */
.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Add elegant animations */
@keyframes smoothReveal {
    from {
        clip-path: circle(0% at center);
        opacity: 0;
    }
    to {
        clip-path: circle(100% at center);
        opacity: 1;
    }
}

@keyframes slideRotate {
    0% {
        transform: translateX(-100px) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

/* Apply elegant animations */
.design-feature {
    animation: slideRotate 0.8s ease-out forwards;
}

/* Add these styles to your existing CSS */
#contact-form {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#contact-form .container {
    max-width: 800px;
    margin: 0 auto;
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #34495e;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Ensure popup is above everything */
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-60%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%);
        opacity: 1;
    }
}

/* Make popup responsive */
@media screen and (max-width: 600px) {
    .popup-content {
        width: 95%;
        padding: 20px;
    }
}

/* Popup form styles */
.w3form-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.w3form-button:hover {
    background-color: #45a049;
}

.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    width: 95%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.form-container {
    max-width: 100%;
    padding: 0;
}

.form-container h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.form-container h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    margin: 15px auto 0;
    border-radius: 2px;
}

.form-container label {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.form-container input[type=text],
.form-container input[type=email],
.form-container input[type=tel],
.form-container textarea {
    width: 100%;
    padding: 15px;
    margin: 8px 0 20px;
    border: 2px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    outline: none;
}

.form-container .btn {
    background: #4CAF50;
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-container .btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.form-container .cancel {
    background: #e74c3c;
}

.form-container .cancel:hover {
    background: #c0392b;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Add animation for popup appearance */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.form-popup {
    animation: popupSlideIn 0.5s ease forwards;
}

/* Overlay style when popup is open */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .form-popup {
        padding: 25px;
        width: 90%;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }
}

/* Updated Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: block;
    opacity: 1;
}

.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.popup-close:hover {
    color: #000;
}

.form-container {
    position: relative;
    padding: 20px 0;
}

/* Updated Form Popup Styles */
.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    width: min(90%, 400px); /* More compact max-width */
    padding: min(5vw, 25px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.form-container {
    position: relative;
    padding: 0;
    margin: 0;
}

.form-container h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.form-container label {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-container input[type=text],
.form-container input[type=email],
.form-container input[type=tel],
.form-container textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 4px 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-container textarea {
    height: 80px; /* Reduced height */
    min-height: 60px;
}

.form-container .btn {
    padding: 12px 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.popup-close {
    right: 15px;
    top: 10px;
    font-size: 24px;
}

/* Improved responsive styles */
@media screen and (max-width: 480px) {
    .form-popup {
        width: 95%;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-container h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .form-container input[type=text],
    .form-container input[type=email],
    .form-container input[type=tel],
    .form-container textarea {
        padding: 8px;
        font-size: 0.9rem;
        margin: 4px 0 10px;
    }

    .form-container .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Updated mobile form styles */
@media screen and (max-width: 480px) {
    .form-popup {
        width: 92%;
        padding: 12px;
        max-height: 85vh;
        overflow-y: auto;
        margin: 0;
        top: 50%;
    }

    .form-container {
        padding: 0;
    }

    .form-container h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .form-container h2::after {
        margin: 8px auto 0;
        width: 40px;
        height: 2px;
    }

    .form-container label {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .form-container input[type=text],
    .form-container input[type=email],
    .form-container input[type=tel],
    .form-container textarea {
        padding: 6px 10px;
        margin: 2px 0 8px;
        font-size: 0.9rem;
        min-height: 32px;
    }

    .form-container textarea {
        height: 60px;
        min-height: 40px;
    }

    .form-container .btn {
        padding: 8px 16px;
        margin-bottom: 6px;
        font-size: 0.9rem;
        min-height: 36px;
    }

    .popup-close {
        right: 10px;
        top: 8px;
        font-size: 20px;
    }
}

/* Extra small devices */
@media screen and (max-width: 320px) {
    .form-popup {
        width: 95%;
        padding: 10px;
    }

    .form-container input[type=text],
    .form-container input[type=email],
    .form-container input[type=tel],
    .form-container textarea {
        margin: 2px 0 6px;
        padding: 5px 8px;
    }

    .form-container .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Landscape mode adjustments */
@media screen and (max-height: 480px) {
    .form-popup {
        position: fixed;
        top: 0;
        transform: translate(-50%, 0);
        max-height: 100vh;
        padding: 10px;
    }

    .form-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .form-container h2 {
        grid-column: 1 / -1;
    }

    .form-container textarea,
    .form-container .btn {
        grid-column: 1 / -1;
    }
}

/* Device-specific optimizations */
@media (hover: none) {
    /* Touch device optimizations */
    .form-container input[type=text],
    .form-container input[type=email],
    .form-container input[type=tel],
    .form-container textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .form-container .btn {
        padding: 14px 20px; /* Larger touch target */
    }
}

/* Landscape mode optimization */
@media screen and (max-height: 600px) {
    .form-popup {
        position: fixed;
        top: 0;
        transform: translate(-50%, 0);
        max-height: 100vh;
        overflow-y: auto;
    }

    .form-container {
        padding-top: 10px;
    }

    .form-container textarea {
        height: 60px;
    }
}

/* High-resolution screens */
@media screen and (min-width: 1200px) {
    .form-popup {
        max-width: 450px;
    }

    .form-container input[type=text],
    .form-container input[type=email],
    .form-container input[type=tel],
    .form-container textarea {
        padding: 10px 15px;
    }
}
