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

:root {
    --primary-color: #5B87FF;
    --secondary-color: #7B68EE;
    --accent-color: #FF6B6B;
    --bg-dark: #0A0B0E;
    --bg-secondary: #13141A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A4B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #4CAF50;
    --warning-color: #FFA726;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        #0A0B0E,
        #1a1b3a,
        #0f1419,
        #1e1e3f,
        #0A0B0E
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at var(--gradient1-pos, 50% 0%), rgba(91, 135, 255, var(--gradient1-opacity, 0.15)) 0%, transparent 50%),
                radial-gradient(ellipse at var(--gradient2-pos, 100% 100%), rgba(123, 104, 238, var(--gradient2-opacity, 0.1)) 0%, transparent 50%),
                radial-gradient(ellipse at var(--gradient3-pos, 0% 100%), rgba(255, 107, 107, var(--gradient3-opacity, 0.08)) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    will-change: background;
}

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

@keyframes cursor-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.cursor-blink {
    animation: cursor-blink 1s infinite;
}

/* Construction Row in Navbar */
.construction-row {
    padding: 8px 0;
}

.navbar.compact .construction-row {
    padding: 4px 0 2px 0;
}

.construction-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: 12px;
    color: #FF6B6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.construction-icon {
    font-size: 14px;
    animation: bounce 1s ease-in-out infinite;
}

