:root {
     --primary: hsl(210, 29%, 24%);
     --secondary: hsl(6, 78%, 57%);
     --light: hsl(192, 15%, 94%);
     --dark: hsl(209, 29%, 14%);
     --accent: hsl(204, 70%, 53%);
     --success: hsl(145, 63%, 49%);
     --warning: hsl(37, 90%, 51%);
     --white: hsl(0, 0%, 100%);
     --muted-gray: hsl(0, 0%, 87%);
     --gray-color: hsl(210, 11%, 71%);

     /* fonts */
     --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
     --font-size-10: 62.5%; /* 10px base for rem calculations */
     --font-size-16: 1.6rem; /* 16px */
     --font-weight-400: 400;
     --font-weight-500: 500;
     --font-weight-600: 600;
     --font-weight-700: 700;
}

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

html {
     font-size: var(--font-size-10);
     scroll-behavior: smooth;
     font-family: var(--font-family);
}

body {
     font-size: var(--font-size-16);
     line-height: 1.6rem;
     color: var(--dark);
     font-weight: var(--font-weight-400);

     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     position: relative;
}

/* Header & Navigation */
.header-scrolled {
     padding: 1rem 0;
     background-color: hsla(0, 0%, 100%, 0.98);
}

.header-container {
     padding: 4rem;
}

.logo {
     font-size: 2.8rem;
}

@media (max-width: 495px) {
     .header-container {
          padding: 2rem;
     }

     .logo {
          font-size: 2.2rem;
     }
}

/* burger button */
.burger {
     display: none;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     position: relative;
     padding: 0.1rem;
     background: transparent;
     transition: all 300ms ease-in-out;
     z-index: 1002;
}
.burger .line {
     width: 4rem;
     border: 0.2rem solid var(--dark);
     background: var(--dark);
     transition: all 300ms ease-in-out;
}
.burger:hover {
     transform: scale(1.1);
     cursor: pointer;
}

.burger:active {
     transform: translateY(0.2rem);
}

#burger-checkbox:checked ~ .nav-bar .burger > .line-top {
     width: 2.8rem;
     transform: rotate(45deg);
     transform-origin: left top;
}

#burger-checkbox:checked ~ .nav-bar .burger > .line-inner {
     visibility: hidden;
     transition: all 250ms ease-in-out;
}

#burger-checkbox:checked ~ .nav-bar .burger > .line-bottom {
     width: 2.8rem;
     transform: rotate(-45deg);
     transform-origin: left bottom;
}

#burger-checkbox:checked ~ .nav-bar .nav-links {
     transform: translateY(0%);
}

@media (max-width: 930px) {
     .burger {
          display: flex;
     }

     .nav-links {
          background: var(--light);
          position: absolute;
          top: 0;
          left: 0;
          padding-top: 17rem;
          flex-direction: column;
          min-height: 100vh;
          width: 100%;
          transform: translateY(-250%);
          transition: transform 300ms ease-in-out;
          z-index: 1001;
     }

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

.nav-links a {
     text-decoration: none;
     color: var(--primary);
     font-weight: var(--font-weight-500);
     transition: color 300ms;
     position: relative;
}

.nav-links a:hover {
     color: var(--secondary);
}

.nav-links a::after {
     content: "";
     position: absolute;
     bottom: -0.5rem;
     left: 0;
     width: 100%;
     border-bottom: 0.2rem solid var(--secondary);
     transform: scale(0, 1);
     transform-origin: right;
     transition: transform 300ms ease-in-out;
}

.nav-links a:hover::after {
     transform: scale(1, 1);
     transform-origin: left;
}

.nav-links a.active::after {
     transform: scale(1, 1);
     transform-origin: left;
}

.btn-login {
     background-color: transparent;
     color: var(--primary);
     border: 0.2rem solid var(--primary);
}

#loginBtn:hover {
     background-color: var(--primary);
     color: var(--white);
}

.btn-auth:active {
     transform: translateY(2rem);
     box-shadow: none;
}

/* Hero Section */
.hero {
     background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
          url("https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80")
               no-repeat center center/cover;
}

.btn {
     background-color: var(--secondary);
}

