/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Lock background when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header__logo-image {
    height: 40px;
    width: auto;
}

.header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 36px;
	height: 28px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.header__menu-toggle span {
	display: block;
	height: 4px;
	width: 100%;
	background: #000;
	transition: all 0.3s ease;
	transform-origin: center;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(10px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-10px) rotate(-45deg);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(4) {
    opacity: 0;
}

.header__nav {
    display: flex;
}

.header__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header__menu-link {
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 1.3px;
}

.header__menu-link:hover,
.header__menu-link--active {
    color: #000;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.header__menu-link:hover::after,
.header__menu-link--active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

.hero__content {
    width: 100%;
    padding: 2rem 0 4rem;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero__text {
    max-width: 66.666%;
    margin-left: auto;
    text-align: right;
}

.hero__title {
    color: #fff;
    font-size: clamp(1.25rem, 4vw + 0.25rem, 2rem);
    font-weight: 300;
    line-height: 1.55;
    padding: 175px 0;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about__content {
    max-width: 66.666%;
}

.about__title {
    color: #000;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.55;
}

/* Products Section */
.products {
    background: #111;
}

.products__header {
    padding: 2rem 0;
    background: rgba(17, 17, 17, 0.4);
}

.products__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.products__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.55;
}

/* Product Cards */
.product {
    padding: 4rem 0;
    background: #fff;
}

.product--reverse {
    background: #eee;
}

.product__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 560px;
}

.product--reverse .product__text {
    order: 2;
}

.product--reverse .product__image {
    order: 1;
}

.product__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.product__title {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 5rem;
    margin-bottom: 4rem;
    color: #000;
}

.product__description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.product__description ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.product__description li {
    margin-bottom: 0.5rem;
}

.product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 560px;
    border-radius: 8px;
    overflow: hidden;
}

.product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: #000;
    color: #fff;
}

.btn--primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Technologies Section */
.technologies {
    padding: 3rem 0 3.5rem;
    background: #efefef;
}

.technologies__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.technologies__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5.5rem;
    color: #000;
}

.technologies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.technology-card {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 277px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.technology-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
}

.technology-card__description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 1.875rem 0 3.75rem;
    background: #111;
    color: #fff;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact__title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff;
}

.contact__info {
    margin-bottom: 2rem;
}

.contact__address,
.contact__phone,
.contact__email {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact__legal {
    font-size: 0.75rem;
    color: #fff;
    opacity: 0.8;
}

.contact__legal p {
    margin-bottom: 0.5rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .header__menu-toggle {
        display: flex;
    }
    
    /* Reset to default style for open state (no black square) */
    .header__menu-toggle[aria-expanded="true"] {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        width: 36px;
        height: 28px;
        background: none;
        padding: 0;
    }

    .header__menu-toggle[aria-expanded="true"] span {
        background: #000;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .header__nav.active {
        right: 0;
    }
    
    .header__menu {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 100%;
        margin: 0 5rem;
		gap: 5rem;
    }

    .header__menu-item {
        width: 100%;
        text-align: center;
    }
    
    .header__menu-link {
		font-size: 2.25rem;
		color: #000;
		padding: 0.75rem 0;
		text-transform: uppercase;
		font-weight: 800;
		letter-spacing: 3px;
		display: inline-block;
    }

    .header__menu-link--active {
        color: #000;
    }
    
    .hero__text {
        max-width: 92%;
        margin: -20px 0;
        text-align: center;
    }
    
    .hero__title {
        font-size: 1.5rem;
        padding: 100px 0;
    }
    
    .about__content {
        max-width: 100%;
    }
    
    .about__title {
        font-size: 1.5rem;
    }
    
    .product__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }
    
    .product--reverse .product__text,
    .product--reverse .product__image {
        order: unset;
    }
    
    .product__image {
        height: 300px;
    }
    
    .technologies__title {
        margin-bottom: 3rem;
    }
    
    .technologies__grid {
        grid-template-columns: 1fr;
    }
    
    .technology-card {
        height: auto;
        min-height: 200px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 1.75rem;
        padding: 0;
        text-align: left;
    }
    
    .about__title {
        font-size: 1.75rem;
    }
    
    .products__title {
        font-size: 1.75rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .about__title {
        font-size: 2rem;
    }
    
    .products__title {
        font-size: 2rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.header__menu-link:focus,
.btn:focus,
.header__menu-toggle:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Header scroll effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
