/*
* LRC Creative - Main Stylesheet
* Author: Llewellyn Reinecke
* Website: www.lrcreative.co.za
*/

/* ===== GLOBAL STYLES ===== */
:root {
    /* Color scheme */
    --primary-color: #1e1e1e;
    --secondary-color: #d4af37; /* Gold accent */
    --background-color: #0a0a0a;
    --text-color: #f5f5f5;
    --text-secondary: #a8a8a8;
    --accent-color: #3a3a3a;
    --card-color: #141414;
    --border-color: #2c2c2c;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacings */
    --section-spacing: 100px;
    --container-padding: 40px;
    --element-spacing: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.secondary-btn:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

.outline-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.outline-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.logo-container {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo-preload {
    max-width: 100%;
    opacity: 0;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.nav-logo {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-item.active .nav-link {
    color: var(--secondary-color);
}

.contact-btn {
    padding: 8px 20px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.contact-btn:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
    outline: 2px solid var(--secondary-color);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.title {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.subtitle {
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.7s;
    white-space: nowrap; /* For desktop */
}

@media (max-width: 768px) {
    .subtitle {
        white-space: normal; /* Allow wrapping on mobile */
    }
}

.hero-text {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.1s;
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.services-cta {
    text-align: center;
}

/* ===== FEATURED PROJECTS ===== */
.featured-projects {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-color);
}

.projects-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-slide {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-color);
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-control:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-spacing) 0;
    background-color: var(--background-color);
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-content {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--secondary-color);
}

.testimonial-author h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-secondary);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/images/contact-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.contact-cta h2 {
    margin-bottom: 15px;
}

.contact-cta p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 50px;
    margin-right: 15px;
}

.footer-tagline h3 {
    margin-bottom: 5px;
}

.footer-tagline p {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-nav,
.footer-services,
.footer-contact {
    margin-bottom: 30px;
}

.footer-links h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social h4 {
    margin-bottom: 20px;
    position: relative;
}

.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    height: 300px;
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* To account for fixed nav */
}

.page-header h1 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Map section */
.map-section {
    padding: 0 0 var(--section-spacing);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Additional styles for social links in contact page */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Ripple effect for buttons */
.ripple-effect {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Contact form responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text h2 {
    margin-bottom: 25px;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.skills-section {
    margin-bottom: 60px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    left: 50px;
}

.timeline-item {
    padding: 10px 0 10px 100px;
    position: relative;
    margin-bottom: 30px;
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 80px;
    text-align: right;
    color: var(--secondary-color);
    font-weight: 600;
}

.timeline-content {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* ===== PORTFOLIO PAGE STYLES ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    position: relative;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    margin-bottom: 5px;
}

.overlay-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.view-project-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    outline: 1px solid var(--secondary-color);
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--primary-color);
    border-radius: 8px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

.modal-body {
    padding: 40px;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modal-images img {
    width: 100%;
    border-radius: 4px;
}

.modal-info h2 {
    margin-bottom: 10px;
}

.project-category {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.project-details h3 {
    margin: 20px 0 10px;
}

.project-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.project-details ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.project-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ===== SERVICES PAGE STYLES ===== */
.services-intro {
    text-align: center;
    padding: 50px 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.service-block.active {
    opacity: 1;
    transform: translateY(0);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.service-details h2 {
    margin-bottom: 20px;
    position: relative;
}

.service-details h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-details p {
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 12px;
    display: flex;
}

.service-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.process-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}

.process-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: var(--border-color);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.process-step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    flex-shrink: 0;
}

.step-content {
    padding-left: 30px;
    padding-top: 10px;
}

.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--card-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    background-color: var(--card-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* ===== DARK/LIGHT MODE SPECIFIC ADJUSTMENTS ===== */
/* Light mode adjustments */
:root.light-mode {
    --card-color: #f8f9fa;
}

:root.light-mode .portfolio-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .timeline-content::before,
:root.light-mode .step-number {
    background-color: var(--secondary-color);
}

/* Dark mode adjustments */
:root

/* Additional responsive fixes */
@media (max-width: 576px) {
    /* Typography adjustments */
    .subtitle {
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    /* Fix for contact form */
    .contact-container {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    /* Fix for services blocks */
    .service-block {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    /* Adjust FAQs */
    .faq-question h3 {
        font-size: 1rem;
    }
}