/* Self-Hosted Inter Font - Add to your <style> or main.css */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: oblique 0deg 10deg; /* Supports slanted italics */
  font-display: swap; /* Improves loading performance */
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-roman.woff2') format('woff2'); /* Fallback for older browsers */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap; /* Prevents flash of invisible text */
  font-variation-settings: 'wght' 100; /* Base weight; override per element */
}

/* CSS Variables */
:root {
    --color-blue: #007bff;
    --color-foreground: #fff;
    --corner-radius: 12px;
    --color-border: rgba(255, 255, 255, 0.2);
    --thin-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    --webkit-tap-highlight-color: transparent;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-size: 100%;
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* Ligatures for better readability in Chrome */
    line-height: 1.6;
    letter-spacing: 0.025em;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: none;
    position: relative;
}
@supports (font-variation-settings: normal) {
  body { font-family: Inter, sans-serif; } /* Use variable version where supported */
}
body::-webkit-scrollbar {
  display: none;
}

body::before {
    content: '';
    position: fixed; /* Stays in place on scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #5a6a80 0%, #3a4a60 50%, #1a202c 100%);
    z-index: -1; /* Behind all content */
    pointer-events: none; /* Doesn't block interactions */
}
main {
    margin-top: 80px;
    padding-bottom: 2rem;
    flex: 1;
}
section {
    padding: 100px 0;
}
h1,h2 {
    font-family: 'Montserrat', Inter, sans-serif;
    font-variation-settings: 'wght' 600; /* Bold for titles; tweak as needed */
    font-weight: 600; /* Fallback for non-variable support */
}
/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--corner-radius);
    box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 10px rgba(74, 85, 104, 0.3);
}
/* Top Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.nav.glass {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.9;
}
.nav-menu a:hover {
    color: #fff;
    opacity: 1;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    box-shadow: inset 0 -10px 10px -10px rgba(0, 0, 0, 0.6);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_background.webp'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    background-attachment:fixed;
    z-index: -1;
    filter: brightness(0.7) saturate(1.2);
}
.hero-content {
    max-width: 55%;
    padding: 20px;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.hero p.bio {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 700;
}
.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
/* Gallery Section */
.gallery-section {
    position: relative;
    padding: 2rem;
    text-align: center;
}
.categories {
    position: sticky;
    z-index: 999;
    top: 80px; /* Below nav */
    margin: 0 auto 2rem;
    width: fit-content;
    max-width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: var(--corner-radius);
}
.category {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0);
    border-radius: 8px;
    white-space: nowrap;
}
.category:hover,
.category.selected {
    background: rgba(0, 123, 255, 0.3); /* Faded blue tint */
    color: #fff;
    border: 1px solid rgba(0, 123, 255, 0.4); /* Subtle blue border */
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2); /* Blue-tinted shadow for pop */
}
/* Gallery Container */
.gallery-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.image-container {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.4s ease, opacity 0.55s ease;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: var(--corner-radius);
    cursor: pointer;
    box-shadow: var(--thin-shadow);
}
.image-container.invisible {
    transform: scale(0.88);
    opacity: 0;
}
.image-container:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.image-container:hover img {
    transform: scale(1.1);
}
/* Featured Highlights */
.highlights {
    max-width: 1200px;
    margin: 0 auto;
    width: 80%;
}
.highlights h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
/* Card Styles */
.card {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover img {
    transform: scale(1.1);
}
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.card:hover .card-content {
    transform: translateY(0);
}
.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.card p {
    opacity: 0.9;
    font-size: 0.95rem;
}
.card-link {
    color: white;
    text-decoration: none;
}
/* Enhanced Card Styles */
.card {
    aspect-ratio: 16 / 10;
    border-radius: 20px; /* Slightly larger radius for softer edges */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); /* Subtle card bg gradient */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Faint border for separation */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15), /* Deeper outer shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Inner glow for glass depth */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
    display: flex;
}
.card::before {
    background: rgba(0, 0, 0, 0.3); /* Lighter overlay for better image pop */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.card:hover::before {
    opacity: 0.6; /* Fade on hover for airiness */
}
.card img {
    object-position: center;
    transition: transform 0.4s ease;
}
.card:hover img {
    transform: scale(1.05); /* Gentler zoom */
}
.card-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); /* Vignette-like fade from bottom */
    transition: transform 0.4s ease;
}
.card h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sharper text depth */
}
/* About Me Snippet */
.about {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto 80px;
}
.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}
.about p {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}
/* Image Viewer Modal */
.image-viewer {
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px) grayscale(65%) brightness(40%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.image-viewer.visible {
    opacity: 1;
    visibility: visible;
}
.btn-close-viewer {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-close-viewer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.close-icon {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transform: rotate(45deg);
}
.close-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transform: rotate(-45deg);
}
.image-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.image-viewer.visible .image-info {
    opacity: 1;
}
.viewer-container {
    padding: 2rem;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.viewer-container::-webkit-scrollbar {
    display: none;
}
.image-wrapper {
    scroll-snap-align: center;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    margin-right: 2rem;
    width: 100%;
    max-height: 100%;
}
.image-wrapper::before {
    transition: opacity 0.25s;
    opacity: 0;
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    background-color: #ddd;
    border-radius: 50%;
}
.image-wrapper.invisible::before {
    opacity: 1;
}
.image-wrapper img {
    transition: opacity 0.5s, transform 0.5s;
    transform: scale(1);
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
    border: solid 2px white;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.image-wrapper.invisible img {
    opacity: 0;
    transform: scale(0.97);
}
.viewer-container .image-wrapper:first-child {
    margin-left: 50vw;
}
.viewer-container .image-wrapper:last-child {
    margin-right: 50vw;
}
/* Footer */
.footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}
.footer.glass {
    border-radius: 0;
    border: none;
    background-color: rgba(0,0,0,0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links {
    margin-bottom: 1rem;
}
.footer-links a {
    color: inherit;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: white;
}
/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive */
@media (max-width: 768px) {
    .nav { padding: 1rem; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 2rem; }
    .gallery-section { padding: 1rem; }
    .gallery-container { padding: 0 1rem 1rem; border-radius: 8px; }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
    .categories { max-width: 100%; gap: 0.5rem; padding: 0.25rem; }
    .category { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .btn-close-viewer { top: 1rem; right: 1rem; }
    .image-info { bottom: 1rem; padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .viewer-container { padding: 0.65rem; }
    .image-wrapper::before { width: 4rem; height: 4rem; }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
    .highlights { padding: 40px 20px; width: 100%;}
    .grid { grid-template-columns: 1fr; }
}
