/* 
 * Automated Living Website Styles
 * Custom Integration Specialists
 */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #0F2C4C;
    --secondary-color: #2A4A6B;
    --accent-color: #D4AF37;
    --light-color: #F9F5EB;
    --dark-color: #1A1A1A;
    --gray-color: #7A8899;
    --light-gray: #EBE6DD;
    
    /* Typography */
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Montserrat', Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

.highlight {
    color: var(--accent-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(15, 44, 76, 0.98), rgba(15, 44, 76, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--light-color);
}

.logo img {
    height: 45px;
    margin-right: 0.5rem;
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo img:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(30deg);
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--light-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    position: relative;
    font-weight: 400;
    padding: 0.5rem 0;
    color: var(--light-color);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-links a.active {
    color: var(--accent-color);
}

/* Buttons */
.button, .cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.button::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover, .cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 44, 76, 0.2);
}

.button:hover::before, .cta-button:hover::before {
    left: 100%;
}

.cta-button {
    margin-left: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    background-image: 
        linear-gradient(135deg, rgba(15, 44, 76, 0.95), rgba(42, 74, 107, 0.85)),
        url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
    padding-bottom: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%);
    background-size: 150px 150px;
    opacity: 0.15;
    animation: subtleShift 30s linear infinite;
}

@keyframes subtleShift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 150px 150px;
    }
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
    color: var(--light-color);
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    margin-top: -1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .highlight {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.1em;
    right: -0.1em;
    height: 0.1em;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.rotating-text {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    min-height: 6rem;
    margin-top: -0.5rem;
    font-family: var(--heading-font);
    font-weight: 300;
    letter-spacing: 1px;
}

#rotating-services {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    padding: 0 0.2em;
    background: linear-gradient(120deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
}

#rotating-services::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

/* Hero section "Get Started" button enhancements */
.hero-content .cta-button {
    align-self: center;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-content .cta-button::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.hero-content .cta-button:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.hero-content .cta-button:hover::after {
    transform: translateX(4px);
}

.hero-content .cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Design Philosophy Section */
.design-philosophy {
    background: linear-gradient(135deg, var(--light-color), rgba(212, 175, 55, 0.05));
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.design-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.02) 75%);
    background-size: 150px 150px;
    opacity: 0.5;
    animation: subtleShift 30s linear infinite;
}

.design-philosophy .container {
    position: relative;
    z-index: 1;
}

.design-philosophy h2 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.design-philosophy .highlight {
    position: relative;
    display: inline-block;
}

.design-philosophy .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.1em;
    right: -0.1em;
    height: 0.1em;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.philosophy-content {
    max-width: 1200px;
    margin: 0;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.philosophy-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.philosophy-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--gray-color);
    line-height: 1.8;
}

.philosophy-text p:last-child {
    margin-bottom: 0;
}

.philosophy-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.philosophy-image::before {
    content: '';
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.philosophy-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(15, 44, 76, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.philosophy-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 44, 76, 0.15);
}

.philosophy-image:hover::before {
    transform: translate(5px, 5px);
}

/* Dark mode styles for philosophy section */
body.dark-mode .design-philosophy {
    background: linear-gradient(135deg, var(--primary-color), rgba(212, 175, 55, 0.05));
}

body.dark-mode .design-philosophy h2 {
    color: var(--light-color);
}

body.dark-mode .philosophy-text p {
    color: rgba(249, 245, 235, 0.8);
}

body.dark-mode .philosophy-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .philosophy-image:hover img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, rgba(212, 175, 55, 0.02) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.02) 75%);
    background-size: 150px 150px;
    opacity: 0.5;
    animation: subtleShift 30s linear infinite;
}

.about h2 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.benefit {
    padding: 3rem;
    border-radius: 2px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 44, 76, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 44, 76, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.benefit:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.benefit:hover .benefit-icon::before {
    left: 100%;
}

.benefit h3 {
    font-family: var(--heading-font);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 1.3;
}

.benefit p {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Dark mode styles for benefits */
body.dark-mode .about {
    background: var(--primary-color);
}

body.dark-mode .about h2 {
    color: var(--light-color);
}

body.dark-mode .benefit {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .benefit:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .benefit h3 {
    color: var(--light-color);
}

body.dark-mode .benefit p {
    color: rgba(249, 245, 235, 0.7);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%);
    background-size: 100px 100px;
    opacity: 0.1;
    animation: subtleShift 30s linear infinite;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    color: var(--light-color);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.contact p {
    color: rgba(249, 245, 235, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
}

.contact-buttons .button {
    min-width: 200px;
    text-align: center;
    padding: 1rem 2.5rem;
}

.contact-buttons .button.dark {
    background: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 500;
}

.contact-buttons .button.light {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

.contact-buttons .button.light:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.2),
        transparent
    );
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer-logo img:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(30deg);
}

.footer-info {
    font-size: 0.9rem;
    color: rgba(249, 245, 235, 0.7);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--light-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(249, 245, 235, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .design-philosophy h2,
    .about h2 {
        font-size: 2.5rem;
    }

    .philosophy-content {
        gap: 2rem;
    }

    .philosophy-text {
        padding-right: 0;
    }

    .philosophy-image::before {
        display: none;
    }

    .benefit {
        padding: 2rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .benefit h3 {
        font-size: 1.5rem;
    }

    header .container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .cta-button {
        margin-left: 0;
    }

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

    .contact-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--body-font);
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.accessibility-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5
