/* --- YOUR ORIGINAL BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Georgia", serif;
}

/* Smooth scrolling for the navigation links */
html {
    scroll-behavior: smooth;
}
/* --- THE CLASSY FRAME --- */
.page-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows you to click things behind the frame */
    z-index: 10000;
    border: 1px solid rgba(192, 157, 106, 0.3); /* The very thin outer line */
    margin: 10px; /* Space from the edge of the screen */
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}

/* The Vertical Lines */
.page-frame::before,
.page-frame::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #c09d6a, transparent);
}

.page-frame::before { left: 15px; }
.page-frame::after { right: 15px; }

/* The Decorative Corners */
.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #c09d6a;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 15px 0 0 0;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 15px 0 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 15px;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 15px 0;
}

/* Add a small flourish dot in the corners */
.corner::after {
    content: "✦";
    position: absolute;
    color: #c09d6a;
    font-size: 12px;
}

.top-left::after { top: -8px; left: -5px; }
.top-right::after { top: -8px; right: -5px; }
.bottom-left::after { bottom: -8px; left: -5px; }
.bottom-right::after { bottom: -8px; right: -5px; }

@media (max-width: 768px) {
    .page-frame { margin: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
    .corner { width: 20px; height: 20px; }
}
body {
    background: #f4efe9;
    color: #2c2c2c;
}
/* --- FLOATING TAGS STYLING --- */
.side-tags {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
}

.side-tags.left {
    left: 40px;
}

.side-tags.right {
    right: 40px;
    text-align: right;
    align-items: flex-end;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    color: #1f1f1f;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: default;
}

.tag-pill span {
    color: #c09d6a; /* That gold accent for MythicBharat */
    margin: 0 5px;
}

.tag-pill:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px); /* Moves slightly on hover */
}

.side-tags.right .tag-pill:hover {
    transform: translateX(-5px);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .side-tags {
        display: none; /* Hide tags on tablets and phones to keep focus on title */
    }
}

/* Ensure hero-content stays in the middle */
.hero-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    z-index: 2;
    margin: 0 auto;
}
/* General styles for Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4); /* Glassmorphism effect */
    backdrop-filter: blur(12px);         /* The frosted glass effect */
    -webkit-backdrop-filter: blur(12px);  /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  /* Logo Styles */
  .navbar .logo {
    font-weight: bold;
    font-size: 18px;
    color: #1f1f1f;
    letter-spacing: 3px;
  }
  
  /* Navbar Links Styles */
  .navbar a {
    margin-left: 25px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
  }
  
  /* Icon Styles in Navbar Links */
  .navbar a i {
    margin-right: 8px;  /* Adds space between icon and text */
  }
  
  /* Underline animation for navbar links */
  .navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #c09d6a;
    transition: width 0.3s ease;
  }
  
  .navbar a:hover::after {
    width: 100%;
  }
  /* For screens wider than 768px (Desktop view) */
@media (min-width: 768px) {
    /* Show desktop-specific links */
    .desktop-only {
      display: inline-block;
    }
  
    /* Hide mobile-specific links */
    .mobile-only {
      display: none;
    }
  
    /* Navbar and logo adjustments for desktop */
    .navbar .logo {
      font-size: 18px;
    }
  
    /* Text size for desktop navbar links */
    .navbar a {
      font-size: 14px;
      margin-left: 25px;
    }
  }
 /* --- For screens smaller than 768px (Mobile view) --- */
