/* 
* Spectrum Media - Main Stylesheet
* Author: Spectrum Media Dev Team
* Version: 1.0
*/

/* ===== BASE STYLES ===== */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4056f4;
    --secondary-color: #6c757d;
    --accent-color: #3feeb7;
    --dark-color: #252839;
    --light-color: #f8f9fa;
    --text-color: #444;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Raleway', sans-serif;
    
    --transition-speed: 0.3s;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 1.1rem;
}

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

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

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--heading-font);
}

.logo span {
    color: var(--white);
    transition: color var(--transition-speed) ease;
}

header.scrolled .logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

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

header.scrolled .nav-links a {
    color: var(--dark-color);
}

header.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -5px;
    transition: width var(--transition-speed) ease;
}

header.scrolled .nav-links a:after {
    background: var(--primary-color);
}

.nav-links a:hover:after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: var(--heading-font);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #304ffe 100%);
    color: var(--white);
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white);
}

.separator {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.about-stat {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--gray-100);
    transition: all var(--transition-speed) ease;
}

.about-stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.about-stat p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 70px;
    width: 70px;
    line-height: 70px;
    background-color: rgba(64, 86, 244, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== WORKFLOW SECTION ===== */
.workflow {
    background-color: var(--white);
}

.workflow-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.workflow-content {
    flex: 1;
}

.workflow-image {
    flex: 1;
}

.workflow-image img {
    width: 100%;
    max-width: 550px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.workflow-step {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

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

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: var(--primary-color);
    opacity: 0.3;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-content p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    padding-left: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgba(64, 86, 244, 0.05);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #304ffe 100%);
    color: var(--white);
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png');
    opacity: 0.05;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4rem;
}

.contact-text {
    flex: 1;
}

.contact-text h2 {
    color: var(--white);
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-right: 1rem;
    width: 24px;
}

.contact-item a,
.contact-item span {
    color: var(--white);
}

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

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

textarea {
    height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 86, 244, 0.2);
}

/* Form validation styles */
input.error,
textarea.error {
    border-color: #ff3860;
}

.form-success {
    background-color: #23d160;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-align: center;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--dark-color);
    color: var(--gray-400);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--heading-font);
}

.footer-col p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-row {
        flex-direction: column;
    }
    
    .workflow-image {
        order: -1;
        margin-bottom: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        color: var(--dark-color);
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        width: 100%;
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}