/**
 * Manidhari Metals - Main Stylesheet
 * This file contains essential custom styles for the static site
 */

:root {
  --primary-blue: #084c7e;
  --primary-light: #3a7caf;
  --primary-dark: #053a61;
  --accent-orange: #f8a145;
  --accent-light: #ffc880;
  --accent-dark: #d87e1d;
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
}

/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}

.section-underline {
  height: 4px;
  width: 60px;
  background-color: var(--accent-orange);
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(248, 161, 69, 0.15);
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

/* Footer Styles */
.footer {
  padding-top: 5rem;
  background-color: #1a1a1a;
}

.footer-logo {
  max-height: 60px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  position: relative;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

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

.footer-links {
  list-style: none;
  padding-left: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover, .footer-links a:focus {
  color: var(--accent-orange);
  text-decoration: none;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

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

.social-icons a:hover, .social-icons a:focus {
  background-color: var(--accent-orange);
  transform: translateY(-3px);
}

/* WhatsApp specific styling */
.social-icons a[aria-label="WhatsApp"] {
  background-color: rgba(37, 211, 102, 0.2);
}

.social-icons a[aria-label="WhatsApp"]:hover {
  background-color: #25d366;
}

/* Download brochure button */
.footer .btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer .btn-outline-light:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

/* WhatsApp contact button in footer */
.footer .btn-success {
  background-color: #25d366;
  border-color: #25d366;
  border-radius: 30px;
  padding: 8px 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer .btn-success:hover {
  background-color: #22c25f;
  border-color: #22c25f;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Contact links in footer */
.contact-links li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-links i {
  margin-right: 10px;
  color: var(--accent-orange);
}

.contact-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--accent-orange);
  padding-left: 0; /* Override the general footer links hover */
}

/* Footer bottom styles */
.footer-bottom {
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-bottom a:hover {
  color: white;
  text-decoration: underline;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

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

/* Card styles */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-title {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-underline {
    width: 50px;
  }
  
  .footer {
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  .btn {
    padding: 0.5rem 1.2rem;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .footer-heading {
    margin-bottom: 1.2rem;
  }
}

/* Navbar collapse styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .nav-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 0.5rem 1rem !important;
  }
}

/* About Page - Animation Classes */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos="fade-up-right"] {
    transform: translate(-30px, 30px);
}

[data-aos="fade-up-left"] {
    transform: translate(30px, 30px);
}

[data-aos="fade-down-right"] {
    transform: translate(-30px, -30px);
}

[data-aos="fade-down-left"] {
    transform: translate(30px, -30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* About Page - Value Cards */
.value-card {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(8, 76, 126, 0.1);
    margin-bottom: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
}

.value-icon:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(8, 76, 126, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon:after {
    opacity: 1;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

.value-card h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue, #084c7e);
    font-size: 1.25rem;
}

.value-icon i {
    font-size: 1.8rem;
    color: #084c7e;
}

/* About Page - Timeline */
.modern-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.modern-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #084c7e, #3d6ca9, #084c7e);
    box-shadow: 0 0 15px rgba(8, 76, 126, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #084c7e, #3d6ca9);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.timeline-year::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px dashed rgba(8, 76, 126, 0.3);
    animation: spin 30s linear infinite;
}

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

.timeline-item:hover .timeline-year {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.3);
}

.timeline-year span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    width: 45%;
    padding: 0 30px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

.timeline-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #f8f9fa transparent transparent;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-card {
    border-right-color: #084c7e;
}

.timeline-item:nth-child(even) .timeline-card {
    border-left-color: #084c7e;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.timeline-card:hover::after {
    border-color: transparent var(--accent-orange, #f8a145) transparent transparent;
}

.timeline-card h4 {
    color: #084c7e;
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.timeline-card h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange, #f8a145);
    transition: all 0.3s ease;
}

.timeline-card:hover h4::after {
    width: 100%;
}

/* About Page - Heritage Hero */
.heritage-hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
    padding-top: 90px;
}

.heritage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.heritage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 75, 140, 0.95) 0%, rgba(26, 75, 140, 0.8) 50%, rgba(26, 75, 140, 0.6) 100%);
    z-index: 1;
}

.luxury-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 2;
    opacity: 0.5;
}

.heritage-hero .container {
    z-index: 3;
    position: relative;
    height: 100%;
}

.heritage-hero-content {
    color: #fff;
    padding: 2rem 0;
    margin-top: 6rem;
    padding-bottom: 5rem;
    text-align: center;
}

.heritage-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.heritage-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
}

/* Expertise badges */
.expertise-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.expertise-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    min-width: 120px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 2px rgba(255, 255, 255, 0.5);
}

.expertise-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: var(--accent-orange, #f8a145);
}

.expertise-badge i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-orange, #f8a145);
}

.expertise-badge span {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

/* Certification cards */
.certification-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* General section styles */
.section-badge {
    display: inline-block;
    background-color: rgba(8, 76, 126, 0.1);
    color: #084c7e;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #084c7e, #f8a145);
    margin: 1.25rem auto 0;
}

/* Responsive adjustments for timeline */
@media screen and (max-width: 768px) {
    .modern-timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
    }
    
    .timeline-year {
        left: 30px;
        width: 60px;
        height: 60px;
    }
    
    .timeline-year::before {
        width: 70px;
        height: 70px;
    }
    
    .timeline-item:hover .timeline-year {
        transform: scale(1.1);
    }
    
    .timeline-year span {
        font-size: 0.9rem;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        text-align: left !important;
        padding: 0 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 90px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        border-left-color: #084c7e;
        border-right-color: transparent;
    }
}

/* Luxury divider */
.luxury-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    width: 60%;
    margin: 0 auto 2rem auto;
}

.luxury-diamond {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-orange, #f8a145);
    transform: rotate(45deg);
    top: -8px;
    left: 50%;
    margin-left: -8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Journey section background */
.journey-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.journey-section::before,
.journey-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(8, 76, 126, 0.05);
    z-index: 0;
}

.journey-section::before {
    top: -100px;
    left: -100px;
}

.journey-section::after {
    bottom: -100px;
    right: -100px;
}

/* Timeline item decoration */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(8, 76, 126, 0.3), transparent);
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Enhanced values and mission wrapper styles */
.mission-wrapper, .values-wrapper {
    transition: all 0.3s ease;
    border-top: 4px solid #084c7e;
}

.mission-wrapper:hover, .values-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Media queries for mobile */
@media (max-width: 768px) {
    .heritage-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .expertise-badges {
        gap: 0.5rem;
    }
    
    .expertise-badge {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .timeline-item::before {
        width: 50px;
        left: 30px;
        transform: none;
    }
}
