/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-container {
    text-align: center;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

/* Main Content */
.main {
    padding: 140px 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.doors-photo {
    object-position: right center;
}

.product-card:hover .product-photo {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(40, 167, 69, 0.9) 0%, 
        rgba(40, 167, 69, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.doors-card .image-overlay {
    background: linear-gradient(
        135deg, 
        rgba(220, 53, 69, 0.9) 0%, 
        rgba(220, 53, 69, 0.7) 100%
    );
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.product-button {
    padding: 30px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 250px;
    will-change: transform;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.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-furniture {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
}

.btn-furniture:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba085 100%);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.4);
}

.btn-doors {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3);
}

.btn-doors:hover {
    background: linear-gradient(135deg, #c82333 0%, #e66100 100%);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4);
}

/* Enhanced Mobile Design */
@media (max-width: 1024px) {
    .products-grid {
        gap: 35px;
        max-width: 900px;
    }
    
    .product-image {
        height: 350px;
    }
    
    .card-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
        max-width: 600px;
    }
    
    .main {
        padding: 120px 0 50px;
    }
    
    .header .container {
        padding: 15px 20px;
    }
    
    .logo {
        height: 55px;
    }
    
    .product-card {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        border-radius: 20px;
    }
    
    .product-image {
        height: 280px;
    }
    
    .card-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .card-description {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .product-button {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 1rem;
        min-width: 220px;
        border-radius: 40px;
    }
    
    /* Optimize hover effects for mobile */
    .product-card:hover .product-photo {
        transform: scale(1.05);
    }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .main {
        padding: 100px 0 40px;
    }
    
    .products-grid {
        gap: 30px;
        padding: 0 10px;
    }
    
    .header .container {
        padding: 12px 15px;
    }
    
    .logo {
        height: 45px;
    }
    
    .product-card {
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }
    
    .product-image {
        height: 220px;
    }
    
    .card-title {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }
    
    .card-description {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-button {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: 200px;
        border-radius: 35px;
        letter-spacing: 0.5px;
    }
    
    /* Touch-friendly interactions */
    .btn:active {
        transform: translateY(1px) scale(0.98);
    }
    
    .product-card:active {
        transform: translateY(-2px);
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .products-grid {
        gap: 25px;
        padding: 0 5px;
    }
    
    .logo {
        height: 40px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .product-button {
        padding: 18px 12px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .main {
        padding: 80px 0 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 150px;
    }
    
    .product-button {
        padding: 15px 10px;
    }
}

/* Contacts Section */
.contacts-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #6c757d;
    margin-bottom: 50px;
    font-weight: 500;
}

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

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 8px;
}

.contact-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-phone {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.contact-phone:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Mobile optimization for contacts */
@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-address {
        font-size: 1rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
    }
    
    .contact-phone {
        font-size: 1rem;
        padding: 10px 18px;
        border-radius: 20px;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-container {
        border-radius: 15px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .contacts-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contacts-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-phone {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .map-section {
        padding: 50px 0;
    }
    
    .map-container {
        margin: 0 10px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.product-card:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.product-card:nth-child(2) {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Remove all old styles */
