/* ==========================================================================
   CSS Design System - Nelke AI Consulting
   ========================================================================== */

:root {
    --bg-dark: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.06);
    --border-glow: rgba(229, 0, 19, 0.15);
    
    --text-primary: #262626;
    --text-secondary: #5c5c5c;
    --text-muted: #7c7c7c;
    
    /* Harmonious gradients using ONLY logo colors */
    --gradient-primary: linear-gradient(135deg, #E50013 0%, #2B9F9F 100%);
    --gradient-accent: linear-gradient(135deg, #2B9F9F 0%, #7C7C7C 100%);
    --gradient-glow: radial-gradient(circle, rgba(229, 0, 19, 0.04) 0%, rgba(255, 255, 255, 0) 70%);

    --color-indigo: #2B9F9F; /* Replaced Indigo with Teal from logo */
    --color-purple: #E50013; /* Red from logo */
    --color-cyan: #2B9F9F; /* Teal from logo */
    --color-gray: #7C7C7C; /* Gray from logo */
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.glow-1 {
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(43, 159, 159, 0.15) 0%, rgba(0, 0, 0, 0) 80%);
}

.glow-2 {
    top: 40%;
    left: -10%;
    background: radial-gradient(circle, rgba(124, 124, 124, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
}

.glow-3 {
    bottom: 5%;
    right: 10%;
    background: radial-gradient(circle, rgba(43, 159, 159, 0.12) 0%, rgba(0, 0, 0, 0) 80%);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: 0.95rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-purple);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 0, 19, 0.35);
}

.btn-primary:hover {
    background: #c30010;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 0, 19, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    background: rgba(43, 159, 159, 0.1);
    color: var(--color-indigo);
    border: 1px solid rgba(43, 159, 159, 0.2);
    margin-bottom: 1.5rem;
}

.badge-success {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-cyan);
    border-color: rgba(20, 184, 166, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

/* Header & Navigation Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 0.8rem 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.logo-text-bold {
    font-weight: 700;
    color: var(--color-purple); /* Red color from logo */
}

.logo-text-light {
    color: var(--text-secondary);
}

.logo-link:hover .logo-img {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(229, 0, 19, 0.25));
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-indigo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.25rem;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.neural-net-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(43, 159, 159, 0.15));
}

/* Pulsing Neural Net Nodes & Animations */
.node {
    fill: var(--bg-dark);
    stroke-width: 3px;
    transition: var(--transition-smooth);
}

.node-input {
    stroke: var(--color-cyan);
    animation: pulseGlowCyan 3s infinite alternate;
}

.node-hidden-1, .node-hidden-3 {
    stroke: var(--color-indigo);
    animation: pulseGlowIndigo 4s infinite alternate;
}

.node-hidden-2 {
    stroke: var(--color-purple);
    animation: pulseGlowPurple 3s infinite alternate;
}

.node-output {
    stroke: var(--color-cyan);
    animation: pulseGlowCyan 3s infinite alternate-reverse;
}

@keyframes pulseGlowCyan {
    0% { filter: drop-shadow(0 0 2px var(--color-cyan)); r: 9px; }
    100% { filter: drop-shadow(0 0 8px var(--color-cyan)); r: 11px; }
}

@keyframes pulseGlowIndigo {
    0% { filter: drop-shadow(0 0 2px var(--color-indigo)); r: 11px; }
    100% { filter: drop-shadow(0 0 10px var(--color-indigo)); r: 13px; }
}

@keyframes pulseGlowPurple {
    0% { filter: drop-shadow(0 0 2px var(--color-purple)); r: 13px; }
    100% { filter: drop-shadow(0 0 12px var(--color-purple)); r: 15px; }
}

/* Pulsing Lines */
.pulse-line {
    stroke-dasharray: 20, 100;
    stroke-dashoffset: 0;
    animation: animateDash 8s linear infinite;
}

.line-1, .line-3, .line-5 {
    animation-duration: 6s;
}

.line-2, .line-4, .line-6 {
    animation-duration: 9s;
    animation-direction: reverse;
}

@keyframes animateDash {
    0% { stroke-dashoffset: 120; }
    100% { stroke-dashoffset: 0; }
}

/* Floating particle details */
.particle {
    offset-path: path("M 100 250 L 250 100 L 400 250 L 250 400 Z");
    animation: orbit 14s linear infinite;
}

.particle-2 {
    offset-path: path("M 100 250 L 250 250 L 400 250 L 250 400 Z");
    animation: orbit 10s linear infinite reverse;
}

@keyframes orbit {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

/* Glass Shield Metric */
.glass-shield {
    position: absolute;
    bottom: -10px;
    left: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float 4s ease-in-out infinite;
}

.shield-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Sections Header styles */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Services / Leistungen Section */
.services {
    padding: 6rem 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(43, 159, 159, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-indigo);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(43, 159, 159, 0.2);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
    transition: var(--transition-bounce);
}

.service-icon {
    width: 24px;
    height: 24px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '→';
    color: var(--color-cyan);
    font-weight: 700;
}

/* References / Referenzen Section */
.references {
    padding: 6rem 0;
    position: relative;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 0, 19, 0.2);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.ref-metric-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.2);
}

.ref-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ref-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.ref-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    padding-right: 3rem; /* Leave room for absolute badge */
}

.ref-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ref-highlights {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    margin-top: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ref-highlight-item {
    color: var(--text-secondary);
}

.ref-highlight-item strong {
    color: #ffffff;
}

/* About Me / Über Mich Section */
.about-me {
    padding: 4rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    border: 3px solid rgba(43, 159, 159, 0.2);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-image-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(43, 159, 159, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--color-indigo);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.values-grid {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.value-icon-circle {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 2px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.value-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.value-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Contact / Kontakt Section */
.contact {
    padding: 6rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-indigo);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(43, 159, 159, 0.08);
}

.form-checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.form-checkbox-group input {
    margin-top: 3px;
    cursor: pointer;
}

.form-checkbox-group a {
    color: var(--color-indigo);
    text-decoration: underline;
}

.form-checkbox-group a:hover {
    color: var(--color-purple);
}

/* Spinner & Button Loader styling */
.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.form-feedback {
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.form-feedback.success {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Info Column */
.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 24px;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.info-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.info-icon {
    width: 20px;
    height: 20px;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-item a.info-value:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-row .badge {
    margin-bottom: 0;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: #f1f5f9;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--color-indigo);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Modals Overlay (Impressum & Datenschutz)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-bounce);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
}

.modal-body h4 {
    font-size: 1rem;
    margin: 1.2rem 0 0.5rem 0;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

/* Custom Scrollbar for Modal and Page */
.modal-content::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.modal-content::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-column {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-desc {
        margin: 0 auto;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Mobile Nav Styles */
    .mobile-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        padding: 8rem 2rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        transition: var(--transition-smooth);
        z-index: 100;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        display: none; /* Hide primary button on mobile in favor of menu or show smaller */
    }
    
    .nav-actions .mobile-toggle {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .info-card {
        padding: 2rem;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }
}
