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

:root {
    --primary: #000000;
    --primary-dark: #111111;
    --secondary: #333333;
    --accent: #555555;
    --dark: #000000;
    --dark-light: #1a1a1a;
    --gray: #666666;
    --gray-light: #999999;
    --light: #e6e6e6;
    --white: #ffffff;
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    width: 100%;
}

.nav-links a {
    color: var(--gray-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gray);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--dark) 0%,
        var(--dark-light) 50%,
        var(--dark) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(0, 0, 0, 0.12) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 50%,
            rgba(0, 0, 0, 0.06) 0%,
            transparent 50%
        );
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(2%, 2%) rotate(3deg);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 72px;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--gray);
    text-underline-offset: 8px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray-light);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.06);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-logo {
    width: 380px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-light {
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--light);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 28px;
}

.service-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card-body p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ---- Products ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.products-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.products-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.products-card-body {
    padding: 28px;
}

.products-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.products-card-body p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.products-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.btn-card {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-light);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-card:hover {
    background: var(--gray-light);
    color: var(--dark);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-value {
    font-weight: 600;
    color: var(--dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #d9d9d9;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gray);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--gray-light);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gray);
    color: var(--white);
}

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

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

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    box-sizing: border-box;
    animation: fadeIn 0.25s ease;
}

.modal {
    background: var(--white);
    padding: 36px;
    max-width: 560px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: scaleIn 0.25s ease;
}

.modal h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.modal p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.close-btn {
    background: var(--gray);
    color: var(--white);
}

.close-btn:hover {
    background: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---- Animations ---- */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero p {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 260px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        margin-top: -65px;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-120%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