@media (max-width: 768px) {
    /* Hide desktop links */
    .desktop-only {
      display: none;
    }
  
    /* Show mobile links with FontAwesome icons */
    .mobile-only {
      display: inline-block;                  /* Use flexbox to arrange icons side by side */
      justify-content: center;         /* Center align the icons */
      align-items: center;             /* Vertically center the icons */
      font-size: 16px;
      padding: 10px;
      gap: 20px;                       /* Add space between the icons */
    }
  
    /* Adjust mobile navbar */
    .navbar {
      padding: 10px 20px;
      width: 90%;
    }
  
    /* Mobile logo adjustments */
    .navbar .logo {
      font-size: 16px;                /* Smaller font size for mobile logo */
      letter-spacing: 0;               /* No letter spacing for 'MB' */
      text-align: center;             /* Center logo */
    }
  
    /* Make the mobile navigation icons side by side */
    .mobile-only a {
      display: flex;                  /* Use flex for aligning the icon and text */
      align-items: center;            /* Vertically align the icon and text */
      font-size: 16px;
      margin: 0;                       /* Remove margin to ensure consistent gap */
    }
  
    .mobile-only a i {
      font-size: 20px;                 /* Larger icons */
      margin-right: 8px;               /* Space between icon and text */
    }
  
    /* Icon and text color on hover */
    .mobile-only a:hover {
      color: #c09d6a;
    }
  
    /* Remove underline animation on mobile */
    .mobile-only a::after {
      display: none;
    }
  }
  
  /* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url("Image/TajMahal/background1.webp") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(244,239,233,0.3), #f4efe9);
}

/* CONTENT */
.hero-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    letter-spacing: 3px;
    font-size: 12px;
}

.hero-content h1 {
    font-size: 64px;
    margin: 15px 0;
}

.description {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.cta {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    border: none;
    background: #1f1f1f;
    color: white;
    cursor: pointer;
    border-radius: 25px;
}

/* CARDS */
.cards {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 20px;
    z-index: 2;
}
.card {
    /* 1. Transparent background */
    background: rgba(255, 255, 255, 0.35); 
    
    /* 2. Frosted glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* 3. Defined edges and shadow */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* 4. Layout & Shape */
    padding: 25px;
    width: 180px;
    border-radius: 18px; /* Slightly rounder for a more modern feel */
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* 5. Hover effect to make them feel "clickable" */
.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(192, 157, 106, 0.6); /* Gold tint on hover */
}
.card h3 {
    margin-bottom: 8px;
}

/* --- NEW UNIQUE SECTIONS FOR MYTHICBHARAT --- */

/* Standard Section Container */
.section-container {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}
/* --- HISTORY SECTION BASE --- */
.history-section {
    background-color: #f4efe9;
    padding: 80px 5%;
}

.history-header {
    text-align: center;
    margin-bottom: 20px;
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- DESKTOP VIEW (Horizontal) --- */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

/* The Horizontal Line */
.timeline-line {
    position: absolute;
    top: 15px; /* Aligns with the dots */
    left: 0;
    width: 100%;
    height: 2px;
    background: #c09d6a;
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 2;
}

/* The Dot */
.timeline-item::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: #1f1f1f;
    border: 4px solid #c09d6a;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.time-marker {
    font-weight: bold;
    color: black;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.time-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.time-content p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 10px;
}
/* Premium Glassmorphism for Timeline Cards */
.time-content {
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(5px);         /* Frosted glass effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    
    padding: 20px;
    border-radius: 15px;                 /* Rounded rectangular shape */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Soft border for definition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle depth shadow */
    
    transition: transform 0.3s ease, background 0.3s ease;
}
@media (max-width: 768px) {
    .timeline-item {
        margin-bottom: 20px; /* Space between the glass boxes */
    }
    
    .time-marker {
        margin-left: 10px;   /* Give the year some breathing room */
        margin-bottom: 8px;
    }

    .time-content {
        padding: 15px;       /* Slightly smaller padding for mobile */
    }
}
/* Hover effect to make it feel interactive */
.time-content:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    border: 1px solid #c09d6a; /* Changes border to gold on hover */
}
/* --- MOBILE VIEW (Vertical) --- */
@media (max-width: 768px) {
    .timeline-wrapper {
        padding-left: 20px; /* Space for the line and dots */
    }

    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        gap: 40px; /* Better spacing between history events */
    }

    .timeline-line {
        width: 2px;
        height: 100%;
        left: 30px; /* Adjust this to align with the dot center */
        top: 0;
        background: #c09d6a;
    }

    .timeline-item {
        position: relative;
        display: block; /* Changing from flex to block for better text flow */
        padding-left: 45px; /* Creates space for the dot on the left */
        text-align: left;
        margin-bottom: 0;
    }

    .timeline-item::before {
        /* This is your DOT */
        content: "";
        position: absolute;
        left: 6px; /* Centers the dot exactly on the 2px line */
        top: 3px;   /* Vertical position of dot relative to date */
        width: 20px;
        height: 20px;
        background: #1f1f1f;
        border: 4px solid #c09d6a;
        border-radius: 50%;
        z-index: 3;
        margin: 0;
    }

    .time-marker {
        font-size: 1.2rem;
        margin-bottom: 5px;
        display: block;
    }

    .time-content h3 {
        font-size: 16px !important;
        margin-bottom: 5px;
    }

    .time-content p {
        font-size: 0.95rem;
        padding: 0;
    }
}
/* Optimized Architecture Section */
.history-section {
    /* REMOVED 'fixed' - this is the biggest lag culprit */
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), 
                url('Image/TajMahal/background.webp') center/cover;
    color: #2c2c2c;
    text-align: center;
    padding: 60px 15px;
}

