:root {
  /* Colors */
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --text-light: #666666;
  --accent-color: #C19A6B; /* Earthy/Gold tone */
  --secondary-bg: #f9f9f9;
  --header-bg: rgba(255, 255, 255, 0.9);
  --border-color: #eeeeee;
  
  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --padding-section: 6rem 2rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --text-light: #a0a0a0;
  --accent-color: #D4AF37;
  --secondary-bg: #1e1e1e;
  --header-bg: rgba(18, 18, 18, 0.9);
  --border-color: #333333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-color);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.small-container {
    max-width: 800px;
}

.section-padding {
  padding: var(--padding-section);
}

.alt-bg {
  background-color: var(--secondary-bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; color: var(--text-light); }

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-fast);
}

.site-header.scrolled {
    padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block; /* For magnetic effect */
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle, #lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    transition: transform 0.2s linear; /* For Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Darkens the image */
    z-index: -1;
}

[data-theme="light"] .hero-overlay {
    background: rgba(255,255,255,0.1); /* Lighter overlay for light mode if desired, or keep dark for contrast */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
    color: #fff; /* Always white on hero bg */
    z-index: 1;
}

.hero-content h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .btn {
    border-color: #fff;
    color: #fff;
}

.hero .btn:hover {
    background-color: #fff;
    color: #000;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Gallery Filters */
.gallery-filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dropdown-group {
    gap: 2rem;
}

.filter-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    border-radius: 4px; /* Slight rounded for hover bg */
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-color);
    background-color: var(--border-color); /* Subtle bg highlight */
}

/* Select Styling */
.filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    transition: border-color var(--transition-fast);
}

[data-theme="dark"] .filter-select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.filter-select:focus {
    border-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    cursor: pointer;
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1/1; /* Square aspect ratio */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Faster for tilt */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the square area */
    transition: transform 0.6s ease;
    transform: rotate(90deg) translateZ(20px); /* Pop out slightly */
}

.img-wrapper:hover img {
    /* Scale handled by JS tilt */
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(30px); /* Pop out more than image */
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .icon {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
}

figcaption {
    padding-top: 1rem;
    text-align: center;
}

figcaption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

figcaption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.framed-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--accent-color);
    transition: transform 0.3s ease;
}

.framed-image:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 var(--accent-color);
}

/* Visit */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.card {
    background: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    color: inherit; /* Reset default link hover color */
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card:hover h3,
.card:hover p {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

/* Contact */
.contact-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.social-links a {
    margin-left: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: auto;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: rotate(90deg);
}

.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

/* Lightbox Cursor Fix */
body.lightbox-open {
    cursor: auto;
}

body.lightbox-open .cursor-dot,
body.lightbox-open .cursor-outline {
    display: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-color);
    z-index: 1001;
    transition: width 0.1s;
}

/* Spotlight Effect (Dark Mode) */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.03), 
        transparent 40%
    );
    pointer-events: none;
    z-index: 9998; /* Below cursor, above content background */
}

/* Magnetic Buttons */
.btn-magnetic {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* In a real implementation, would add mobile menu drawer */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links a {
        margin: 0 0.75rem;
    }
    
    h1 { font-size: 2.5rem; }
    
    /* Mobile nav simplistic override for this demo */
    .site-header.mobile-open .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }
}