/* Base styles */
:root {
    --primary-color: #0a2342; /* Deep navy blue (main background) */
    --primary-dark: #061631; /* Darker navy for hover states */
    --secondary-color: #d4af37; /* Rich gold color (from logo) */
    --secondary-light: #f2d675; /* Lighter gold for hover effects */
    --accent-color: #c8964e; /* Warm amber for accents */
    --text-color: #333; /* Dark gray for main text */
    --light-text: #717171; /* Medium gray for secondary text */
    --bg-color: #fff; /* White background */
    --light-bg: #f9f9f9; /* Light gray background for sections */
    --alternate-bg: #edf2f7; /* Soft blue-gray for alternating sections */
    --border-color: #e0e0e0; /* Light gray for borders */
    --border-radius: 5px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-image {
    height: 50px;
    max-width: 100%;
}

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

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
}

.desktop-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bg-color);
}

.mobile-logo {
    margin-bottom: 30px;
    text-align: center;
}

.mobile-logo-image {
    height: 40px;
    max-width: 100%;
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav ul li {
    margin-bottom: 20px;
}

.mobile-menu nav ul li a {
    color: var(--bg-color);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--bg-color);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--bg-color);
}

/* Feature Highlight Section */
.feature-highlight {
  padding: 60px 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.feature-highlight::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(10, 35, 66, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.feature-highlight::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.highlight-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.highlight-content h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.highlight-content h3 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.highlight-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.highlight-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.highlight-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
}

.highlight-btn.secondary {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

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

.highlight-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Solutions Section */
.solutions {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.solutions h2, .process h2, .case-studies h2, .testimonials h2, .contact h2, .tools h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.solution-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.6s ease;
    border-bottom: 3px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--secondary-color);
}

.solution-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.solution-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Process Section */
.process {
    padding: 80px 0;
    background-color: var(--alternate-bg);
}

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

.process-step {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, opacity 0.6s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.step-number {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: var(--primary-color);
}

/* Case Studies Section */
.case-studies {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.6s ease;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-study.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.case-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.case-summary {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 500;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.case-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Tools Section */
.tools {
    padding: 80px 0;
    background-color: var(--alternate-bg);
}

.tools-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

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

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tool-card p {
    margin-bottom: 25px;
    color: var(--text-color);
}

.tool-metrics {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--light-text);
}

.tool-btn {
    width: 80%;
    margin: 0 auto;
    padding: 12px 20px;
}

.tool-preview {
    position: relative;
    margin: 15px 0 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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

.preview-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 8px 20px;
    background-color: var(--primary-color);
    border-radius: 20px;
}

.tool-preview:hover .preview-image {
    transform: scale(1.05);
}

.tool-preview:hover .preview-overlay {
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s ease, opacity 0.6s ease;
    position: relative;
    border-left: 4px solid var(--secondary-color);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.quote::before {
    content: '\"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: rgba(212, 175, 55, 0.2);
}

.author {
    font-weight: 600;
    color: var(--light-text);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--alternate-bg);
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method h4 {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea {
    resize: vertical;
}

.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success i {
    font-size: 3rem;
    color: #48c774;
    margin-bottom: 20px;
}

.form-success h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
}

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

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

.footer-logo-image {
    height: 40px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary-light);
    margin-left: 20px;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 300;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.modal p {
    margin-bottom: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: bottom 0.3s ease, background-color 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    bottom: 30px;
}

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

/* Animation Classes */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    .highlight-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .highlight-buttons {
        justify-content: center;
    }
    
    .highlight-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .case-study {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .tool-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .solutions h2, .process h2, .case-studies h2, .testimonials h2, .contact h2, .tools h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .highlight-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .highlight-content h3 {
        font-size: 1.8rem;
    }
}