/*
==================================================
SUNv3 - Main Stylesheet
==================================================
*/

/* 1. Design System & Global Styles
------------------------------------------------*/
:root {
    --primary-color: #00A79D; /* Teal */
    --primary-color-light: #00C4B3;
    --primary-color-translucent: rgba(0, 167, 157, 0.3);
    --primary-color-glow: rgba(0, 167, 157, 0.5);
    
    --secondary-color: #22D3EE; /* Bright Cyan for ZFS accents */

    --bg-dark: #0A192F;    /* Main dark background */
    --bg-darker: #081423;  /* Footer background */
    --bg-light: #0F2243;   /* Lighter dark background for light sections */
    --bg-card: rgba(15, 34, 67, 0.75); /* Card background */

    --text-light: #CCD6F6; /* Main text on dark backgrounds */
    --text-muted: #8892b0; /* Muted/paragraph text */
    --text-dark: #0A192F;  /* Text for light backgrounds (like buttons) */

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    /* scroll-padding-top: 60px; */ /* Adjust for fixed navbar height */
    /* scroll-behavior: smooth; */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 167, 157, 0.05), transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(0, 167, 157, 0.05), transparent 30%);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
}

/*
p {
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.7;
}

p.lead {
    color: var(--text-light);
    font-weight: 300;
}
*/

p {
    font-family: var(--font-body);

    /* 1. Use the more readable regular font weight */
    font-weight: 400;

    /* 2. Slightly increase the font size for comfort */
    font-size: 1.1rem; /* Approx 17.6px on most browsers */

    /* 3. Use your lighter color for better contrast */
    color: var(--text-light);

    /* 4. Constrain the width for optimal reading flow */
    /* max-width: 65ch; */

    /* Your existing line-height is great, so we'll keep it */
    line-height: 1.7;
}

/* Optional: Keep your lead paragraph style for emphasis */
p.lead {
    font-weight: 300; /* Keep this light for contrast with regular paragraphs */
    font-size: 1.25rem;
    color: var(--text-light);
    /* max-width: 60ch; */ /* You might want to adjust this for lead paragraphs too */
}




.justify {
    text-align: justify;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: var(--primary-color-light);
}

/* 2. Reusable Components & Utilities
------------------------------------------------*/

/* --- Sections --- */
section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
section:last-of-type {
    border-bottom: none;
}
.bg-dark {
    background-color: var(--bg-dark) !important;
}
.bg-light {
    background-color: var(--bg-light) !important;
}
.hr-style {
    border-color: rgba(255,255,255,0.1);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-color-light);
    border-color: var(--primary-color-light);
    box-shadow: 0 0 20px var(--primary-color-glow);
    transform: translateY(-2px);
}

/* --- Cards (Unified Style) --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--primary-color-translucent);
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}
.card .card-title {
    color: var(--text-light);
    font-weight: 700;
}
/*
.card .card-text, .card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}*/

.card .card-text, .card p {
    font-family: var(--font-body);

    /* 1. Use the lighter text for better contrast and readability */
    color: var(--text-light);

    /* 2. Set a standard, readable font size for card content */
    font-size: 1rem;

    /* 3. Ensure a regular font weight for legibility */
    font-weight: 400;

    /* You can also define a line-height here if needed, e.g., 1.6 */
    line-height: 1.6;
}

/* --- Icon Lists --- */
?*
.list-style-icon {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}
.list-style-icon li {
    font-family: var(--font-body);

    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 1.8em;
    position: relative;
}
.list-style-icon li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.1em;
}
*/
.list-style-icon li {
    /* 1. Use the lighter text color for better contrast */
    color: var(--text-light);

    /* 2. Set a consistent font size and weight */
    font-size: 1rem;
    font-weight: 400;

    /* 3. Add line-height for better spacing on multi-line items */
    line-height: 1.6;

    /* Your existing properties for spacing and positioning are great */
    margin-bottom: 10px;
    padding-left: 1.8em;
    position: relative;
}

/* This rule is already perfect - no changes needed! */
.list-style-icon li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

/* 3. Page-Specific Sections
------------------------------------------------*/

/* --- Navbar --- */
.navbar {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color-translucent);
}
.navbar-brand h1 {
    color: #fff;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.75rem;
    transition: text-shadow 0.4s ease;
    text-shadow: 
        0 0 4px #fff,
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color-glow);
}
.navbar-brand h1:hover {
    text-shadow: 
        0 0 6px #fff,
        0 0 18px var(--primary-color),
        0 0 35px var(--primary-color);
}
.nav-link {
    color: var(--text-light);
    font-family: var(--font-heading);
}
.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}
/*
.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}
*/

/* --- Navbar Enhancements (Dropdown Menu) --- */

/* Base style for the dropdown menu */
.navbar .dropdown-menu {
    background-color: var(--bg-card); /* Use card background for consistent look */
    border: 1px solid var(--primary-color-translucent); /* Subtle border */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Deeper shadow for "floating" effect */
    backdrop-filter: blur(8px); /* Slightly stronger blur for depth */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    border-radius: 8px; /* Slightly rounded corners */
    overflow: hidden; /* Ensures rounded corners apply to content */
    padding: 0.5rem 0; /* Adjust vertical padding */
}

/* Style for individual dropdown items */
.navbar .dropdown-item {
    color: var(--text-light); /* Default text color */
    padding: 0.75rem 1.5rem; /* More generous padding */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
    font-family: var(--font-heading);
    font-weight: 400; /* Standard weight */
}

