/* CSS Reset for consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root variables for consistency */
:root {
    --primary: #00E5FF;
    --secondary: #007bb5;
    --accent: #E6F0FA;
    --background: #F7FAFC;
    --text: #1A202C;
    --text-light: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.2s ease;
    --gradient: linear-gradient(135deg, #00E5FF, #007bb5);
}

/* Global styles */
body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(0, 229, 255, 0.35); /* Slightly increased opacity for blur visibility */
    backdrop-filter: blur(12px); /* Stronger blur for frosted-glass effect */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: .3s;
}

.navbar.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(0, 229, 255, 0.45); /* Slightly darker for scrolled state */
    backdrop-filter: blur(12px);
}

.navbar a {
    color: #2B4A6A; /* Muted navy for softer contrast, better aesthetics */
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
}

.navbar .links {
    display: flex;
    gap: 1rem;
}

.navbar .links a:hover {
    background: rgba(230, 240, 250, 0.3); /* Subtle --accent tint on hover */
    color: var(--secondary);
    transform: scale(1.05); /* Subtle scale effect */
}

.navbar .links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar .links a:hover::before {
    width: 80%; /* Glowing underline effect */
}

/* Hamburger Menu */
.navbar .hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.navbar .hamburger span {
    background: #2B4A6A; /* Match link color for consistency */
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.navbar .hamburger span:nth-child(1) { top: 0; }
.navbar .hamburger span:nth-child(2) { top: 8px; }
.navbar .hamburger span:nth-child(3) { top: 16px; }

.navbar .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Motto */
.motto {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
    transition: .3s;
    color: #00E5FF;
}

.motto h1 {
    font-size: 5rem;
    transition: opacity 0.5s ease;
}

.motto-word {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Section */
.link-section {
    background: var(--gradient);
    margin: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.link-section:hover {
    transform: translateY(-5px);
}

.link-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
}

.link-section a h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.link-section p {
    font-size: 1rem;
}

/* App Section */
.app {
    background: var(--gradient);
    margin: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    transition: var(--transition);
}

.app:hover {
    transform: translateY(-5px);
}

.app img {
    max-width: 100%;
    border-radius: 8px;
}

.app-content h1 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.app a {
    padding: 0.75rem 1.5rem;
    background: var(--text-light);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.app a:hover {
    background: var(--accent);
    color: var(--secondary);
}

/* Contact Form */
.contact-form {
    background: #fff;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-form h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    outline: none;
}

.submit-button {
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-2px);
}

/* Full App Section */
.full-app {
    background: #fff;
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    display: grid;
    gap: 1.5rem;
}

.full-app img {
    max-width: 180px;
    border-radius: 12px;
    margin: 0 auto;
}

.full-app h1 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.full-app p {
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
    text-align: justify;
}

.full-app a {
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: var(--text-light);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.full-app a:hover {
    transform: translateY(-2px);
}

.full-app .privacy-policy,
.full-app .instructions {
    background: var(--accent);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.full-app .privacy-policy a,
.full-app .instructions a {
    background: var(--gradient);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
}

.full-app .privacy-policy p,
.full-app .instructions p {
    color: var(--text);
    font-size: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem;
    }

    .navbar .links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 229, 255, 0.4);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
    }

    .navbar .links.active {
        display: flex;
    }

    .navbar .hamburger {
        display: block;
    }

    .motto h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

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

    .app img {
        max-width: 80px;
    }

    .full-app {
        padding: 1.5rem;
        gap: 1rem;
    }

    .full-app img {
        max-width: 140px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.75rem;
    }

    .navbar a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .motto {
        margin: 2rem 0.5rem;
    }

    .link-section,
    .app,
    .contact-form,
    .full-app {
        margin: 1rem;
        padding: 1.5rem;
    }

    .full-app img {
        max-width: 100px;
    }

    .full-app h1 {
        font-size: 1.8rem;
    }

    .full-app p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .motto h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .link-section a h1,
    .app-content h1,
    .contact-form h1,
    .full-app h1 {
        font-size: 1.5rem;
    }

    .full-app a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}