
:root {
    --primary-color: #2c3e50; /* Dark blue-grey */
    --secondary-color: #3498db; /* Blue */
    --accent-color: #e74c3c; /* Red */
    --background-color:     #ecf0f1; /* Light grey */
    --text-color: #2c3e50;
    --card-background: #ffffff;
    --border-radius: 8px;
}

/* Defy Uncertainty. Spot Strength. Seize Opportunity. */

body {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ecf0f1;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    background-color: var(--card-background);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    position: sticky; /* This is the key property */
    top: 0;           /* This tells the element to stick to the top edge */
    z-index: 1000;    /* Ensures the header is on top of other content */
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto; /* Remove auto margin */
    padding: 0 1rem; /* Adjust padding to control left space */
}

nav h1 {
    margin: 0;
}

nav h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevents wrapping of the links */
}

.nav-links a, .nav-links button {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 1.5rem;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links button:hover {
    color: var(--secondary-color);
}

.cta-button {
    /* Centering and Sizing */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    
    /* Gradient Background */
    background: linear-gradient(45deg, var(--secondary-color), #29b6f6);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite alternate;

    /* Effects Setup */
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    
    /* New: Animated Glowing Borders */
    box-shadow: 0 0 15px 0 #00ffff, 0 0 15px 0 #ff00ff; /* Initial state */
    animation: gradient-shift 4s ease-in-out infinite alternate, glow-swap 3s linear infinite;

    /* Other Styles */
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

/* The Pseudo-element for the Shimmer */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: none;
    animation: shimmer-effect 1.5s infinite;
}

@keyframes gradient-shift {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

@keyframes shimmer-effect {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%);
    }
}

/* New: Keyframes for the Swapping Glow Borders */
@keyframes glow-swap {
    0% {
        box-shadow: -15px 0 25px #00ffff, 15px 0 25px #ff00ff;
    }
    50% {
        box-shadow: 15px 0 25px #00ffff, -15px 0 25px #ff00ff;
    }
    100% {
        box-shadow: -15px 0 25px #00ffff, 15px 0 25px #ff00ff;
    }
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 1200px; /* Standard content width */
    margin: 0 auto; /* Center the main content */
    padding: 2rem 1rem;
}

/* --- General Flexbox for Content Pages --- */
main:not(.auth-main):not(.account-main) {
    display: flex;
    flex-direction: column;
}


/* --- Vertical Centering for Auth/Account Pages --- */
main.auth-main,
main.account-main {
    display: flex;
    justify-content: center; /* Center content vertically */
    align-items: center;
}


section {
    background-color: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    margin-bottom: 1rem;
    color: var(--secondary-color); /* If SVG allows currentColor */
}



/* Ensure H1 content itself is left-aligned within its container if it gets extra space */
.logo-container h1 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensure items inside h1 are left-aligned */
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0; /* Remove default h1 margin that might push things */
}

.logo-icon {
    width: 32px; /* Adjust size of your logo icon */
    height: 32px;
    margin-right: 5px; /* Reduced from 10px */
}
/* Hero Section: Two-Column Layout */
.hero-section {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    padding: 0;
    background-color: var(--card-background);
    width: 100%;
    position: relative;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    color: #fff;
    text-align: left;
}

 

.hero-content h2 {
    color: white;
    text-shadow: none;   
    font-size: 2.5rem;
    margin-bottom: 0;
}


.hero-content p {
    color: white;
    text-shadow: none;   
    text-align: left;
    font-size: 1.5rem;
    margin-top: 0;
}

 

@keyframes fire-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Styling for the new feature rows */
.feature-row {
    display: flex; /* Ensures image and text are in a row */
    flex-direction: row; /* Default: image on the left, text on the right */
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}


.features-section {
    width: 100%;
}

.features-section h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    overflow: hidden; /* Ensures the text doesn't wrap before it's "typed" */
    white-space: nowrap; /* Keeps the text on a single line */
}

.features-section h3::after {
    content: '|'; /* The cursor character */
    animation: blink 0.75s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: var(--primary-color);
    }
}

.feature-image,
.feature-content {
    flex: 1; /* Both image and text containers take up equal space */
}

.feature-row:nth-child(1) .feature-image {
    flex: 0.6; /* The image takes up less space (e.g., 80% of the normal flex value) */
}

.feature-row:nth-child(1) .feature-content {
    flex: 1.4; /* The text takes up more space */
}

/* --- Adjusting the width of the second row (2nd child) --- */
.feature-row:nth-child(2) .feature-image {
    flex: 0.5; /* The image takes up more space */
}

.feature-row:nth-child(2) .feature-content {
    flex: 1.5; /* The text takes up less space */
}


.feature-row:nth-child(3) .feature-image {
    flex: 0.5; /* The image takes up more space */
}

.feature-row:nth-child(3) .feature-content {
    flex: 1.5; /* The text takes up less space */
}


