/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --card-bg: #f8f9fa;
    --border-color: #eeeeee;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --secondary-text: #b0b0b0;
    --accent-color: #3d9af2;
    --accent-hover: #70b5f5;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --nav-bg: rgba(18, 18, 18, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

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

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: -0.2px;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent-color);
}

#theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-btn:hover, .menu-toggle:hover {
    color: var(--accent-color);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 60px 0;
}

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

.tab-content.active > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.tab-content.active > *:nth-child(2) { animation-delay: 0.1s; }
.tab-content.active > *:nth-child(3) { animation-delay: 0.2s; }

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

.highlight-box {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.highlight-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 30px 20px;
        margin: 0 10px 40px;
    }
    
    .highlight-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Hero Section */
.max-width-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.work-steps {
    margin: 60px 0;
    text-align: center;
}

.work-steps h3 {
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-num {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.step h4 {
    margin-bottom: 10px;
    margin-top: 5px;
}

.features-header {
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
}

.features-header h2 {
    font-size: 2rem;
    display: inline-block;
    padding: 0 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 1;
}

.features-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

@media (max-width: 768px) {
    .features-header {
        margin: 60px 0 30px;
    }
    
    .features-header h2 {
        font-size: 1.5rem;
    }
}

/* Features */
.info-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.business-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.solution-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.solution-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.solution-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.solution-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-section {
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 80px 0;
    border: 1px solid var(--border-color);
}

.contact-container.simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contact-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--secondary-text);
    margin-bottom: 0;
}

.contact-methods-large {
    flex-shrink: 0;
}

.method-large {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-color);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.method-large i {
    font-size: 2rem;
    color: var(--accent-color);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

.work-time {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

@media (max-width: 992px) {
    .contact-container.simple {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
        margin: 60px 10px;
    }
}

/* News Section */
.news-section h2 {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--border-color);
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content .date {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 8px;
    display: block;
}

.news-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.news-content p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.products-header p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.blue {
    background: var(--accent-color);
    color: #fff;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.product-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-specs i {
    color: var(--accent-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.buy-btn:hover {
    background: var(--accent-hover);
}

/* Products Placeholder (Legacy) */
.placeholder-content {
    text-align: center;
    padding: 100px 0;
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.dummy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dummy-card {
    height: 200px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card-v2 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-card-v2 .project-slider {
    width: 100%;
    height: 100%;
}

.project-card-v2 .slider-wrapper {
    width: 100%;
    height: 100%;
}

.project-card-v2 .slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card-v2 .slider-wrapper img.active {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    pointer-events: none;
    z-index: 5;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.obj-type {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.obj-price {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.project-card-v2 .slider-btn {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.project-card-v2 .slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .projects-gallery {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .project-card-v2 {
        aspect-ratio: 1/1;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

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

.about-grid.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid.no-image .about-text {
    text-align: center;
}

.about-grid.no-image .contact-grid {
    align-items: center;
}

.advantages-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adv-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.adv-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-top: 3px;
}

.adv-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.adv-item p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
}

/* Responsive */
@media (max-width: 992px) {
    .hero, .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .steps-grid, .features, .news-grid, .dummy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-section h2, .work-steps h3, .news-section h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero-text p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .tab-content {
        padding: 40px 0;
    }

    .feature-card, .step, .news-card {
        margin: 0 10px;
    }

    .contact-info {
        margin: 40px 10px 0 10px;
        padding: 20px;
    }

    .about-text p {
        padding: 0 15px;
    }
}
