:root{
--primary: #fff;
--secondary: #1a1a1a;
--accent: #ff4757;
--background-light: #f8f9fa;
--text-muted: #6c757d;
--hover-shadow: rgba(0, 0, 0, 0.2);
--card-shadow: rgba(0, 0, 0, 0.1);
--border-radius: 12px;
}

/*====================================
GLOBAL STYLES
====================================*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Mulish', sans-serif;
font-weight: 400;
letter-spacing: 1px;
scroll-behavior: smooth;
}

body{
background-color: var(--primary);
color: var(--secondary);
}

/* Improve focus visibility for accessibility */
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}

.section-title {
color: var(--secondary);
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 40px;
text-align: center;
}

/*====================================
HEADER & NAVIGATION
====================================*/
header{
width: 90%;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 5%;
z-index: 1000;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 0 0 var(--border-radius) var(--border-radius);
transition: all 0.3s ease;
min-height: 75px;
}

header.scrolled {
box-shadow: 0 4px 12px var(--card-shadow);
}

header:hover {
box-shadow: 0 8px 20px var(--hover-shadow);
}

.logo{
display: flex;
align-items: center;
margin-left: 25px;
cursor: pointer;
transition: transform 0.3s ease;
}

.logo h2 a {
color: var(--secondary);
font-size: 1.5rem;
font-weight: 700;
background: linear-gradient(45deg, var(--secondary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-decoration: none;
}

.logo:hover {
transform: scale(1.05);
}

header nav ul{
display: flex;
align-items: center;
}

header nav ul li{
list-style-type: none;
margin-right: 40px;
}

header nav ul li a {
display: flex;
align-items: center;
padding: 25px 0;
color: var(--secondary);
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
text-decoration: none;
}

header nav ul li a i {
margin-right: 8px;
font-size: 1.1rem;
}

header nav ul li a:hover {
color: var(--accent);
transform: translateY(-2px);
}

.nav-button {
background-color: var(--accent);
color: var(--primary);
border: none;
border-radius: 8px;
padding: 10px 20px;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}

.nav-button:hover {
background-color: #ff3742;
transform: translateY(-2px);
box-shadow: 0 4px 10px var(--hover-shadow);
}

.nav-button i {
margin-right: 6px;
}

/*====================================
HAMBURGER MENU (MOBILE)
====================================*/
.hamburger-menu{
display: none; /* Hidden by default */
flex-direction: column;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s ease;
margin-right: 25px;
z-index: 1002;
}

.hamburger-menu span{
background-color: var(--secondary);
margin: 3px 0;
height: 3px;
width: 28px;
transition: all 0.3s ease;
border-radius: 2px;
}

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

/*====================================
HERO SECTION
====================================*/
.container{
width: 100%;
min-height: 100vh;
padding: 150px 5%;
display: flex;
justify-content: space-evenly;
align-items: center;
background: radial-gradient(circle, var(--background-light) 0%, var(--primary) 70%);
}

.hero-content {
margin-right: 5%;
max-width: 600px;
}

.hero-title {
font-size: 3.5rem;
font-weight: 900;
line-height: 1.2;
margin-bottom: 20px;
background: linear-gradient(45deg, var(--accent), #a2323b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 2px 2px 15px rgba(0,0,0,0.05);
}

.hero-subtitle {
font-size: 1.2rem;
color: var(--text-muted);
line-height: 1.7;
margin-bottom: 30px;
}

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

.hero-image {
max-width: 480px;
min-width: 50px;
animation: float 4s ease-in-out infinite;
}

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

.hero-image img{
width: 100%;
height: auto;
filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button, .cta-button-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
background-color: var(--accent);
color: var(--primary);
outline: none;
border: 2px solid transparent;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px var(--card-shadow);
padding: 14px 28px;
font-size: 1.1rem;
font-weight: 700;
}

.cta-button i, .cta-button-secondary i {
margin-right: 10px;
}

.cta-button:hover {
background-color: #ff3742;
transform: translateY(-3px);
box-shadow: 0 8px 20px var(--hover-shadow);
}

.cta-button-secondary {
background-color: transparent;
color: var(--accent);
border-color: var(--accent);
}

.cta-button-secondary:hover {
background-color: var(--accent);
color: var(--primary);
}

/*====================================
FEATURES SECTION (CARDS)
====================================*/
.features-section {
width: 85%;
max-width: 1200px;
margin: 100px auto;
padding: 80px 0;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 50px;
}

.card {
background-color: var(--primary);
box-shadow: 0 4px 12px var(--card-shadow);
border-radius: var(--border-radius);
overflow: hidden;
cursor: pointer;
display: flex;
flex-direction: column;
opacity: 0;
transform: translateY(30px);
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.is-visible {
opacity: 1;
transform: translateY(0);
}

.card:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 15px 30px var(--hover-shadow);
}

.card img {
width: 100%;
height: 220px;
object-fit: cover;
transition: transform 0.4s ease;
}

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

.card-content {
padding: 25px;
text-align: center;
flex-grow: 1;
}

.card-content h3 {
color: var(--secondary);
font-weight: 700;
margin-bottom: 10px;
}

.card-content p {
color: var(--text-muted);
font-size: 1rem;
line-height: 1.6;
font-weight: 400;
}

/*====================================
INTERACTIVE COLOR SECTION
====================================*/
.color-section {
width: 80%;
margin: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 80px 0;
text-align: center;
}

.color-buttons {
display: flex;
gap: 20px;
margin-bottom: 40px;
}

.color-buttons button {
color: var(--primary);
font-weight: 700;
padding: 12px 25px;
font-size: 1.1rem;
border: none;
border-radius: 50px;
box-shadow: 0 4px 12px var(--card-shadow);
cursor: pointer;
transition: all 0.3s ease;
}

.color-buttons button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px var(--hover-shadow);
}

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

.color-buttons .color-white {
background-color: whitesmoke;
color: var(--secondary);
}

.color-buttons .color-red {
background-color: var(--accent);
}

.interactive-image-container {
max-width: 480px;
min-width: 60px;
margin-bottom: 45px;
}

.interactive-image-container img {
width: 100%;
filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*====================================
SPECIFICATIONS SECTION
====================================*/
.specs-section {
width: 85%;
margin: auto;
padding: 80px 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.spec-item {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.spec-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delay */
.spec-item:nth-child(2) { transition-delay: 0.1s; }
.spec-item:nth-child(3) { transition-delay: 0.2s; }
.spec-item:nth-child(4) { transition-delay: 0.3s; }
.spec-item:nth-child(5) { transition-delay: 0.4s; }
.spec-item:nth-child(6) { transition-delay: 0.5s; }

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--hover-shadow);
}

.spec-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.spec-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.spec-details {
  color: var(--text-muted);
  font-size: 1rem;
}

/*====================================
TESTIMONIALS SECTION
====================================*/
.testimonials-section {
width: 85%;
margin: auto;
padding: 80px 0;
background-color: #f0f2f5;
border-radius: var(--border-radius);
}

.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
padding: 0 40px;
}

.testimonial-card {
background-color: var(--primary);
padding: 35px;
border-radius: var(--border-radius);
box-shadow: 0 4px 12px var(--card-shadow);
opacity: 0;
transform: scale(0.9);
transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
border-top: 4px solid var(--accent);
position: relative;
}

.testimonial-card:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 12px 24px var(--hover-shadow);
}

.testimonial-card.active {
opacity: 1;
transform: scale(1);
}

.testimonial-rating {
margin-bottom: 15px;
color: #f39c12; /* Gold color for stars */
}

.testimonial-card blockquote {
font-style: italic;
font-size: 1.1rem;
color: var(--secondary);
margin: 0 0 20px 0;
position: relative;
padding-left: 35px;
}

.testimonial-card blockquote::before {
content: '\f10d';
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
left: 0;
top: -5px;
font-size: 1.5rem;
color: var(--accent);
opacity: 0.8;
}

.testimonial-author {
display: flex;
align-items: center;
margin-top: 20px;
}

.testimonial-avatar img {
width: 60px;
height: 60px;
border-radius: 50%;
margin-right: 15px;
object-fit: cover;
border: 2px solid var(--background-light);
}

.testimonial-card cite {
font-weight: 700;
color: var(--secondary);
font-style: normal;
}

.author-title {
font-size: 0.9rem;
color: var(--text-muted);
}

/*====================================
UI ICONS
====================================*/
.cta-button i,
.card-content h3 i,
.footer-column h4 i,
.newsletter-form button:not([disabled]) i {
    margin-right: 8px;
}

.card-content h3 i {
    color: var(--accent);
}

/*====================================
LOGIN FORM MODAL
====================================*/
#login-container {
display: none; /* Initially hidden */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
z-index: 2000;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

#login-container.visible {
display: flex;
opacity: 1;
}

