/* 
* NMWater Testing Coming Soon Page Styles
* Created by CyberNash Technologies (https://cybernash.pro)
* Date: May 9, 2025
*/

:root {
    --primary-color: #0d47a1; /* Dark blue */
    --secondary-color: #121212; /* Almost black */
    --background-color: #ffffff; /* White background */
    --text-color: #333333; /* Dark text */
    --accent-color: #ffffff; /* White */
    --border-color: #e0e0e0;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #0d47a1 0%, #002171 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
    background-image: radial-gradient(circle at 10% 20%, rgba(13, 71, 161, 0.03) 0%, rgba(255, 255, 255, 0) 80%);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover, 
a:focus {
    color: var(--secondary-color);
}

/* Layout & Container Styles - Mobile First */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

/* Header Styles */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    text-align: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.logo span {
    color: var(--primary-color);
}

.parent-company {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: -0.25rem;
    opacity: 0.8;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
    width: 100%;
}

/* Hero Section */
.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-text {
    flex: 1;
    text-align: center;
    width: 100%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 1rem;
}

.hero-image img {
    max-width: 85%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.2);
    border: 1px solid var(--border-color);
    padding: 5px;
    background-color: var(--accent-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 span {
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    max-width: 100%;
    padding: 0 0.5rem;
}

.launch-info {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

.countdown-item {
    background: var(--gradient-bg);
    color: var(--accent-color);
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-number {
    font-size: 1.4rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Subscribe Form */
.subscribe-form {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    -webkit-appearance: none; /* Remove iOS styling */
    background-color: var(--accent-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove iOS styling */
}

button[type="submit"]:hover, 
button[type="submit"]:active {
    background-color: #1565c0;
    box-shadow: 0 0 15px rgba(13, 71, 161, 0.5);
}

.success-message {
    color: #2e7d32;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    background-color: rgba(46, 125, 50, 0.1);
    border-radius: 4px;
}

.error-message {
    color: #c62828;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    background-color: rgba(198, 40, 40, 0.1);
    border-radius: 4px;
}

/* Features Section */
.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    width: 100%;
}

.feature-item {
    background-color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 71, 161, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Contact Information */
.contact-info {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    word-break: break-word;
}

.contact-icon {
    color: var(--primary-color);
    min-width: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover, 
.social-link:active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.4);
}

/* Footer */
footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
}

.developer-credit {
    margin-top: 1rem;
    font-size: 0.75rem;
}

.developer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.developer-credit a:hover,
.developer-credit a:active {
    color: var(--secondary-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Fix for iOS input zoom */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px;
    }
}

/* Fix for browser auto-filling inputs with a yellow background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    header {
        justify-content: flex-start;
        text-align: left;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-image {
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .countdown {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .form-group {
        flex-direction: row;
    }
    
    input[type="email"] {
        width: 70%;
    }
    
    button[type="submit"] {
        width: 30%;
    }
    
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .feature-item {
        width: calc(33.333% - 2rem);
        max-width: 300px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }
    
    .content-wrapper {
        margin-top: 2rem;
    }
    
    .main-content {
        padding: 3rem 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .container {
        padding: 0;
    }
    
    .hero-image, .countdown, .subscribe-form, .social-links {
        display: none;
    }
    
    body, .hero-text, .features, .contact-info {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .feature-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    footer {
        position: fixed;
        bottom: 0;
    }
}