/* ========================================
DESIGN TOKENS & CUSTOM PROPERTIES
======================================== */
 :root {
     /* Photography Theme Color Palette */
     --color-base-bg: #fafafa;
     --color-base-surface: #ffffff;
     --color-base-text: #1a1a1a;
     --color-base-text-muted: #4a5568;

     /* Accent Colors - Photography Inspired */
     --color-accent-1: #2c3e50;
     /* Lens dark */
     --color-accent-2: #e74c3c;
     /* Aperture red */
     --color-accent-3: #95a5a6;
     /* Silver tone */
     --color-accent-4: #34495e;
     /* Deep slate */
     --color-accent-light: #f8f9fa;
     --color-accent-glow: rgba(231, 76, 60, 0.15);

     /* Functional Colors */
     --color-shadow: rgba(231, 76, 60, 0.12);
     --color-border: rgba(44, 62, 80, 0.12);
     --color-hover: rgba(231, 76, 60, 0.08);

     /* Gradients */
     --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #e74c3c 50%, #95a5a6 100%);
     --gradient-secondary: linear-gradient(225deg, #34495e 0%, #2c3e50 100%);
     --gradient-subtle: linear-gradient(180deg, var(--color-base-bg), #fff);
     --gradient-hero: linear-gradient(135deg, #fafafa 0%, #f0f1f2 50%, #fafafa 100%);

     /* Spacing Scale */
     --space-xs: 0.25rem;
     --space-sm: 0.5rem;
     --space-md: 1rem;
     --space-lg: 1.5rem;
     --space-xl: 2rem;
     --space-2xl: 3rem;
     --space-3xl: 4rem;
     --space-4xl: 6rem;

     /* Border Radius */
     --radius-sm: 4px;
     --radius-md: 8px;
     --radius-lg: 12px;
     --radius-xl: 16px;
     --radius-2xl: 24px;
     --radius-full: 9999px;

     /* Shadows */
     --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
     --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
     --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
     --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
     --shadow-theme: 0 10px 30px var(--color-shadow), 0 4px 10px rgba(0, 0, 0, 0.06);

     /* Typography */
     --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
     --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
     --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
     --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
     --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
     --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
     --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
     --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
     --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
     --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

     --weight-normal: 400;
     --weight-medium: 500;
     --weight-semibold: 600;
     --weight-bold: 700;
     --weight-extrabold: 800;

     --leading-tight: 1.25;
     --leading-normal: 1.5;
     --leading-relaxed: 1.75;
 }

 /* ========================================
RESET & BASE STYLES
======================================== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
     scroll-padding-top: 80px;
 }

 body {
     font-family: var(--font-sans);
     font-size: var(--text-base);
     line-height: var(--leading-relaxed);
     color: var(--color-base-text);
     background: var(--color-base-bg);
     letter-spacing: -0.005em;
     overflow-x: hidden;
 }

 /* ========================================
NAVIGATION BAR
======================================== */
 .navbar {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 1000;
     background: rgba(255, 255, 255, 0.8);
     -webkit-backdrop-filter: blur(12px) saturate(180%);
     backdrop-filter: blur(12px) saturate(180%);
     border-bottom: 1px solid var(--color-border);
     box-shadow: var(--shadow-sm);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .navbar-container {
     max-width: 1400px;
     margin: 0 auto;
     padding: var(--space-md) var(--space-lg);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .navbar-brand {
     font-size: var(--text-lg);
     font-weight: var(--weight-bold);
     color: var(--color-accent-2);
     text-decoration: none;
     letter-spacing: -0.02em;
     transition: all 0.3s ease;
 }

 .navbar-brand:hover {
     color: var(--color-accent-1);
     transform: translateY(-2px);
 }

 .navbar-links {
     display: flex;
     gap: var(--space-lg);
     align-items: center;
     list-style: none;
 }

 .navbar-links a {
     color: var(--color-base-text-muted);
     text-decoration: none;
     font-weight: var(--weight-medium);
     font-size: var(--text-sm);
     transition: all 0.3s ease;
     position: relative;
     padding: var(--space-sm) 0;
 }

 .navbar-links a::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--gradient-primary);
     transition: width 0.3s ease;
 }

 .navbar-links a:hover {
     color: var(--color-accent-2);
 }

 .navbar-links a:hover::after {
     width: 100%;
 }

 /* ========================================
HERO SECTION
======================================== */
 .hero {
     min-height: 70vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: var(--space-4xl) var(--space-lg);
     background: var(--gradient-hero);
     background-size: 200% 200%;
     animation: gradientShift 12s ease infinite;
     position: relative;
     overflow: hidden;
     margin-top: 60px;
 }

 .hero::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background:
         radial-gradient(circle at 20% 50%, var(--color-accent-glow) 0%, transparent 50%),
         radial-gradient(circle at 80% 50%, rgba(149, 165, 166, 0.1) 0%, transparent 50%);
     pointer-events: none;
 }

 .hero-content {
     max-width: 900px;
     text-align: center;
     position: relative;
     z-index: 1;
 }

 .hero-svg {
     width: 350px;
     height: 350px;
     margin: 0 auto var(--space-2xl);
     filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
 }

 .hero-title {
     font-size: var(--text-5xl);
     font-weight: var(--weight-extrabold);
     line-height: var(--leading-tight);
     margin-bottom: var(--space-lg);
     letter-spacing: -0.03em;
     background: var(--gradient-primary);
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-size: 200% 200%;
     animation: gradientShift 8s ease infinite;
 }

 .hero-subtitle {
     font-size: var(--text-xl);
     color: var(--color-base-text-muted);
     margin-bottom: var(--space-xl);
     font-weight: var(--weight-medium);
 }

 .hero-subtitle a {
     color: var(--color-accent-2);
     text-decoration: none;
     border-bottom: 2px solid transparent;
     transition: border-color 0.3s ease;
 }

 .hero-subtitle a:hover {
     border-bottom-color: var(--color-accent-2);
 }

 @keyframes gradientShift {
     0% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }

     100% {
         background-position: 0% 50%;
     }
 }

 /* ========================================
SVG ANIMATIONS
======================================== */
 @keyframes float {

     0%,
     100% {
         transform: translateY(0px) rotate(0deg);
     }

     50% {
         transform: translateY(-20px) rotate(5deg);
     }
 }

 @keyframes rotate {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 @keyframes pulse {

     0%,
     100% {
         opacity: 1;
         transform: scale(1);
     }

     50% {
         opacity: 0.7;
         transform: scale(1.05);
     }
 }

 @keyframes apertureSpin {
     from {
         transform: rotate(0deg) scale(1);
     }

     to {
         transform: rotate(360deg) scale(1.05);
     }
 }

 .svg-camera {
     animation: float 5s ease-in-out infinite;
 }

 .svg-aperture {
     animation: apertureSpin 20s linear infinite;
     transform-origin: center;
 }

 .svg-lens {
     animation: pulse 4s ease-in-out infinite;
 }

 .svg-shutter {
     animation: float 6s ease-in-out infinite 1s;
 }

 /* ========================================
CONTENT SECTIONS
======================================== */
 .section {
     padding: var(--space-4xl) var(--space-lg);
     max-width: 1400px;
     margin: 0 auto;
 }

 .section-title {
     font-size: var(--text-4xl);
     font-weight: var(--weight-bold);
     margin-bottom: var(--space-2xl);
     text-align: center;
     color: var(--color-accent-1);
     letter-spacing: -0.02em;
     position: relative;
     padding-bottom: var(--space-md);
 }

 .section-title::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 80px;
     height: 4px;
     background: var(--gradient-primary);
     border-radius: var(--radius-full);
 }

 .section-subtitle {
     font-size: var(--text-lg);
     color: var(--color-base-text-muted);
     text-align: center;
     margin-bottom: var(--space-3xl);
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
 }

 /* ========================================
CARD COMPONENTS
======================================== */
 .card {
     background: var(--color-base-surface);
     border-radius: var(--radius-xl);
     padding: var(--space-xl);
     box-shadow: var(--shadow-md);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     border: 1px solid var(--color-border);
 }

 .card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 4px;
     background: var(--gradient-primary);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.4s ease;
 }

 .card:hover {
     transform: translateY(-12px) scale(1.02);
     box-shadow: var(--shadow-theme);
     border-color: transparent;
 }

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

 .card-title {
     font-size: var(--text-2xl);
     font-weight: var(--weight-bold);
     color: var(--color-accent-1);
     margin-bottom: var(--space-md);
     letter-spacing: -0.01em;
 }

 .card-content {
     color: var(--color-base-text-muted);
     line-height: var(--leading-relaxed);
 }

 /* Glass Card Variant */
 .glass-card {
     background: rgba(255, 255, 255, 0.7);
     -webkit-backdrop-filter: blur(12px) saturate(180%);
     backdrop-filter: blur(12px) saturate(180%);
     border: 1px solid rgba(255, 255, 255, 0.3);
     border-radius: var(--radius-2xl);
     padding: var(--space-2xl);
     box-shadow: var(--shadow-lg);
 }

 /* ========================================
GIMP OPTIONS LIST
======================================== */
 .options-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: var(--space-xl);
     margin-top: var(--space-3xl);
 }

 .option-category {
     background: var(--color-base-surface);
     border-radius: var(--radius-lg);
     padding: var(--space-xl);
     border: 1px solid var(--color-border);
     transition: all 0.3s ease;
     position: relative;
 }

 .option-category:hover {
     transform: translateY(-8px);
     box-shadow: var(--shadow-lg);
     border-color: var(--color-accent-2);
 }

 .option-category h4 {
     font-size: var(--text-xl);
     font-weight: var(--weight-semibold);
     color: var(--color-accent-2);
     margin-bottom: var(--space-md);
     display: flex;
     align-items: center;
     gap: var(--space-sm);
 }

 .option-category h4::before {
     content: '';
     width: 8px;
     height: 8px;
     background: var(--gradient-primary);
     border-radius: 50%;
     display: inline-block;
 }

 .option-category ul {
     list-style: none;
     padding-left: 0;
 }

 .option-category li {
     padding: var(--space-sm) 0;
     color: var(--color-base-text);
     position: relative;
     padding-left: var(--space-lg);
 }

 .option-category li::before {
     content: '▸';
     position: absolute;
     left: 0;
     color: var(--color-accent-2);
     font-weight: var(--weight-bold);
 }

 .option-category li ul {
     margin-top: var(--space-xs);
     padding-left: var(--space-md);
 }

 .option-category li ul li {
     font-size: var(--text-sm);
     color: var(--color-base-text-muted);
 }

 /* ========================================
INTRO SECTION
======================================== */
 .intro-section {
     margin-bottom: var(--space-4xl);
 }

 .intro-card {
     background: linear-gradient(135deg, rgba(44, 62, 80, 0.03), rgba(231, 76, 60, 0.03));
     border-radius: var(--radius-2xl);
     padding: var(--space-2xl);
     border: 1px solid var(--color-border);
     position: relative;
     overflow: hidden;
 }

 .intro-card::before {
     content: '';
     position: absolute;
     top: 0;
     right: 0;
     width: 200px;
     height: 200px;
     background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
     pointer-events: none;
 }

 .intro-card p {
     font-size: var(--text-lg);
     line-height: var(--leading-relaxed);
     color: var(--color-base-text);
     position: relative;
     z-index: 1;
 }

 .intro-card a {
     color: var(--color-accent-2);
     text-decoration: none;
     font-weight: var(--weight-semibold);
     border-bottom: 2px solid transparent;
     transition: all 0.3s ease;
 }

 .intro-card a:hover {
     border-bottom-color: var(--color-accent-2);
 }

 /* ========================================
REFERENCES SECTION
======================================== */
 .references-section {
     background: var(--gradient-subtle);
     border-radius: var(--radius-2xl);
     padding: var(--space-2xl);
     margin-top: var(--space-4xl);
 }

 .references-list {
     list-style: none;
     padding: 0;
 }

 .references-list li {
     padding: var(--space-md);
     margin-bottom: var(--space-md);
     background: var(--color-base-surface);
     border-radius: var(--radius-lg);
     border-left: 4px solid var(--color-accent-2);
     transition: all 0.3s ease;
 }

 .references-list li:hover {
     transform: translateX(8px);
     box-shadow: var(--shadow-md);
 }

 .references-list a {
     color: var(--color-accent-2);
     text-decoration: none;
     font-weight: var(--weight-medium);
     transition: color 0.3s ease;
 }

 .references-list a:hover {
     color: var(--color-accent-1);
 }

 /* ========================================
FOOTER
======================================== */
 .footer {
     background: var(--gradient-secondary);
     color: white;
     padding: var(--space-3xl) var(--space-lg);
     margin-top: var(--space-4xl);
 }

 .footer-container {
     max-width: 1400px;
     margin: 0 auto;
     text-align: center;
 }

 .footer-content {
     margin-bottom: var(--space-xl);
 }

 .footer-content p {
     color: rgba(255, 255, 255, 0.9);
     font-size: var(--text-base);
     margin-bottom: var(--space-md);
 }

 .footer-content a {
     color: white;
     text-decoration: none;
     font-weight: var(--weight-semibold);
     border-bottom: 2px solid transparent;
     transition: border-color 0.3s ease;
 }

 .footer-content a:hover {
     border-bottom-color: white;
 }

 .language-section {
     padding-top: var(--space-xl);
     border-top: 1px solid rgba(255, 255, 255, 0.2);
 }

 .language-label {
     font-size: var(--text-sm);
     color: rgba(255, 255, 255, 0.7);
     margin-bottom: var(--space-md);
     text-transform: uppercase;
     letter-spacing: 0.1em;
     font-weight: var(--weight-semibold);
 }

 .language-selector {
     display: flex;
     gap: var(--space-md);
     justify-content: center;
     flex-wrap: wrap;
 }

 .language-button {
     padding: var(--space-sm) var(--space-lg);
     border-radius: var(--radius-full);
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.2);
     color: white;
     text-decoration: none;
     font-size: var(--text-sm);
     font-weight: var(--weight-medium);
     transition: all 0.3s ease;
     -webkit-backdrop-filter: blur(8px);
     backdrop-filter: blur(8px);
 }

 .language-button:hover {
     background: rgba(255, 255, 255, 0.2);
     border-color: rgba(255, 255, 255, 0.4);
     transform: translateY(-2px);
 }

 /* ========================================
RESPONSIVE DESIGN
======================================== */
 @media (max-width: 768px) {
     .navbar-container {
         flex-direction: column;
         gap: var(--space-md);
     }

     .navbar-links {
         flex-direction: column;
         gap: var(--space-sm);
     }

     .hero {
         min-height: 60vh;
         padding: var(--space-3xl) var(--space-md);
     }

     .hero-svg {
         width: 250px;
         height: 250px;
     }

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

     .options-grid {
         grid-template-columns: 1fr;
         gap: var(--space-lg);
     }
 }

 /* ========================================
ACCESSIBILITY
======================================== */
 :focus-visible {
     outline: 3px solid var(--color-accent-2);
     outline-offset: 2px;
     border-radius: var(--radius-sm);
 }

 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.01ms !important;
     }
 }

 @media (prefers-contrast: high) {
     :root {
         --color-base-text: #000000;
         --color-base-bg: #ffffff;
     }
 }

 #langlist {
     list-style: none;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
     gap: var(--space-lg, 1rem);
     padding: 0;
     margin: 0;
 }

 #langlist li {
     position: relative;
 }

 #langlist a {
     text-decoration: none;
     color: var(--text-muted, inherit);
     font-size: var(--text-sm, 0.95rem);
     letter-spacing: 0.08em;
     padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
     border-radius: 8px;
     transition: all 0.3s ease;
     display: block;
     background: rgba(212, 165, 116, 0.06);
     border: 1px solid rgba(212, 165, 116, 0.15);
     white-space: nowrap;
 }

 #langlist a:hover {
     background: rgba(212, 165, 116, 0.12);
     border-color: rgba(212, 165, 116, 0.3);
     color: var(--baltic-deep-amber, currentColor);
     transform: translateY(-2px);
     box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.12));
 }

 #langlist .highlight a {
     background: linear-gradient(135deg, var(--baltic-deep-teal, #0f766e), var(--baltic-amber, #d4a574));
     color: var(--baltic-cream, #fffaf0);
     border-color: var(--baltic-deep-amber, #b7791f);
 }