/* Alternate the order of every second row */
.feature-row:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Image styling and animation on hover */
.feature-image {
    flex: 1;
    display: flex; /* Added to use Flexbox for centering */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    padding: 1rem;
    background-color: transparent;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid #ccc; /* Border around the image and its padding */
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease-in-out;
}

.feature-image:hover img {
    transform: scale(1.2); /* **HOVER ZOOM EFFECT** - Zooms in 10% on hover */
}

 
/* Text section styling */
.feature-content {
    flex: 1;
    padding: 1rem;
}

.feature-content h4 {
    position: relative; /* Needed for pseudo-element positioning */
    padding-left: 45px; /* Space for the icon */
    margin-top: 0;
    font-size: 2.8rem; /* Increased font size for the heading */
    color: var(--primary-color);
}

.feature-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    background-image: url('../assets/dial_small.png');
    background-size: contain;
    background-repeat: no-repeat;
}


.feature-content p {
    margin-bottom: 0;
    font-size: 1.5rem; /* Increased font size for the paragraphs */
}



/* Blog Preview */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.2s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-card h4 {
    margin-top: 0;
}

.blog-post-card a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-left: 5px solid var(--secondary-color);
}

/* Blog List Page */
.blog-container {
    display: flex;
    flex-direction: column;
}

#blog-posts-list .blog-post-card {
    margin-bottom: 1rem;
}

/* Individual Post Page */
.post-container h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #222222; /* Changed from --secondary-color */
    color: white;
    margin-top: 1rem;
}

/* =================================== */
/* ==== Mobile Responsiveness (Max 768px) ==== */
/* =================================== */
.feature-row {
    display: flex;
    flex-direction: row; /* Default: image and text side-by-side */
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-image,
.feature-content {
    flex: 1; /* Both containers take up equal space by default */
}


@media (max-width: 768px) {
    /* ==== General Layout Adjustments ==== */
    body {
        font-size: 14px; /* Slightly smaller base font size */
    }

    /* ==== Hero Section Adjustments ==== */
    .hero-section {
        flex-direction: column; /* Stacks the image and content vertically */
        min-height: auto;
    }
    
    .hero-image-container,
    .hero-content {
        flex-basis: auto; /* Allows both sections to take up full width */
        width: 100%;
        padding: 2rem 1rem; /* Adjusts padding for smaller screens */
    }
    
    .hero-content h2 {
        font-size: 2.5rem; /* Drastically reduces font size for mobile */
        text-align: center; /* Centers the heading on mobile */
    }
    
    .hero-content p {
        font-size: 1.1rem; /* Reduces paragraph font size for readability */
        text-align: center; /* Centers the paragraph on mobile */
    }

    /* ==== Feature Section Adjustments ==== */
    .features-section h3 {
    text-align: center;
    font-size: 1.0rem; /* Reduced from 2.5rem */
    color: var(--primary-color);
    margin-bottom: 2rem;
    overflow: hidden;
    white-space: nowrap;
}

 

 .feature-row {
        flex-direction: column; /* Overrides the default and stacks the image and text */
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .feature-row:nth-child(odd),
    .feature-row:nth-child(even) {
        flex-direction: column; /* Ensures all rows are stacked and not reversed */
    }

    .feature-content h4 {
        font-size: 1.8rem;
        text-align: center;
        padding-left: 0; /* Remove padding for centered text */
    }

    .feature-content h4::before {
        display: none; /* Hide the icon on mobile */
    }

    .feature-content p {
        font-size: 1rem;
        text-align: center;
    }

    .feature-image {
        padding: 0;
    }
    
    .feature-image,
    .feature-content {
        flex: auto; /* Resets flex values to auto, making stacking work correctly */
    }
    
    /* ==== Navigation Adjustments ==== */
    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-links a, .nav-links button {
        margin: 0.5rem 0.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* ==== Team Page Adjustments ==== */
    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-photo {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    /* ==== Footer Adjustments ==== */
    footer {
        font-size: 0.8rem;
    }
}

/* Cart Page Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: var(--card-background);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cart-table th, .cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

#cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.remove-from-cart-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
}
/* Team Page specific styles */
.team-container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 2rem;
    object-fit: contain;
    border: 5px solid var(--secondary-color);
}

.team-member-info {
    flex: 1;
}

.team-member-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
}

.team-member-info p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.team-member-info ul {
    padding-left: 20px;
}

.team-member-info li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.team-together {
    text-align: left;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-.team-photo-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-together h3 {
    color: var(--primary-color);
    font-size: 2rem;
}

.login-prompt a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    width: 100%;
    min-height: 150px; /* Adjust as needed */
}

.testimonial-card {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-left: 5px solid var(--secondary-color);
}

.testimonial-card.active {
    opacity: 1;
    position: relative; /* Take up space in the document flow */
}