:root {
    --color-bg: #0f0f0f;
    --color-surface: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-accent: #00ff88;
    --color-accent-hover: #00cc6a;
    --color-border: #333333;
    --color-border-hover: #555555;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --border-radius: 8px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    left: 0;
    top: 0;
    will-change: transform;
}

.cursor::before,
.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

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

.cursor::after {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    opacity: 0.5;
}

/* Pointer state for interactive elements */
.cursor.pointer::before {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--color-accent);
}

.cursor.pointer::after {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-accent);
    opacity: 0.3;
}

.cursor.active::before {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--color-accent);
}

.cursor.active::after {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--color-accent);
    opacity: 0.8;
}

.cursor.click::before {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--color-accent);
}

.cursor.click::after {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-accent);
    opacity: 0;
}

/* Remove cursor-follower */
.cursor-follower {
    display: none;
}

/* Hide default cursor */
* {
    cursor: none !important;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    color: var(--color-text-primary);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Modal Gallery */
.modal-gallery {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-gallery.active {
    opacity: 1;
    visibility: visible;
}

.modal-gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.modal-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-gallery-image.active {
    opacity: 1;
    transform: scale(1);
}

.modal-gallery-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.modal-gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.modal-gallery-thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

.modal-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
}

.modal-gallery-nav:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.modal-gallery-prev {
    left: var(--spacing-md);
}

.modal-gallery-next {
    right: var(--spacing-md);
}

.modal-gallery-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
}

.modal-gallery-close:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.modal-gallery-counter {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(0, 255, 136, 0.08) 0%, 
            rgba(0, 255, 136, 0.05) 30%, 
            rgba(0, 255, 136, 0) 70%);
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.2em;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: 1px;
    overflow: hidden;
    margin: var(--spacing-md) auto;
}

.loading-progress::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-accent);
    transition: width 2s ease;
}

.loading-dots {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: loadingDot 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.loading-message {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 15, 15, 0.8);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(0, 255, 136, 0.15) 0%, 
            rgba(0, 255, 136, 0.1) 30%, 
            rgba(0, 255, 136, 0) 70%);
    transform: translate(-50%, -50%);
    animation: pulse 5s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    animation: backgroundShift 12s ease-in-out infinite;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    color: var(--color-accent);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    position: relative;
    min-height: 1.2em; /* Ensure space for scrambled text */
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scramble text specific styles from JS are dynamically injected.
   This CSS provides fallback/base for .scramble-text containers if needed,
   and ensures .hero-title .scramble-text inherits correctly if it's the one being animated. */
.scramble-text {
    position: relative; /* Needed for JS cursor logic if applied */
    display: inline-block; /* Ensured by JS, good for consistency */
    min-height: 1.2em; /* Ensured by JS */
    /* color: var(--color-text-primary); Removed to let JS .scramble-char style dictate color during animation */
    /* transition: color 0.3s ease; */ /* JS handles its own transitions/appearance */
}

/*
   REMOVED conflicting .scramble-char styles and its animation from here.
   The TextScramble class in animations.js injects its own styles:
    .scramble-char {
        display: inline-block;
        transition: all 0.1s ease;
        color: var(--color-accent);
    }
   This ensures the JS has full control over the characters during the scramble effect.
*/


/* Temporary test for .hero-title .scramble-text */
.hero-title .scramble-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--color-text-primary); /* Simple color for testing */
    /* background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial; */
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

/* Temporarily simplified scramble char styles for testing */
.hero-title .scramble-text .scramble-char {
    color: var(--color-accent); /* Just use simple color */
    display: inline-block;
}

.nav-logo .scramble-text { /* The other targeted element */
    font-size: inherit;
    font-weight: inherit;
    /* It will use its parent's color primarily, JS overrides char color during scramble */
    position: relative; /* Ensure this is here, as JS adds it too */
    display: inline-block; /* Ensure this is here */
    min-height: 1.2em; /* Ensure this is here */
}


.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

/* Styles for the secondary subtitle */
.hero-subtitle-secondary {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem) !important;
    margin-top: calc(-1 * var(--spacing-lg)) !important;
    margin-bottom: var(--spacing-xl) !important;
    opacity: 0.3 !important;
    position: relative !important;
    z-index: 1 !important;
    background: linear-gradient(
        90deg,
        var(--color-text-muted) 0%,
        var(--color-accent) 25%,
        var(--color-text-muted) 50%,
        var(--color-accent) 75%,
        var(--color-text-muted) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    letter-spacing: 0.5px;
    font-weight: 500 !important;
    transform-origin: left center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-subtitle-secondary:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px) scale(1.02) !important;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Ensure the main subtitle keeps its original styles */
