@import url("https://fonts.googleapis.com/css2?family=Gugi&display=swap");

/* ===============================
       Root Variables
       =============================== */
:root {
    --primary: #55b7fd;
    --secondary: #209af7;
    --primary-light: rgba(32, 154, 247, 0.06);
    --white: #ffffff;
    --dark: #222;
    --text-light: #555;
    --max-width: 1440px;
    --transition: 0.3s ease;
}

/* ===============================
       Global Styles
       =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Gugi", sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

body.loading {
    visibility: hidden;
    opacity: 0;
}

h1,
h2 {
    color: var(--text-light);
}

h3 {
    color: var(--primary);
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===============================
       Navbar
       =============================== */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 1rem;
    position: relative;
}

.nav-content img {
    width: 45px;
    margin-right: 0.5rem;
}

.logo {
    font-family: "Gugi";
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--dark);
    margin-left: 0.2rem;
}

nav {
    display: flex;
    gap: 3.5rem;
    position: relative;
}

nav a {
    color: var(--text-light);
    font-size: large;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

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

/* Navigation Indicator */
.nav-indicator {
    position: absolute;
    bottom: -2px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.auth-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    filter: drop-shadow(0 0 4px #6abcfa);
    transition: var(--transition);
}

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

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

.btn.secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--white);
}

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

/* ===============================
       Hero Section
       =============================== */
.hero {
    background: var(--white);
    padding: 8rem 0 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.highlight {
    color: var(--primary);
}

/* ===============================
       About Section
       =============================== */
.about {
    background: var(--primary-light);
    padding: 4rem 0;
    position: relative;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.wave-decoration {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 5rem;
    padding: 32px;
}

.about-text,
.about-image {
    flex: 1;
    max-width: 50%;
    align-items: center;
    justify-content: center;
}

.about-text p {
    margin: 1rem auto;
    color: var(--text-light);
    font-size: 1.2rem;
}

.about-text a {
    margin: 1rem auto;
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    width: auto;
    text-align: center;
    font-weight: 600;
    filter: drop-shadow(0 0 4px var(--primary));
    transition: var(--transition);
}

.about-text a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Call-to-Action Section */
.cta-section {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
}

.cta-section p {
    margin: 0 0 1rem 0 !important;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

.cta-section a {
    margin: 0 !important;
}

/* ===============================
       Features Section
       =============================== */
.features {
    background: var(--white);
    padding: 4rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.features-container {
    display: grid;
    gap: 20px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 32px;
    justify-content: center;
}

.item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.item i {
    color: var(--secondary);
    font-size: 32px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Icon Switcher Animation */
.icons-switcher {
    position: relative;
    display: block;
    margin-bottom: 1rem;
    height: 42px;
}

.icons-switcher i {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    transition: opacity 0.8s ease-in-out;
}

.icons-switcher i:nth-child(1) {
    opacity: 1;
    animation: iconFadeSwitch1 4s infinite;
}

.icons-switcher i:nth-child(2) {
    opacity: 0;
    animation: iconFadeSwitch2 4s infinite;
}

@keyframes iconFadeSwitch1 {

    0%,
    35% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes iconFadeSwitch2 {

    0%,
    50% {
        opacity: 0;
    }

    65%,
    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.item h3 {
    margin-bottom: 0.5rem;
}

.item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(4) {
    grid-row: 2 / 4;
    grid-column: 2 / 4;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 3 / 5;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(5) {
    grid-row: 2 / 4;
    grid-column: 4 / 5;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(7) {
    grid-row: 4 / 5;
    grid-column: 3 / 5;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(6) {
    grid-row: 4 / 5;
    grid-column: 1 / 3;
    justify-self: stretch;
    align-self: stretch;
}

.item:nth-child(3) {
    grid-row: 2 / 4;
    grid-column: 1 / 2;
    justify-self: stretch;
    align-self: stretch;
}

/* ===============================
       Contact Section
       =============================== */
.contact {
    background: var(--primary-light);
    padding: 4rem 0;
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 32px;
}

.contact-text {
    flex: 1;
    max-width: 50%;
}

.contact-text p {
    margin: 1rem auto;
    color: var(--text-light);
    font-size: 1.2rem;
}

.contact-image {
    flex: 1;
    order: 2;
    max-width: 50%;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Input row for side-by-side layout */
.input-row {
    display: flex;
    gap: 1rem;
}

/* Input wrapper with icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 18px;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-wrapper input {
    padding-left: 45px !important;
}

.input-wrapper:focus-within i {
    color: var(--primary);
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(32, 154, 247, 0.1);
}

.contact textarea {
    resize: none;
    overflow: auto;
    min-height: 240px;
}

.contact button {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    width: auto;
    min-width: 150px;
    align-self: center;
    filter: drop-shadow(0 0 4px var(--primary));
}

.contact button:hover {
    background: var(--secondary);
}

/* ===============================
       Footer
   =============================== */
.footer {
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer .container {
    flex-direction: column;
    gap: 0.5rem;
}

.footer p {
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

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

.footer {
    text-decoration: none;
    font-weight: 600;
}

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

/* ===============================
       Mobile Menu Styles
       =============================== */
.notifications {
    top: 85px;
}

/* Mobile menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

/* Hamburger animation when active */
.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(7px, -6px);
}

/* Overlay for when menu is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.overlay.active {
    display: block;
}

/* ===============================
       Responsive Design
       =============================== */

/* Tablet Screens */
@media (max-width: 1024px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .item:nth-child(1),
    .item:nth-child(2),
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(6),
    .item:nth-child(7) {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .contact-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Navbar mobile styles */
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.mobile-menu-open {
        right: 0 !important;
    }

    /* Hide nav indicator on mobile */
    .nav-indicator {
        display: none !important;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-auth {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    /* Navbar tablet styling */
    .nav-link {
        padding: 0;
        font-weight: 500;
    }

    /* Hero section */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    /* About section */
    .about-content {
        flex-direction: column;
        padding: 1rem;
    }

    .about-text,
    .about-image {
        max-width: 100%;
    }

    /* Features section */
    .features-container {
        grid-template-columns: 1fr !important;
        padding: 1rem;
    }

    /* Contact section */
    .contact-content {
        flex-direction: column;
        padding: 1rem;
    }

    .contact-text,
    .contact-image {
        max-width: 100%;
    }

    .input-row {
        flex-direction: column;
    }

        .footer {
        padding: 1.5rem 0;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-links a:not(:last-child)::after {
        right: -0.7rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 6rem 0 2rem 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about,
    .contact {
        padding: 2rem 0;
    }

    .about h2,
    .contact h2 {
        margin-top: 2rem;
    }

    .features {
        padding: 2rem 0;
    }

    .item {
        padding: 1rem;
    }

    .footer .container {
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links a:not(:last-child)::after {
        display: none;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}