.btn:hover {
     background: hsl(6, 63%, 46%);
     box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.btn:active {
     transform: translateY(0.2rem);
}

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

.section {
     padding: 4rem;
     max-width: 144rem;
     width: 100%;
}

@media (max-width: 495px) {
     .section {
          padding: 2rem 1.2rem;
     }
}
.main-section-title,
.about-content,
.products-grid,
.features,
.contact-wrapper {
     opacity: 0;
     transform: translateY(2rem);
     transition: transform 500ms ease-in-out, opacity 400ms ease-in-out;
}

.main-section-title {
     text-align: center;
}

.main-section-title h2 {
     font-size: 3.6rem;
     color: var(--primary);
     position: relative;
     display: inline-block;
     padding-bottom: 1.5rem;
     line-height: normal;
}

.main-section-title h2::after {
     content: "";
     position: absolute;
     width: 7rem;
     height: 0.3rem;
     background-color: var(--secondary);
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
}

/* About Section */

@media (max-width: 768px) {
     .about-content {
          flex-direction: column;
     }
}

.about-text p {
     margin-bottom: 2rem;
     line-height: normal;
     color: var(--dark);
}

.about-image {
     flex: 1;
     min-width: 30rem;
     border-radius: 0.8rem;
     overflow: hidden;
     box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
}

.about-image img {
     width: 100%;
     height: auto;
     display: block;
     transition: transform 500ms;
}

.about-image:hover img {
     transform: scale(1.05);
}

/* Products Section */
.product-card {
     background-color: white;
     border-radius: 0.8rem;
     overflow: hidden;
     box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
     transition: transform 300ms, box-shadow 300ms;
}

.product-card:hover {
     transform: translateY(-1rem);
     box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.product-image {
     height: 25rem;
     overflow: hidden;
}

.product-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 500ms;
}

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

.product-info {
     padding: 2rem;
}

.product-info h3 {
     font-size: 2.2rem;
     margin-bottom: 1rem;
     color: var(--primary);
}

.product-info p {
     line-height: normal;
     color: var(--dark);
     margin-bottom: 1rem;
}

.product-info .price {
     font-weight: var(--font-weight-700);
     color: var(--secondary);
     font-size: 2rem;
}

/* Why Choose Us */
.feature-card {
     text-align: center;
     padding: 3rem 2rem;
     background-color: var(--white);
     border-radius: 0.8rem;
     box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
     transform: translateY(-1rem);
}

.feature-icon {
     font-size: 5rem;
     color: var(--secondary);
     margin-bottom: 2rem;
}

.feature-card h3 {
     font-size: 2.2rem;
     margin-bottom: 1.5rem;
     color: var(--primary);
     line-height: normal;
}

.feature-card p {
     color: var(--dark);
     line-height: normal;
}

/* Contact Section */
.contact-item {
     display: flex;
     align-items: flex-start;
     line-height: normal;
}

.contact-icon {
     margin-right: 15px;
     color: var(--secondary);
     font-size: 2rem;
}

.form-group {
     margin-bottom: 20px;
}

.form-group label {
     display: block;
     margin-bottom: 8px;
     color: var(--primary);
     font-weight: 500;
}

.form-control {
     width: 100%;
     padding: 1.2rem 1.5rem;
     border: 0.1rem solid var(--gray-color);
     border-radius: 0.5rem;
     font-size: 1.6rem;
     outline: none;
     transition: border-color 300ms;
}

.form-control:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 0.3rem rgba(67, 97, 238, 0.2);
}

::placeholder {
     color: var(--gray-color);
     font-size: 1.6rem;
}

.submit-btn {
     display: block;
     width: 100%;
     padding: 1.2rem;
     background-color: var(--secondary);
     color: var(--white);
     border: none;
     border-radius: 0.4rem;
     font-size: 1.6rem;
     font-weight: var(--font-weight-600);
     cursor: pointer;
     transition: background-color 300ms;
     margin-top: 2rem;
}

.submit-btn:hover {
     background-color: #c0392b;
}

.submit-btn:active {
     transform: translateY(0.2rem);
}

.form-footer {
     text-align: center;
     margin-top: 20px;
     color: #666;
}

.form-footer a {
     color: var(--secondary);
     text-decoration: none;
     font-weight: 500;
}

.form-footer a:hover {
     text-decoration: underline;
}

/* Footer */
.social-links a {
     display: inline-block;
     margin: 0 1rem;
     color: var(--white);
     font-size: 2rem;
     transition: color 300ms;
}

.social-links a:hover {
     color: var(--secondary);
}

/* Modal Styles */
.modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.7);
     z-index: 2000;
     justify-content: center;
     align-items: center;
     opacity: 0;
     transition: opacity 300ms;
}

.modal-content {
     background-color: var(--white);
     padding: 4rem;
     border-radius: 0.8rem;
     width: 100%;
     max-width: 50rem;
     box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
     position: relative;
     max-height: 100vh;
     overflow-y: auto;
}

.close-modal {
     position: absolute;
     top: 15px;
     right: 20px;
     font-size: 24px;
     color: #777;
     cursor: pointer;
     transition: color 0.3s;
}

.close-modal:hover {
     color: var(--secondary);
     transform: scale(1.1);
}

.close-modal:active {
     transform: translateY(0.2rem);
}

.modal-title {
     text-align: center;
     margin-bottom: 30px;
     color: var(--primary);
}

.modal-title h2 {
     font-size: 28px;
     margin-bottom: 10px;
}

.modal-title p {
     color: #666;
}