.hero-subtitle:not(.hero-subtitle-secondary) {
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
}

/* Hero Animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: none;
    font-family: inherit;
}

.btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

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

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

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1s;
}

/* Sections */
.section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(0, 255, 136, 0.05) 0%, 
            rgba(0, 255, 136, 0.03) 30%, 
            rgba(0, 255, 136, 0) 70%);
    transform: translate(-50%, -50%);
    animation: pulse 7s ease-in-out infinite;
    animation-delay: calc(var(--section-index, 0) * 1s);
    z-index: -1;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.card-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.card-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
    cursor: none;
}

.card-link:hover {
    color: var(--color-accent-hover);
    transform: translateX(4px);
}

/* Photo Section */
.photo-section {
    position: fixed;
    top: 50%;
    right: var(--spacing-lg);
    transform: translateY(-50%);
    z-index: 100;
}

.photo-container {
    width: 200px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: none;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.photo-container:hover {
    transform: scale(1.02) rotate(-1deg);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.photo-container:hover img {
    filter: grayscale(0%);
}

.photo-label {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-primary);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.photo-container:hover .photo-label {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.contact-value {
    font-size: 1.125rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: none;
}

.contact-value:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: none;
}

.social-link svg {
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-lg);
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .photo-section {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating elements */
.hero-floating {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-floating-1 {
    top: 20%;
    left: 10%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-2 {
    top: 60%;
    right: 15%;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-floating-3 {
    bottom: 20%;
    left: 20%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}


/* Floating Elements - Global */
.floating-element {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    animation: float var(--float-duration, 6s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.floating-element-1 {
    top: 10%;
    left: 5%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    --float-duration: 6s;
}

.floating-element-2 {
    top: 30%;
    right: 10%;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    --float-duration: 8s;
    --float-delay: 1s;
}

.floating-element-3 {
    bottom: 20%;
    left: 15%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    --float-duration: 7s;
    --float-delay: 2s;
}

.floating-element-4 {
    top: 60%;
    right: 20%;
    width: 25px;
    height: 25px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    --float-duration: 9s;
    --float-delay: 1.5s;
}

.floating-element-5 {
    bottom: 40%;
    left: 25%;
    width: 35px;
    height: 35px;
    background: var(--color-accent);
    border-radius: 50%;
    --float-duration: 7.5s;
    --float-delay: 0.5s;
}

/* Removed duplicate @keyframes scrambleChar from here as well */

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    min-height: 200px; /* Ensure space for content */
}

.blog-post {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.delete-post-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
}

.blog-post:hover .delete-post-btn {
    opacity: 1;
}

.delete-post-btn:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.blog-post-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.blog-post-content {
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line; /* Preserve line breaks */
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.blog-tag:hover {
    transform: translateY(-2px);
    background: var(--color-accent-hover);
}

.blog-tag.active {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Blog Error and Empty States */
.blog-error,
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
}

.blog-error {
    border-color: #ff4444;
}

.error-details {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Admin Interface */
.admin-login {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}

.admin-login .btn {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    color: var(--color-accent);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.admin-form textarea.admin-input {
    min-height: 200px;
    resize: vertical;
}

.admin-form button {
    margin-top: 1rem;
    cursor: pointer;
}

/* Tag Filter */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.tag-filter-btn {
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tag-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.tag-filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* Blog Post Modal */
.blog-post-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    position: relative;
}

.blog-post-modal .blog-post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.blog-post-modal .blog-post-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.blog-post-modal .blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    white-space: pre-line;
}

.blog-post-modal .blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Make blog posts clickable */
.blog-post {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* Prevent tag clicks from triggering post click */
.blog-tag {
    position: relative;
    z-index: 1;
}

/* Prevent delete button clicks from triggering post click */
.delete-post-btn {
    position: relative;
    z-index: 2;
}

/* Add new background shift animation */
@keyframes backgroundShift {
    0% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.1) rotate(1deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-1deg);
    }
    100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
}