/* ===== CSS Variables & Design Tokens ===== */
:root {
    /* Warm Light Theme Palette */
    --primary: #d97757;       /* Muted Terracotta */
    --primary-light: #e6a87c; /* Soft Peach */
    --secondary: #c69b6d;     /* Warm Gold */
    
    --background: #fdfaf7;    /* Soft off-white/cream */
    --bg-white: #ffffff;      /* Pure white */
    
    --text-main: #2b201d;     /* Dark espresso text */
    --text-light: #6a5a55;    /* Muted dark grey text */
    
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: rgba(217, 119, 87, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(217, 119, 87, 0.08);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Premium Background Animation (Alice.sh style, Light Mode) ===== */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--background);
    overflow: hidden;
}

/* SVG Noise Overlay for premium matte feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(140px);
    border-radius: 50%;
    opacity: 0.4;
    animation: moveBlob 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(217,119,87,0) 70%);
    top: -20%;
    left: -10%;
}

.blob-2 {
    width: 80vw;
    height: 80vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(230,168,124,0) 70%);
    bottom: -30%;
    right: -20%;
    animation-delay: -5s;
    animation-duration: 35s;
}

.blob-3 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(198,155,109,0) 70%);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, -5%) scale(1.05); }
    66% { transform: translate(-5%, 8%) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* ===== Glassmorphism Utilities ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(217, 119, 87, 0.15);
    border-color: rgba(230, 168, 124, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-primary);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-outline {
    background: rgba(217, 119, 87, 0.05);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(217, 119, 87, 0.15);
    color: var(--text-main);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(253, 250, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 119, 87, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    gap: 12px;
    letter-spacing: 0.05em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(217, 119, 87, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(217, 119, 87, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== Statistics Section ===== */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid rgba(217, 119, 87, 0.1);
    border-bottom: 1px solid rgba(217, 119, 87, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Features & Benefits Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px 35px;
    text-align: left;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Services & Port Speeds ===== */
.services-section {
    background-color: var(--bg-white);
    position: relative;
    z-index: 1; /* Above the background animation */
    border-top: 1px solid rgba(217, 119, 87, 0.1);
    border-bottom: 1px solid rgba(217, 119, 87, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.port-speeds {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.port-badge {
    padding: 8px 16px;
    background: rgba(217, 119, 87, 0.05);
    border: 1px solid rgba(217, 119, 87, 0.2);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
}

/* ===== Australian Network Section ===== */
.ix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ix-card {
    padding: 25px;
    text-align: center;
}

.ix-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.ix-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.ix-card .status {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(198, 155, 109, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(198, 155, 109, 0.4);
}

/* ===== Footer ===== */
.footer {
    background: #f6f0eb;
    color: var(--text-main);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(217, 119, 87, 0.1);
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(217, 119, 87, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ===== Auth Portal ===== */
.portal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 10;
}

.auth-logo {
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.auth-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(217, 119, 87, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
    animation: fadeInForm 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    margin-bottom: 25px;
    text-align: center;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(217, 119, 87, 0.2);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    color: var(--text-main);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
    background: #fff;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.form-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-msg.success {
    color: #27ae60;
}

.form-msg.error {
    color: #e74c3c;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    
    .stats-grid, .ix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid, .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero h1 { font-size: 2.8rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ix-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
