@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Stack+Sans+Text:wght@200..700&display=swap');

:root {
    --color-primary-green: #4CAF50;
    --color-accent-yellow: #FFC107;
    --color-background-light: #f4f6f9;
    --color-text-dark: #333;
    --color-text-light: #fff;
    --font-family-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 94vh;
    overflow-x: hidden;
    color: var(--color-text-dark);
    padding: 20px;
}

/* --- Animated Background Gradient --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(120deg, #e8f5e9, #ffffff, #f1f8e9, #e0f2f1); */
    background: linear-gradient(120deg, #42af4a, #ffffff, #b7a81f, #e0f2f1);
    background: linear-gradient(120deg, #42af4a, #ffca00, #b7a81f, #e0f2f1);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Floating Icons --- */
/* Floating icons with solar glow */
.floating-icon {
  position: absolute;
  z-index: 2;
  width: 60px;
  opacity: 0.5;
  filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.6));
  animation: float 8s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 193, 7, 0.8)); }
}

.icon1 { top: 10%; left: 5%; animation-delay: 0s; }
.icon2 { bottom: 8%; left: 15%; animation-delay: 2s; width: 50px; }
.icon3 { top: 10%; right: 30%; animation-delay: 4s; width: 70px; }








/* .floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-icons img {
    position: absolute;
    width: 60px;
    opacity: 0.15;
    animation: floatIcon 18s linear infinite;
}

.floating-icons img:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icons img:nth-child(2) {
    top: 10%;
    left: 90%;
    animation-delay: 5s;
}

.floating-icons img:nth-child(3) {
    top: 85%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.25;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
} */

/* --- Main Layout --- */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    flex-wrap: wrap;
    /* background: var(--color-text-dark); */
    background: white;
    border-radius: 16px;

    background-image: url('img/solar-house-5a.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 84%;
    height: 100vh;
    transition: background-image 0.1s ease-in-out;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 10%, #f6f0f0 30%, #ffffff7d 50%, #8c7a7a7d 60%, #7c7e127d 80%, #bcab0e57 100%);
    border-radius: 16px;
}

.content {
    max-width: 480px;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo img {
    width: 250px;
    height: 100%;
    object-fit: contain;
    margin-right: 10px;
}

h1 {
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    font-size: 2.7rem;
    text-transform: capitalize;
    line-height: 1;
    color: var(--color-primary-green);
    margin-bottom: 20px;
    margin-top: 80px;
    max-width: 370px;
}

p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    gap: 10px;
}

input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: var(--color-primary-green);
    color: var(--color-text-light);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

.illustration img {
    display: none;
    width: 380px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-primary-green);
    color: var(--color-text-light);
    font-size: 0.9rem;
    z-index: 2;
}

footer a {
    color: var(--color-accent-yellow);
    text-decoration: none;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: var(--color-text-light);
    margin: 0 6px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent-yellow);
}

.success-message {
    text-align: left;
    color: var(--color-primary-green);
    font-weight: 600;
    padding: 10px 0;
}

@media(max-width: 900px) {
    .container {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }

    /* .container::before {
        background: linear-gradient(to right, #ffffff 0%, #fcfcfcf7 10%, #f6f0f0e3 30%, #e4e4e49c 50%, #f2f61c7a 60%, #898c00a1 80%, #bcab0e57 100%);
    } */
}

@media(max-width: 600px) {
    body {
        padding: 5px;
        min-height: 98vh;
    }
    .icon3 { display: none }

    .container {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }

    .container::before {
        background: linear-gradient(to bottom, #ffffff 0%, #fcfcfcf7 10%, #f6f0f099 30%, #e7e7e7 50%, #fffcfcd6 60%, #7c7e12e6 80%, #bcab0efa 100%);
        background: linear-gradient(to bottom, #ffffff 0%, #fcfcfcf7 10%, #f6f0f099 30%, #e7e7e7 50%, #fffcfcd6 60%, #76ad2ef5 80%, #76ad2ef5 100%);
        background: linear-gradient(to bottom, #ffffff 0%, #ffffff 10%, #ffffff1a 30%, #f2f2f2 50%, #fefefe 60%, #76ad2ef5 80%, #76ad2ef5 100%);
    }
}

@media(max-width: 500px) {
    h1 {
        font-size: 1.9rem;
    }

    .form-group {
        flex-direction: column;
    }
    body {
        min-height: 84vh;
    }
}