/* Optimized Architecture Section */
.arch-section {
    /* REMOVED 'fixed' - this is the biggest lag culprit */
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), 
                url('Image/TajMahal/background2.webp') center/cover;
    color: #2c2c2c;
    text-align: center;
    padding: 60px 15px;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    /* Helps performance for large grids */
    contain: layout; 
}

.arch-item {
    padding: 20px;
    background: rgba(255,255,255,0.7); /* Increased opacity slightly to reduce blur stress */
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    
    /* Optimized Blur */
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    
    /* Performance Boost for Hover Animation */
    transition: transform .3s ease, box-shadow .3s ease;
    will-change: transform; 
}

.arch-item:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-5px); /* Shorter move is smoother */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ... keep your h2, h3, and p styles as they were ... */
.arch-section h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.arch-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #8b7355; /* A subtle bronze/gold for a premium feel */
}

.arch-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}
/* 3. GALLERY SECTION - Visual & Immersive */
.gallery-section {
    background-color: #2c2c2c;
    color: white;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background-color: #444; /* Placeholder color */
    transition: opacity 0.3s;
}

.gallery-img:hover {
    opacity: 0.8;
}
/* Make gallery item relative */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Button styling */
.gallery-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: 0.3s ease;
}

/* Hover effect */
.gallery-btn:hover {
    background: #c19b5a;
}
.site-footer {
    background-color: #1f1f1f;
    color: #ccc;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    border-top: 1px solid #333;
}

.site-footer p {
    margin: 0;
}
.floating-share {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #c19b5a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s ease;
    z-index: 1000;
}

