/* * Slaymay Landing Page Stylesheet
 * Based on the new visual design (Gemini_Generated_Image_plh7ltplh7ltplh7.jpg)
 * ENHANCED with new section backgrounds
 */

:root {
    --color-charcoal: #0D0D0D;
    --color-charcoal-light: #1a1a1a; /* Lighter charcoal for bg */
    --color-terracotta: #C26A2E;
    --color-sand: #F5F2ED;
    --color-blue: #00BFFF; /* Bright blue accent */
    --color-text: rgba(245, 242, 237, 0.85);
    --color-text-darker: rgba(245, 242, 237, 0.6);
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Orbitron', 'Manrope', sans-serif; /* For logo/titles */
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-charcoal);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- New Container Class --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative; /* For z-index stacking */
    z-index: 2;
}


/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Simulating the network with gradients */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(194, 106, 46, 0.1), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.1), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 25%);
    background-size: 100% 100%;
    z-index: -1;
    opacity: 0.5;
}

/* --- Page Section Base --- */
.page-section {
    padding: 6rem 0; /* Increased padding */
    text-align: center;
    position: relative;
    overflow: hidden; /* To contain background elements */
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

/* --- Hero Section (No change) --- */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: var(--color-terracotta);
    letter-spacing: 4px;
    margin-bottom: 3rem;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-sand);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-darker);
    margin-bottom: 2rem;
}

.cta-button {
    font-family: var(--font-display);
    background-color: transparent;
    color: var(--color-terracotta);
    border: 2px solid var(--color-terracotta);
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-terracotta);
    color: var(--color-charcoal);
    box-shadow: 0 0 20px rgba(194, 106, 46, 0.4);
}

/* --- Quote Section (New Background) --- */
.quote-section {
    background-color: var(--color-charcoal-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-section blockquote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-sand);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    border-left: 4px solid var(--color-terracotta);
    padding-left: 2rem;
    text-align: left;
}

/* --- Services Section (New Animated AI Background) --- */
.services-section {
    background-color: var(--color-charcoal);
    /* Animated Grid Background */
    background-image: 
        linear-gradient(rgba(0, 191, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    animation: grid-pan 60s linear infinite;
    z-index: 0;
}

@keyframes grid-pan {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 1200px; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.service-item {
    text-align: center;
    z-index: 2; /* To appear above the grid */
}

.hex-icon-container {
    /* --accent-color is set in HTML */
    color: var(--accent-color);
    width: 140px;
    height: 160px; /* height = width * 1.1547 */
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* Updated Background for more pop */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}
.hex-icon-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* Updated shadow */
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.7) inset;
    transition: all 0.3s ease;
}
.service-item:hover .hex-icon-container {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}
.service-item:hover .hex-icon-container::before {
    box-shadow: 0 0 40px var(--accent-color), 0 0 35px rgba(0, 0, 0, 0.7) inset;
}

.service-icon {
    width: 60px;
    height: 60px;
    color: currentColor;
    transition: all 0.3s ease;
}
.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-sand);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--color-text-darker);
    max-width: 250px;
    margin: 0 auto;
}


/* --- CTA Section (New Background) --- */
.cta-section {
    background-color: var(--color-charcoal-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Radial gradient glow */
    background-image: radial-gradient(circle at 50% 100%, rgba(194, 106, 46, 0.15), transparent 40%);
}

.email-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex-grow: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-terracotta);
    border-radius: 50px;
    color: var(--color-sand);
    outline: none;
    transition: all 0.3s ease;
}
.email-form input[type="email"]::placeholder {
    color: var(--color-text-darker);
}
.email-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(194, 106, 46, 0.3);
}

.email-form .cta-button {
    flex-shrink: 0;
}


/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 3rem 0; /* Use container padding now */
    background-color: #080808; /* Slightly darker charcoal */
    color: rgba(245, 242, 237, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    margin-bottom: 1rem;
}

.site-footer nav a {
    color: rgba(245, 242, 237, 0.6);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.site-footer nav a:hover {
    color: var(--color-terracotta);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero {
        min-height: 60vh;
    }
    .quote-section blockquote {
        font-size: 1.25rem;
    }
    .email-form {
        flex-direction: column;
        align-items: center;
        max-width: 350px;
    }
    .email-form input[type="email"],
    .email-form .cta-button {
        width: 100%;
    }
}

.logo {
    max-width: 50vw;
    min-width: 7vw;
    height: auto;
}

/* --- Add this to the bottom of assets/style.css --- */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- FIND AND REPLACE THIS (OLD CODE) --- */

.service-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-out;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* --- REPLACE WITH THIS (NEW CODE) --- */

.service-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-out; /* Keeps the smooth scaling */
}

.service-item:hover .service-icon {
    transform: scale(1.1); /* Keeps the scale effect */
    animation: spin 2s linear infinite; /* Adds the continuous spin */
}