/* 
Peyrovan Twins - Custom CSS
Colors:
- Primary beige: #e6d8cc
- Dark beige: #c2b6a4
- Light beige: #f5f0eb
- Accent: #8c7b68
- Text dark: #4a3f35
- Text light: #ffffff
*/

/* Global Styles */
:root {
    --primary-beige: #e6d8cc;
    --dark-beige: #c2b6a4;
    --light-beige: #f5f0eb;
    --accent-beige: #8c7b68;
    --text-dark: #4a3f35;
    --text-light: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-beige);
    line-height: 1.6;
    padding-top: 80px; /* Reduced from previous value since no top social bar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--accent-beige);
}

a {
    color: var(--accent-beige);
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary {
    background-color: var(--accent-beige);
    border-color: var(--accent-beige);
    color: var(--text-light);
    transition: var(--transition);
}

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

.btn-outline-primary {
    border-color: var(--accent-beige);
    color: var(--accent-beige);
    transition: var(--transition);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--accent-beige);
    border-color: var(--accent-beige);
    color: var(--text-light);
}

section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; /* Changed from previous top value */
    left: 0;
    right: 0;
    z-index: 1051;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.navbar-permanent {
    display: flex !important;
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(245, 240, 235, 0.99);
}

.navbar .container-fluid {
    padding: 0 20px;
}

.navbar-brand img.logo {
    height: 60px;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--accent-beige);
    font-weight: 600;
    margin: 0 15px;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-beige);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after {
    width: 100%;
}

/* Social Proof Section */
.social-proof {
    background-color: #f8f9fa;
}

.social-stat {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.social-stat:hover {
    transform: translateY(-10px);
}

.social-stat i {
    font-size: 2.5rem;
    color: #007bff;
}

.social-stat .counter {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 1rem 0;
}

.social-stat p {
    color: #666;
    margin: 0;
}

/* Responsive Images */
.responsive-img {
    max-width: 100%;
    height: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 110px);
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
}

.hero-section.video-bg {
    background: var(--accent-beige);
    overflow: hidden;
}

.scrolling-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    overflow: hidden;
}

.scrolling-text-row {
    white-space: nowrap;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    line-height: 1.5;
    will-change: transform;
    overflow: hidden;
}

.scrolling-text-row span {
    margin-right: 30px;
    display: inline-block;
}

.scrolling-text-row .light {
    font-weight: 300;
    font-size: 20px;
}

.scrolling-text-row .regular {
    font-weight: 400;
    font-size: 24px;
}

.scrolling-text-row .bold {
    font-weight: 700;
    font-size: 28px;
}

.scrolling-text-row .thin {
    font-weight: 200;
    font-size: 22px;
}

.scrolling-text-row .bold-italic {
    font-weight: 700;
    font-style: italic;
    font-size: 26px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Half speed playback */
    animation: slowmotion 1s steps(1000) infinite;
}

@keyframes slowmotion {
    to {
        transform: translateZ(0);
    }
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(140, 123, 104, 0.1), rgba(74, 63, 53, 0.2));
    backdrop-filter: none;
    z-index: 0;
}

.hero-section.image-bg {
    background: none;
}

.hero-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-beige);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-image img {
    transform: scale(1);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* About Section */
.about-section {
    background-color: var(--light-beige);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

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

/* Social Media Section */
.social-section {
    background-color: var(--primary-beige);
    position: relative;
}

.social-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.png') repeat;
    opacity: 0.1;
}

.social-embed {
    margin: 20px 0;
    flex-grow: 1;
    height: 350px;
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-embed iframe,
.social-embed blockquote {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    max-height: 350px;
}

.tiktok-embed {
    max-height: 350px !important;
    overflow: hidden !important;
}

.social-embed  {
    min-width: unset !important;
    width: 100% !important;
    max-width: 100% !important;
}

.social-card {
    background: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-light);
    background-color: var(--accent-beige);
}

.social-icon:hover {
    background-color: var(--dark-beige);
    transform: translateY(-3px);
}

/* Remove the individual social icon background colors */
.social-icon.tiktok,
.social-icon.instagram,
.social-icon.youtube,
.social-icon.twitter {
    background-color: var(--accent-beige);
}

.social-card h3 {
    margin-bottom: 15px;
    color: var(--accent-beige);
}

.social-card p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.social-embed {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.social-embed img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

/* Social Media Overlays */
.tiktok-overlay,
.instagram-overlay,
.youtube-overlay,
.twitter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.tiktok-overlay i,
.instagram-overlay i,
.youtube-overlay i,
.twitter-overlay i {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.tiktok-overlay span,
.instagram-overlay span,
.youtube-overlay span,
.twitter-overlay span {
    color: var(--text-light);
    font-weight: 600;
}

.social-embed:hover img {
    transform: scale(1.05);
}

.social-embed:hover .tiktok-overlay,
.social-embed:hover .instagram-overlay,
.social-embed:hover .youtube-overlay,
.social-embed:hover .twitter-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Social Media Links */
.social-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Book Section */
.book-section {
    background-color: var(--light-beige);
    position: relative;
    overflow: hidden;
}

.book-image {
    position: relative;
    text-align: center;
}

.book-image:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-beige);
    z-index: -1;
    border-radius: 10px;
}

.book-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 80%;
}

