/* ======================================= */
/* Cloud8 Web Services - style.css         */
/* Theme: Dark Mode with Aqua/Teal Accent  */
/* ======================================= */

/* --- 1. Variables and Base Reset --- */
:root {
    /* PRIMARY COLOR: Vibrant Aqua/Teal to match the new logo's highlights */
    --accent-color: #1de9b6; 
    
    /* Backgrounds */
    --bg-dark: #0f172a;       /* Deep Navy/Slate */
    --bg-card: #1e293b;       /* Slightly lighter for cards */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. Header & Nav --- */
header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px); /* Glass effect on scroll */
}

/* Logo container styling (used by the <a> tag) */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo Image Sizing - SET TO 300PX WIDTH */
.logo-img {
    height: auto; 
    width: 300px; 
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Login Button Styling */
.btn-login {
    padding: 8px 16px;
    background: var(--accent-color);
    color: #000;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}


/* --- 3. Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* Fancy gradient text effect */
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* --- 4. Service Cards (Used for Home and Colocation Pages) --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

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

/* Top accent line/glow effect on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before { 
    opacity: 1; 
}

.card h3 { 
    margin-bottom: 1rem; 
    font-size: 1.25rem; 
}

.card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}


/* --- 5. Footer --- */
footer {
    margin-top: auto;
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

.footer-content a {
    color: inherit; 
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--accent-color);
}


/* --- 6. Pricing Page Specific Styles --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}
.plan-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.plan-card.featured {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.2); /* Soft neon glow (Aqua/Teal) */
}
.plan-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.plan-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.plan-card .price span {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
}
.plan-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 1.5rem 0 2rem;
    color: var(--text-muted);
}
.plan-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan-card ul li:last-child {
    border-bottom: none;
}

/* --- 7. Contact Page Specific Styles --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    align-items: start;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}
.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--bg-card);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 1.5rem;
}


/* --- 8. Media Queries (Responsiveness) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    /* Reduce logo size for better fit on small screens */
    .logo-img {
        width: 180px; 
    }

    nav ul {
        gap: 1rem;
        padding-top: 10px;
        justify-content: center;
    }
    
    .header-cta {
        order: 3; /* Move login button to the end on mobile */
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }
}