/* Hover/Focus state for dropdown items */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    /* background-color: var(--primary-color); */ /* Teal background on hover */
    /* background-color: #ffffff;
    color: var(--bg-dark); */ /* Dark text on hover */
    transform: scale(1.175);
}

/* Style for the dropdown-toggle to ensure it looks consistent with nav-links */
.navbar .nav-link.dropdown-toggle {
    color: var(--text-light); /* Ensures default color is light */
    transition: color 0.3s ease; /* Smooth color transition */
}

.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.dropdown-toggle.show { /* .show class is added by Bootstrap when dropdown is open */
    /* color: var(--primary-color); */ /* Teal color when hovered or open */
    color: var(--primary-color); /* Teal color when hovered or open */
}

/* Optional: Adjust position for better visual alignment if needed */
/* .navbar .dropdown-menu {
    margin-top: 10px;
} */

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo {
    max-width: 400px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px var(--primary-color-glow);
    animation: pulse-logo 2.5s infinite alternate ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--primary-color-glow);
        opacity: 1; /* Ensure full opacity at start */
    }
    50% {
        transform: scale(1.04); /* Slightly zoom in */
        box-shadow: 0 0 60px 15px var(--primary-color-glow), /* Larger, more spread out primary glow */
                    0 0 100px 5px rgba(0, 167, 157, 0.2); /* Add a secondary, softer, larger glow */
        opacity: 0.95; /* Subtle fade to enhance pulse */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--primary-color-glow);
        opacity: 1; /* Return to full opacity */
    }
}

/* --- ZFS Details Section --- */
/*
#zfs-details {
    position: relative;
}
#zfs-details::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -15%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-color-translucent) 0%, transparent 70%);
    z-index: 0;
}
*/

#zfs-details {
    position: relative;
    /*
      This stacks a semi-transparent dark gradient ON TOP of the image url.
      This darkens the image, ensuring the light-colored text is always easy to read.
      The background-attachment: fixed; creates the parallax "solid cover" effect.
    */
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.92), rgba(10, 25, 47, 0.92)), 
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726a?q=80&w=2560&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#zfs-details .container {
    position: relative;
    z-index: 1;
}
.zfs-section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color-translucent);
    padding-bottom: 1rem;
}
.zfs-section-heading svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
    flex-shrink: 0;
}
.zfs-number-box {
    background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
    border: 1px solid var(--primary-color-translucent);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem auto;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    word-wrap: break-word;
}
.zfs-number-box strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}
.final-cta-block {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-light));
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
}
.final-cta-block h3 {
    color: var(--bg-dark);
    font-weight: 700;
}
.final-cta-block .lead {
    color: var(--bg-dark);
    opacity: 0.9;
}
.final-cta-block .btn-primary {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}
.final-cta-block .btn-primary:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* --- Why Us Section --- */
.feature-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.card:hover .feature-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* --- Contact & Footer --- */
#contact .form-control {
    background-color: var(--bg-card);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    padding: 12px;
}
#contact .form-control::placeholder {
    color: var(--text-muted);
}
#contact .form-control:focus {
    background-color: var(--bg-light);
    border-color: var(--primary-color-light);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem var(--primary-color-translucent);
}
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--primary-color-translucent);
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 0.5rem;
}
footer .social-icon {
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}
footer .social-icon:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}


.glow {
    color: #fff;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.75rem;
    transition: text-shadow 0.4s ease;
    text-shadow: 
        0 0 4px #fff,
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color-glow);
}





/* 1. Ensure input fields have no background color from this CSS */
.form-control {
    background-color: transparent !important; /* Forces no background color */
    border: none; /* Removes default browser borders */
    border-bottom: 1px solid #ccc; /* Adds a subtle default bottom line */
    border-radius: 0; /* Ensures sharp corners */
    box-shadow: none; /* Removes any default shadows */
    padding-left: 0; /* Aligns text with the label */
}

/* Ensure the textarea has the same styling */
.form-control.textarea {
    resize: none; /* Optional: prevents user from resizing the textarea */
}

/* 2. Set the parent container to be a reference for positioning */
.form-group {
    position: relative;
    /* Increased bottom margin to give space for the floated label */
    margin-bottom: 2rem; 
}

/* 3. Style the label's initial state (acting as a placeholder) */
.form-group label {
    position: absolute;
    /* Positioning to vertically center with the input's text */
    top: 10px; 
    left: 10px;
    
    /* Appearance */
    color: #999;
    
    /* Functionality & Animation */
    pointer-events: none; /* Let clicks pass through to the input */
    transition: all 0.2s ease-in-out;
}

/* 4. FINAL CORRECTED RULE: Uses :not(:placeholder-shown) for universal text detection. */
/* The label now floats up and STAYS there on focus OR if ANY text is present. */
.form-group .form-control:focus + label,
.form-group .form-control:not(:placeholder-shown) + label {
    top: -24px; /* Move the label up, outside the input area */
    font-size: 0.8rem; /* Shrink the label text */
    color: #337ab7; /* Change the label color */
}

/* 5. Style for the animated bottom border effect */
.form-control-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #337ab7; /* Active border color */
    
    /* Initially hidden by being scaled to zero width */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* 6. Animate the border to grow from the center when the input is focused */
.form-control:focus ~ .form-control-border {
    transform: scaleX(1); /* Animate to full width on focus */
}

