/* Custom CSS for P2M International */

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

body {
    font-family: "Monteserrat";
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation Styles */

.navbar {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: #DAA520 !important;
}


/* Logo Styles */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #DAA520;
}

.footer-logo {
    height: 35px;
    width: auto;
    max-width: 120px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DAA520;
}

.footer-brand {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    margin-top: 76px;
}

.hero-slide {
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(26, 26, 26, 0.7));
    display: flex;
    align-items: center;
}

.hero-content h1 {
    animation: slideInUp 1s ease-out;
}

.hero-content p {
    animation: slideInUp 1s ease-out 0.3s both;
}

.hero-content .btn {
    animation: slideInUp 1s ease-out 0.6s both;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #DAA520, #FFD700);
    border-radius: 2px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

.gallery-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #000; /* black text for captions */
}

/* Section headings for gallery */
.gallery-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #DAA520; /* gold */
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
}

.gallery-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #DAA520, #FFD700);
  border-radius: 2px;
}
/* Rotate the video into landscape */
.landscape-video {
    transform: rotate(90deg);  /* Rotate the video by 90 degrees */
    transform-origin: center center;  /* Ensure rotation happens around the center */
    width: 100%;  /* Ensure it fits its container */
    height: auto; /* Let the height adjust accordingly */
}

/* Adjust gallery item to prevent clipping after rotation */
#videos .gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Ensures it fits within the container */
}

/* Optional: Ensure the caption stays at the bottom of the video */
#videos .gallery-item .caption {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    background-color: #f8f8f8;
    width: 100%;
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Shipping Cards */
.shipping-card .card {
    transition: all 0.3s ease;
    border: none;
}

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

.shipping-card .card-img-top {
    transition: transform 0.3s ease;
}

.shipping-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

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

.feature-item h5 {
    color: #000000;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

/* Service Cards */
.service-card .card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #DAA520;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #DAA520;
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

.form-label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

.contact-info h5 {
    color: #000000;
    font-weight: 600;
    margin: 1rem 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(218, 165, 32, 0.3);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c, #2d3748) !important;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #DAA520 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
}

/* Additional Brand Color Updates */
.text-primary {
    color: #000000 !important;
}

.text-warning {
    color: #DAA520 !important;
}

.bg-primary {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
}

/* Card title colors */
.card-title.text-primary {
    color: #000000 !important;
}

.card-title.text-success {
    color: #DAA520 !important;
}

/* Icon colors */
.text-warning {
    color: #DAA520 !important;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        max-width: 120px;
    }
    
    .footer-logo {
        height: 30px;
        max-width: 100px;
    }
    
    .logo-text, .footer-logo-text {
        font-size: 1.1rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================
   Gallery Section Styles
   ========================== */

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

.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  color: #000; /* keeps text aligned with your brand */
}
