* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #1a1a1a;
    --red-accent: #e63946;
    --white-text: #ffffff;
    --gray-text: #cccccc;
    --light-gray: #2a2a2a;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--white-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white-text);
    cursor: pointer;
}

.hexagon-logo {
    transition: var(--transition);
}

.logo:hover .hexagon-logo {
    filter: drop-shadow(0 0 10px var(--red-accent));
}

.brand {
    background: linear-gradient(135deg, var(--red-accent), #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--white-text);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-button {
    background: var(--red-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: var(--white-text);
}

.nav-link.cta-button:hover {
    background: #ff6b7a;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--red-accent);
    margin: 4px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.grid-bg {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(230, 57, 70, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(230, 57, 70, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.3));
    animation: float 3s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 1rem 0;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--white-text), var(--gray-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin: 1.5rem 0 2rem 0;
    line-height: 1.6;
}

.cta-primary {
    background: var(--red-accent);
    color: var(--white-text);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.cta-primary:hover {
    background: #ff6b7a;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.5);
}

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--red-accent);
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: rgba(26, 26, 26, 0.5);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(230, 57, 70, 0.02));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(42, 42, 42, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--red-accent);
    transition: var(--transition);
}

.about-card:hover {
    background: rgba(42, 42, 42, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--red-accent);
}

.about-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--red-accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--red-accent);
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-text);
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--red-accent);
    opacity: 0.1;
    margin-bottom: 1rem;
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: var(--gray-text);
}

.advantage-item:hover {
    transform: scale(1.05);
}

/* ===== MATERIALS SECTION ===== */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.material-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    transition: var(--transition);
}

.material-card:hover {
    background: rgba(230, 57, 70, 0.05);
    border-color: var(--red-accent);
    transform: translateY(-5px);
}

.material-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-accent);
    margin-bottom: 1rem;
}

.material-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.material-spec {
    display: flex;
    justify-content: space-between;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(230, 57, 70, 0.03));
}

.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: var(--light-gray);
    border: 2px solid transparent;
    color: var(--gray-text);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab-btn.active {
    background: transparent;
    border-color: var(--red-accent);
    color: var(--red-accent);
}

.tab-btn:hover {
    border-color: var(--red-accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-area {
    background: var(--light-gray);
    border: 2px dashed rgba(230, 57, 70, 0.5);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--red-accent);
    background: rgba(230, 57, 70, 0.05);
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-btn {
    background: var(--red-accent);
    color: var(--white-text);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
}

.upload-btn:hover {
    background: #ff6b7a;
}

.viewer-3d {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 8px;
    height: 400px;
}

.calculator-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.param-group {
    display: flex;
    flex-direction: column;
}

.param-group label {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.param-input {
    padding: 0.8rem;
    background: var(--light-gray);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 4px;
    color: var(--white-text);
    font-size: 1rem;
    transition: var(--transition);
}

.param-input:focus {
    outline: none;
    border-color: var(--red-accent);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

.calc-btn {
    grid-column: 1 / -1;
    background: var(--red-accent);
    color: var(--white-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    background: #ff6b7a;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.calculator-results {
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.calculator-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--red-accent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    border-left: 3px solid rgba(230, 57, 70, 0.3);
}

.result-item.total {
    grid-column: 1 / -1;
    border-left-color: var(--red-accent);
    background: rgba(230, 57, 70, 0.1);
}

.result-label {
    color: var(--gray-text);
}

.result-value {
    font-weight: 600;
    color: var(--red-accent);
}

.save-pdf-btn {
    width: 100%;
    padding: 1rem;
    background: var(--red-accent);
    color: var(--white-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.save-pdf-btn:hover {
    background: #ff6b7a;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
    border-color: var(--red-accent);
}

.portfolio-3d {
    width: 100%;
    height: 300px;
    background: rgba(26, 26, 26, 0.8);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-accent);
    margin-bottom: 0.5rem;
}

.portfolio-desc {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(230, 57, 70, 0.03));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: var(--light-gray);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 4px;
    color: var(--white-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(204, 204, 204, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-accent);
    background: rgba(230, 57, 70, 0.05);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}

.submit-btn {
    padding: 1rem;
    background: var(--red-accent);
    color: var(--white-text);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #ff6b7a;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(26, 26, 26, 0.8);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: var(--gray-text);
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact a {
    color: var(--red-accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .upload-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .calculator-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-grid,
    .services-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-item.total {
        grid-column: 1;
    }
}