.login-screen {
background: linear-gradient(90deg, #5D54A4, #7C78B8);
position: relative;
height: 600px;
width: 360px;
box-shadow: 0px 0px 24px #5C5696;
border-radius: 15px;
overflow: hidden;
animation: slideIn 0.5s ease-out forwards;
}

#login-close-btn {
position: absolute;
top: 15px;
right: 15px;
background: transparent;
border: none;
color: #7875B5;
font-size: 1.3rem;
cursor: pointer;
z-index: 10;
transition: transform 0.2s ease, color 0.2s ease;
}

#login-close-btn:hover {
transform: scale(1.2);
color: #fff;
}

@keyframes slideIn {
from { transform: translateY(-30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

.screen__content { z-index: 1; position: relative; height: 100%; }
.screen__background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; clip-path: inset(0 0 0 0); }
.screen__background__shape { transform: rotate(45deg); position: absolute; }

.screen__background__shape--1 { height: 520px; width: 520px; background: #FFF; top: -50px; right: 120px; border-radius: 0 72px 0 0; }
.screen__background__shape--2 { height: 220px; width: 220px; background: #6C63AC; top: -172px; right: 0; border-radius: 32px; }
.screen__background__shape--3 { height: 540px; width: 190px; background: linear-gradient(270deg, #5D54A4, #6A679E); top: -24px; right: 0; border-radius: 32px; }
.screen__background__shape--4 { height: 400px; width: 200px; background: #7E7BB9; top: 420px; right: 50px; border-radius: 60px; }

.login { width: 320px; padding: 30px; padding-top: 156px; }
.login__field { padding: 20px 0px; position: relative; }
.login__icon { position: absolute; top: 30px; color: #7875B5; }
.login__input { border: none; border-bottom: 2px solid #D1D1D4; background: none; padding: 10px; padding-left: 24px; font-weight: 700; width: 75%; transition: .2s; color: #333; }
.login__input:active, .login__input:focus, .login__input:hover { outline: none; border-bottom-color: #6A679E; }
.login__submit { background: #fff; font-size: 14px; margin-top: 30px; padding: 16px 20px; border-radius: 26px; border: 1px solid #D4D3E8; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; width: 100%; color: #4C489D; box-shadow: 0px 2px 2px #5C5696; cursor: pointer; transition: .3s; }
.login__submit:active, .login__submit:focus, .login__submit:hover { border-color: #6A679E; outline: none; transform: translateY(-2px); box-shadow: 0px 5px 15px #5C5696; }
.button__icon { font-size: 24px; margin-left: auto; color: #7875B5; }

.social-login { position: absolute; height: 140px; width: 160px; text-align: center; bottom: 0px; right: 0px; color: #fff; }
.social-icons { display: flex; align-items: center; justify-content: center; }
.social-login__icon { padding: 20px 10px; color: #fff; text-decoration: none; text-shadow: 0px 0px 8px #7875B5; transition: all 0.3s ease; }
.social-login__icon:hover { transform: scale(1.5); }

/*====================================
FOOTER
====================================*/
.site-footer {
background-color: var(--secondary);
color: rgba(255, 255, 255, 0.8);
padding: 60px 5%;
font-size: 0.9rem;
}

.footer-grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 40px;
margin-bottom: 40px;
}

.footer-column h4 {
color: var(--primary);
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}

.footer-column h4::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 2px;
background-color: var(--accent);
}

.footer-column p {
line-height: 1.7;
margin-bottom: 20px;
}

.footer-column ul {
list-style: none;
padding: 0;
}

.footer-column ul li {
margin-bottom: 12px;
}

.footer-column ul a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul a:hover {
color: var(--primary);
padding-left: 5px;
}

.newsletter-form {
display: flex;
flex-direction: column;
}

.newsletter-form input {
padding: 12px;
border-radius: 5px;
border: 1px solid #444;
background-color: #333;
color: var(--primary);
margin-bottom: 10px;
font-family: inherit;
transition: border-color 0.3s ease, max-height 0.5s ease-out, opacity 0.5s ease-out, margin-bottom 0.5s ease-out;
max-height: 100px;
opacity: 1;
}

.newsletter-form input.invalid {
  border-color: var(--accent);
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.newsletter-form button {
background-color: var(--accent);
color: var(--primary);
border: none;
padding: 12px;
border-radius: 5px;
cursor: pointer;
font-weight: 700;
transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
background-color: #ff3742;
}

.newsletter-message {
font-weight: 700;
margin-top: 0;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: all 0.4s ease-out;
text-align: center;
font-size: 0.95rem;
}

.newsletter-message.error {
  color: var(--accent);
  max-height: 60px;
  opacity: 1;
  margin-top: 10px;
}

.newsletter-form.subscribed .newsletter-message {
color: #2ecc71;
max-height: 60px;
opacity: 1;
margin-top: 10px;
}

.newsletter-form.subscribed input {
max-height: 0;
opacity: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
border-width: 0;
}

.newsletter-form.subscribed button {
width: 100%;
background-color: #27ae60;
cursor: default;
}

.newsletter-form.subscribed button:hover {
background-color: #27ae60;
}

.footer-bottom {
max-width: 1200px;
margin: 0 auto;
padding-top: 30px;
border-top: 1px solid #444;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
}

.social-links {
display: flex;
gap: 20px;
}

.social-links a {
color: var(--primary);
font-size: 1.5rem;
transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
color: var(--accent);
transform: translateY(-3px);
}

.footer-credits {
max-width: 1200px;
margin: 0 auto;
text-align: center;
padding: 15px;
background-color: #111;
border-radius: 8px;
border: 1px solid #444;
}

.footer-credits p {
margin: 0;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
}

.footer-credits .fas.fa-code {
color: var(--accent);
}

.footer-credits a {
color: var(--primary);
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
display: inline-flex;
align-items: center;
gap: 5px;
}

.footer-credits a:hover {
color: var(--accent);
}

/*====================================
SCROLL TO TOP BUTTON
====================================*/
#scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: var(--accent);
color: var(--primary);
border: none;
border-radius: 50%;
font-size: 1.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px var(--hover-shadow);
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
z-index: 1500;
}

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

#scroll-to-top:hover {
background-color: #ff3742;
transform: scale(1.1);
}

/*====================================
MEDIA QUERIES
====================================*/
@media (max-width: 1100px) {
    .features-section, .specs-section, .testimonials-section { width: 90%; }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        margin-right: 0;
        margin-top: 40px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { justify-content: center; }
    .section-title { font-size: 2rem; }

    header nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 100px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    header nav ul.menu-open {
        right: 0;
    }

    header nav ul li {
        width: 100%;
        margin-right: 0;
        border-bottom: 1px solid #eee;
    }

    header nav ul li a, header nav ul li .nav-button {
        padding: 20px 30px;
        width: 100%;
        border-radius: 0;
        text-align: left;
    }

    .hamburger-menu {
        display: flex;
    }

    .color-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }

    .color-buttons {
        flex-direction: column;
        gap: 15px;
    }

    header nav ul { width: 250px; }

    .login-screen {
        width: 90%;
        height: 550px;
    }
}