.construction-icon:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(10, 11, 14, 0.7);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.compact {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(10, 11, 14, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar.compact:hover {
    background: rgba(10, 11, 14, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar.compact .nav-container {
    padding: 0;
    max-width: none;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.navbar.compact .nav-brand {
    display: none;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.compact .nav-menu {
    opacity: 1;
    pointer-events: auto;
    gap: 1rem;
    margin: 0;
    align-items: center;
    height: 100%;
}

.navbar.compact .nav-link {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar.compact .nav-link::after {
    display: none;
}

.navbar.compact .nav-link.active {
    color: var(--primary-color);
}

.navbar.compact .contact-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: inherit;
}


.contact-cta:hover {
    box-shadow: 0 0 20px rgba(91, 135, 255, 0.4);
}


.contact-cta::after {
    display: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.25rem; /* Prevents layout shift */
    display: flex;
    align-items: center;
}

.rotating-text {
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
    display: inline-block;
    min-width: 1px; /* Ensures cursor shows even when empty */
}

.rotating-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 135, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Legal Modals */
#impressum-modal .modal-content,
#datenschutz-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#impressum-modal .modal-body,
#datenschutz-modal .modal-body {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
    padding: 2rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#impressum-modal .modal-body::-webkit-scrollbar,
#datenschutz-modal .modal-body::-webkit-scrollbar {
    display: none;
}

#impressum-modal h2,
#datenschutz-modal h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#impressum-modal h3,
#datenschutz-modal h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#impressum-modal p,
#datenschutz-modal p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Code Window */
.code-window {
    background: rgba(19, 20, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    transition: box-shadow 0.6s ease;
}

.code-window:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #FF5F56;
}

.code-dot.yellow {
    background: #FFBD2E;
}

.code-dot.green {
    background: #27C93F;
}

.code-content {
    padding: 2rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-keyword {
    color: #FF79C6;
}

.code-variable {
    color: #8BE9FD;
}

.code-property {
    color: #50FA7B;
}

.code-string {
    color: #F1FA8C;
}

.code-boolean {
    color: #BD93F9;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

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

/* Projects Section */
.projects {
    background: transparent;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    overflow: hidden;
    cursor: pointer;
}

/* Individual project glows - all using blue theme */
.project-card {
    box-shadow: 0 4px 20px rgba(91, 135, 255, 0.08),
                0 0 40px rgba(91, 135, 255, 0.03);
    animation: projectGlow 4s ease-in-out infinite;
}

#lgka-card {
    animation-delay: 0s;
}

#adminhub-card {
    animation-delay: 1.3s;
}

#slidexx-card {
    animation-delay: 2.6s;
}

@keyframes projectGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(91, 135, 255, 0.08),
                    0 0 40px rgba(91, 135, 255, 0.03);
    }
    50% {
        box-shadow: 0 4px 30px rgba(91, 135, 255, 0.12),
                    0 0 60px rgba(91, 135, 255, 0.05);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 135, 255, 0.5);
    box-shadow: 0 6px 40px rgba(91, 135, 255, 0.2),
                0 0 80px rgba(91, 135, 255, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-badge.live {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.project-badge.beta {
    background: rgba(255, 167, 38, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.project-badge.development {
    background: rgba(123, 104, 238, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.project-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.tech-tag {
    background: rgba(91, 135, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

/* Tech Stack Section */
.tech-stack {
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Tech Grid - Simplified Layout */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.tech-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tech-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.tech-item:hover {
    color: var(--text-primary);
    background: rgba(91, 135, 255, 0.1);
    border-color: rgba(91, 135, 255, 0.3);
}

.tech-showcase {
    margin-top: 3rem;
}

.tech-flow {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tech-group {
    position: relative;
}

.tech-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.tech-group-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.6;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.tech-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(91, 135, 255, 0.1) 0%, 
        rgba(123, 104, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 135, 255, 0.15);
    border-color: rgba(91, 135, 255, 0.3);
}

.tech-pill:hover::before {
    opacity: 1;
}

.tech-pill[data-level="expert"] {
    border-color: rgba(91, 135, 255, 0.3);
    background: rgba(91, 135, 255, 0.05);
}

.tech-pill[data-level="advanced"] {
    border-color: rgba(123, 104, 238, 0.3);
    background: rgba(123, 104, 238, 0.05);
}

.tech-pill[data-level="intermediate"] {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

.tech-logo {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.8;
}

.tech-pill span {
    position: relative;
    z-index: 1;
}

/* Tech Metrics */
.tech-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Group-specific styling */
.tech-group.ai-ml .tech-group-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tech-group.development .tech-group-title::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.tech-group.infrastructure .tech-group-title::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* About Section */
.about {
    background: transparent;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.about-personal {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.about-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(91, 135, 255, 0.05) 0%, 
        rgba(255, 107, 107, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(91, 135, 255, 0.1);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.about-card:nth-child(2) .card-icon {
    animation-delay: 1s;
}

.about-card:nth-child(3) .card-icon {
    animation-delay: 2s;
}

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

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-quote {
    margin-top: 2rem;
    text-align: center;
}

.about-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.about-quote blockquote::before,
.about-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    color: rgba(91, 135, 255, 0.2);
    position: absolute;
}

.about-quote blockquote::before {
    top: 0;
    left: 0;
}

.about-quote blockquote::after {
    bottom: 0;
    right: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(91, 135, 255, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* New Compact Contact Section */
.contact-content {
    background: linear-gradient(135deg, 
                rgba(91, 135, 255, 0.03) 0%, 
                rgba(255, 255, 255, 0.02) 50%, 
                rgba(123, 104, 238, 0.03) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(91, 135, 255, 0.1),
                0 0 80px rgba(91, 135, 255, 0.05),
                inset 0 0 20px rgba(91, 135, 255, 0.02);
    animation: contactGlow 3s ease-in-out infinite;
}


@keyframes contactGlow {
    0%, 100% {
        box-shadow: 0 4px 30px rgba(91, 135, 255, 0.1),
                    0 0 80px rgba(91, 135, 255, 0.05),
                    inset 0 0 20px rgba(91, 135, 255, 0.02);
    }
    50% {
        box-shadow: 0 4px 40px rgba(91, 135, 255, 0.15),
                    0 0 100px rgba(91, 135, 255, 0.08),
                    inset 0 0 30px rgba(91, 135, 255, 0.03);
    }
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    min-width: 140px;
}

.contact-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(91, 135, 255, 0.3);
}

.contact-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 135, 255, 0.4);
}

.contact-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.copy-indicator {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.contact-btn:hover .copy-indicator {
    bottom: -45px;
    opacity: 1;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
}

/* Modal */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern for modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(91, 135, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(123, 104, 238, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 107, 107, 0.06) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatPattern {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

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

.modal-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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









/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        background: rgba(10, 11, 14, 0.9);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        padding: 0.05rem 0.5rem;
        justify-content: center;
        min-height: auto;
    }

    .nav-brand {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        gap: 0.125rem;
        margin: 0;
    }

    .nav-link {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        line-height: 1;
    }

    .nav-link.contact-cta {
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
        border-radius: 4px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-code {
        display: none;
    }
    
    .about-intro {
        font-size: 1.25rem;
    }
    
    .about-personal {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .about-quote blockquote {
        font-size: 1.125rem;
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tech Stack Mobile */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-list {
        gap: 0.5rem;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    /* Buttons Mobile */
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    /* Tech Metrics Mobile */
    .tech-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

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



@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        width: 95%;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero .container {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Even smaller navbar for very small screens */
    .nav-container {
        padding: 0.025rem 0.375rem;
        justify-content: center;
    }

    .nav-menu {
        gap: 0.1rem;
    }

    .nav-link {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
    }

    .nav-link.contact-cta {
        padding: 0.1rem 0.25rem;
        font-size: 0.5rem;
        border-radius: 3px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .tech-metrics {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.75rem;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
        border-color: var(--border-color);
        box-shadow: 0 4px 20px rgba(91, 135, 255, 0.08),
                    0 0 40px rgba(91, 135, 255, 0.03);
    }

    .project-card:hover::before {
        opacity: 0;
    }

    .about-card:hover {
        transform: none;
        border-color: var(--border-color);
    }

    .about-card:hover::before {
        opacity: 0;
    }

    .contact-card:hover {
        transform: none;
        border-color: var(--border-color);
    }

    .contact-card:hover::before {
        opacity: 0;
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(91, 135, 255, 0.3);
    }

    .btn-secondary:hover {
        background: var(--bg-card);
        border-color: var(--border-color);
    }

    .contact-btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(91, 135, 255, 0.3);
    }

    .tech-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .footer-link:hover {
        color: var(--text-secondary);
    }

    .back-link:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--border-color);
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-link:hover {
        color: var(--text-secondary);
        background: transparent;
        border-left-color: transparent;
    }

    .mobile-contact-cta:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transform: none;
        box-shadow: none;
    }
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Email Copy Button Styles */
.email-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.social-link.email-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: inherit;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link.email-copy-btn:hover {
    color: var(--primary-color);
}

.contact-card.email-copy-btn {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.contact-card.email-copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.contact-card.email-copy-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 135, 255, 0.2);
}

.contact-card.email-copy-btn:hover::before {
    opacity: 1;
}
