:root {
    --header-height: 80px;
    --section-padding: 100px 5%;
    --container-width: 1200px;

    --periwinkle-light: #ccccff;
    --periwinkle: #b3b3ff;
    --periwinkle-dark: #7a7aff;
    --bg-dark: #0a0a0c;
    --text-light: #f0f0f5;
    --text-muted: #c5c5d5;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #d4d4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--periwinkle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.glass-nav {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--periwinkle-light);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    background: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.4)), url('periwinkle_flooring_hero_1776300433355.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Glass UI Elements */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--periwinkle-dark);
}

/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CTA Button */
.btn {
    display: inline-block;
    padding: 18px 36px;
    background: var(--periwinkle);
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(179, 179, 255, 0.3);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

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

input, textarea {
    width: 100%;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--periwinkle);
}

footer {
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .glass-nav {
        padding: 15px 20px;
        flex-direction: column;
        border-radius: 20px;
        top: 10px;
        position: relative;
        transform: none;
        left: auto;
        width: 100%;
        margin-bottom: 2rem;
    }
    .nav-links {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .hero {
        padding-top: 120px;
        height: auto;
        min-height: 80vh;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    section {
        padding: 60px 4%;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .hero-content {
        padding: 40px 0;
    }
    header {
        padding-top: 20px !important;
    }
}

/* Social Links Footer Style */
.footer-socials {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link {
    color: var(--periwinkle-light);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 5px;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--periwinkle);
    transition: width 0.4s ease;
}

.social-link:hover {
    opacity: 1;
    color: #fff;
}

.social-link:hover::after {
    width: 100%;
}

/* Fix for long horizontal navigation */
@media (min-width: 1024px) {
    .nav-links {
        gap: 15px; /* Reduced from 30px */
    }
    .nav-links a {
        font-size: 0.8rem; /* Slightly smaller for density */
    }
}

/* Ensure Logo doesn't shrink too much */
.logo {
    white-space: nowrap;
    min-width: fit-content;
}

/* Fix for Select/Option visibility in glassmorphism */
select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--glass-bg);
    color: #fff !important;
    cursor: pointer;
}

select option {
    background-color: #1a1a2e; /* Deep navy to match theme */
    color: #fff;
    padding: 10px;
}

select:focus {
    border-color: var(--periwinkle);
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    padding: 15px 30px;
    background: var(--periwinkle);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(180, 180, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.sticky-cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    box-shadow: 0 15px 50px rgba(180, 180, 255, 0.6);
}

@media (max-width: 768px) {
    .sticky-cta { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 0.8rem; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    min-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.removing {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

.toast::before {
    content: '✦';
    color: var(--periwinkle);
    font-size: 1.2rem;
}

/* Heritage Footer Expansion */
.heritage-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    text-align: left;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-col h4 {
    color: var(--periwinkle);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: #fff; }

@media (max-width: 900px) {
    .heritage-footer { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 500px) {
    .heritage-footer { grid-template-columns: 1fr; }
}

/* Backdrop Filter Fallback */
@supports not (backdrop-filter: blur(1px)) {
    .glass, .nav, .pricing-card, .footer-col, .card {
        background: rgba(10, 10, 12, 0.95) !important;
    }
}

/* Responsive Navigation */
.nav-toggle-label { display: none; }
@media (max-width: 1024px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 5px;
        z-index: 100;
    }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        display: block;
        background: #fff;
        height: 1px;
        width: 25px;
        position: relative;
        transition: all 0.3s ease;
    }
    .nav-toggle-label span::before, .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }

    .nav-links {
        display: none !important;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 0;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 15px;
        z-index: 99;
    }
    .nav-toggle:checked ~ .nav-links {
        display: flex !important;
    }
    .nav-links a { 
        width: 100%; 
        padding: 15px 0; 
        font-size: 1.1rem !important;
        letter-spacing: 0.2em;
    }
    
    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
    .nav-toggle:checked + .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}

/* Improved Select/Dropdown Styling */
select {
    width: 100%;
    padding: 16px;
    background: #15151a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
select:focus {
    border-color: #b3b3ff;
    box-shadow: 0 0 15px rgba(179,179,255,0.1);
}
option {
    background: #15151a;
    color: #fff;
    padding: 15px;
}

/* Easter Egg: Extremely Subtle Child Reflection in Pool */
.hero::before {
    content: " ;
    position: absolute;
    bottom: 25%;
    right: 38%;
    width: 60px;
    height: 90px;
    background: radial-gradient(ellipse at center, rgba(179,179,255,0.02) 0%, transparent 85%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 12s ease-in; /* Extremely slow fade in for the unseen */
    z-index: 1;
    filter: blur(3px);
}
.hero:hover::before {
    opacity: 1;
    animation: pool-ripple 20s infinite alternate ease-in-out;
}
@keyframes pool-ripple {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: scale(1); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1.05); }
}

/* Site-wide Layout Safety */
* { box-sizing: border-box; }
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header Overflow Fixes */
.glass-nav {
    width: 95%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
        font-size: 0.85rem;
    }
    .logo { font-size: 1.2rem; }
}

@media (max-width: 992px) {
    .nav-links {
        display: none; /* Force mobile menu earlier for small laptops/tablets */
    }
    .nav-toggle-label {
        display: block !important;
    }
}