.floating-share:hover {
    background: #a88445;
    transform: scale(1.08);
}
/* Mobile adjustments for floating share button */
@media (max-width: 768px) {
    .floating-share {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}
@media (max-width: 480px) {
    .floating-share {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 10px;
        right: 10px;
    }
}

/* Spanning logic for mosaic */
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }
/* --- MOBILE VIEW (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hide Hero Section on Mobile */
    .hero {
        display: none; /* Hide the hero section */
    }

    /* Adjust Navbar for Mobile */
    .navbar {
        top: 10px;  /* Adjusted the navbar's position */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;  /* Make navbar width 90% to fit better */
        padding: 10px 20px;  /* Reduced padding */
    }

    .navbar a {
        font-size: 14px; /* Slightly bigger text for mobile links */
        margin-left: 15px; /* Reduced space between links */
    }

    /* Side tags hidden for mobile */
    .side-tags {
        display: none;
    }

    /* Hero Content Adjustments */
    .hero-content h1 {
        font-size: 36px; /* Reduced font size */
        margin: 10px 0;
    }

    .hero-content p.description {
        font-size: 14px; /* Reduced font size for mobile */
    }

    .cta {
        font-size: 14px; /* Smaller button text */
        padding: 10px 20px; /* Adjusted button padding */
    }

    .cards {
        position: absolute;
        bottom: 20px;
        flex-direction: column; /* Stack cards vertically */
        gap: 15px;
    }

    .card {
        width: 90%;  /* Make cards take up more space */
        padding: 15px;
    }

    /* History Section Adjustments */
    .history-section {
        padding: 30px 5%; /* Reduced padding for mobile */
    }

    .history-header h2 {
        font-size: 18px; /* Smaller font size for headings */
    }

    .timeline-container {
        flex-direction: column; /* Stack timeline items vertically */
        align-items: flex-start;
        gap: 20px;
    }

    .timeline-item {
        flex-direction: column; /* Stack timeline items vertically */
        align-items: center;
    }

    .timeline-line {
        width: 2px; /* Slimmer timeline line */
        height: 100%; /* Full-height line */
        left: 40px; /* Align with dots */
    }

    /* Architecture Section Adjustments */
    .arch-section {
        padding: 10px 10%; /* Reduced padding */
    }

    .arch-grid {
        grid-template-columns: 1fr; /* Single column grid */
        gap: 15px;
    }

    .arch-item {
        width: 100%;  /* Make architecture items full width */
        padding: 15px;
        background: rgba(255, 255, 255, 0.8); /* Adjust opacity for better contrast */
    }

    /* Gallery Section Adjustments */
    .gallery-section {
        padding: 30px 10%; /* Reduced padding */
    }

    .gallery-mosaic {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .gallery-img {
        width: 100%;  /* Full width for images */
        height: auto; /* Maintain aspect ratio */
        border-radius: 8px;
    }
}
@media (max-width: 768px) {
    /* 1. FIX FONT SIZES ACROSS SECTIONS */
    body {
        font-size: 14px; /* Global reduction for mobile */
    }

    h1 { font-size: 32px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 18px !important; }
    p { font-size: 14px !important; line-height: 1.6; }

    .arch-section {
        padding: 60px 10px;
        /* The "Fixed" background effect */
        background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), 
                          url('Image/TajMahal/background2.webp');
        background-attachment: fixed; /* This keeps the image still while content scrolls */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        
        /* Smoothness fix for mobile browsers */
        overflow: hidden; 
        
    }
    
    .history-section {
        padding: 60px 10px;
        /* The "Fixed" background effect */
        background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), 
                          url('Image/TajMahal/background.webp');
        background-attachment: fixed; /* This keeps the image still while content scrolls */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        
        /* Smoothness fix for mobile browsers */
        overflow: hidden; 
        
    }


    .arch-grid {
        display: grid;
        /* Force two columns even on small screens */
        grid-template-columns: 1fr 1fr; 
        gap: 12px; /* Reduced gap to fit two items better */
        width: 100%;
    }

    .arch-item {
        padding: 15px 10px; /* Slimmer padding for 2-column fit */
        background: rgba(255, 255, 255, 0.85);
        border-radius: 10px;
    }

    .arch-item h3 {
        font-size:16px !important;
        margin-bottom: 5px;
    }

    .arch-item p {
        font-size: 12px !important; /* Smaller text to prevent long cards */
        line-height: 1.4;
    }
    /* 3. NAVBAR FONT ADJUSTMENT */
    .navbar .logo {
        font-size: 14px; /* Make 'MB' smaller */
    }

    .mobile-only a {
        font-size: 14px; /* Keep icons/text balanced */
    }

    /* 4. HISTORY SECTION FONT FIXES */
    .time-marker {
        font-size: 1.1rem !important;
    }

    .time-content p {
        font-size: 13px !important;
        padding: 0;
    }

    /* 5. GALLERY FIX */
    .gallery-mosaic {
        grid-template-columns: 1fr;
       grid-auto-rows: 200px; /* Shorter rows for mobile */
    }

    .wide, .tall {
        grid-column: span 1; /* Reset spans so they don't break layout */
        grid-row: span 1;
    }
}

/* Add space to account for the fixed navbar height */
.section-container {
  
    scroll-margin-top: 80px; /* Ensures that when you click a link, it doesn't stop behind the nav */
}

/* Specifically for History if it's the first section after the Hero */
#history {
    padding-top: 75px; 
}