.book-content {
    padding: 30px;
}

.book-content h2 {
    margin-bottom: 15px;
}

.book-content h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-beige);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

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

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

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

.footer-links a {
    color: var(--light-beige);
    transition: var(--transition);
}

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

.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-beige);
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--dark-beige);
    color: var(--text-light);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-section .bg-image {
        object-position: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    section {
        padding: 80px 0;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .book-image:before {
        display: none;
    }
    
    .book-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-image {
        max-width: 90%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-logo, .footer h4 {
        margin-bottom: 30px;
    }
    
    .footer h4 {
        margin-top: 20px;
    }
    
    .hero-section .bg-image {
        object-position: 70% center;
    }
    
    .vertical-social-bar {
        display: none;
    }
    
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 8px 0;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand img.logo {
        height: 45px;
    }
    
    .social-card {
        padding: 20px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container-fluid {
        padding: 0 15px;
    }
    
    body {
        padding-top: 65px;
    }
    
    .hero-section {
        height: calc(100vh - 65px);
        min-height: 500px;
    }
    
    .signature-logo {
        font-size: 1.3rem;
    }
}

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

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Social Media Alternatives */

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.scroll-down-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 25px;
  position: relative;
  box-sizing: border-box;
}

.scroll-down-indicator span::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 15px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; top: 15px; }
  30% { opacity: 1; }
  60% { opacity: 1; top: 30px; }
  100% { opacity: 0; top: 40px; }
}

/* Vertical Social Media Bar */
.vertical-social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 15px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-link-vertical {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-beige), var(--dark-beige));
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link-vertical:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Individual social platform colors on hover */
.social-link-vertical:hover i.fa-tiktok {
    color: #ff0050;
}

.social-link-vertical:hover i.fa-instagram {
    color: #e4405f;
}

.social-link-vertical:hover i.fa-youtube {
    color: #ff0000;
}

.social-link-vertical:hover i.fa-x-twitter {
    color: #1da1f2;
}

.social-link-vertical:hover i.fa-amazon {
    color: #ff9900;
}

/* Social tooltips */
.social-tooltip {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}

.social-link-vertical:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    left: 65px;
}

/* Hide vertical social bar on mobile */
@media (max-width: 768px) {
    .vertical-social-bar {
        display: none;
    }
    
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 8px 0;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 65px;
    }
    
    .hero-section {
        height: calc(100vh - 65px);
        min-height: 500px;
    }
}

/* Signature Logo in Navbar */
.signature-logo {
  font-family: 'Pacifico', cursive !important;
  font-size: 2.3rem;
  color: #4a3f35;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-shadow: 0 1px 0 #fff2, 0 2px 8px #0001;
  transition: color 0.2s;
}
.signature-logo:hover, .signature-logo:focus {
  color: #000;
  text-decoration: none;
}

/* World Map Section */
.world-map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.world-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.map-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* OpenStreetMap Styles */
#world-map {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Custom Map Marker Styles */
.custom-map-marker {
    background: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-map-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

/* Map Popup Styles */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.4;
}

.map-popup h5 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.map-popup p {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 14px;
}

.map-popup .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.map-popup .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Leaflet Control Styles */
.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .world-map-section {
        padding: 40px 0;
    }
    
    .map-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    #world-map {
        height: 350px;
    }
    
    .custom-map-marker i {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    #world-map {
        height: 300px;
    }
    
    .map-container {
        padding: 15px;
    }
    
    .custom-map-marker i {
        font-size: 18px !important;
    }
}
