:root {
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --dark-bg: #050505;
    --card-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .display-font {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.project-card {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1);
}

.tech-tag {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.grid-bg {
    background-image:
            linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

.grid-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--dark-bg) 100%);
    pointer-events: none;
    z-index: 5;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.15) 0%, transparent 50%);
}

.skill-bar {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    height: 100%;
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(78px, 9999px, 20px, 0); }
    40% { clip: rect(15px, 9999px, 63px, 0); }
    60% { clip: rect(89px, 9999px, 12px, 0); }
    80% { clip: rect(45px, 9999px, 78px, 0); }
    100% { clip: rect(62px, 9999px, 34px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    20% { clip: rect(12px, 9999px, 45px, 0); }
    40% { clip: rect(78px, 9999px, 23px, 0); }
    60% { clip: rect(34px, 9999px, 67px, 0); }
    80% { clip: rect(91px, 9999px, 12px, 0); }
    100% { clip: rect(56px, 9999px, 89px, 0); }
}

.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: 40;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.5);
    color: var(--neon-cyan);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.hero-buttons a {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.stats-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,243,255,0.2) 0%, transparent 50%);
    filter: blur(40px);
}

.stats-card {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.text-cyan {
    color: var(--neon-cyan);
}

.text-purple {
    color: var(--neon-purple);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

section {
    padding: 8rem 0;
    position: relative;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    color: #9ca3af;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: #fff;
}

.stat-box {
    padding: 1.5rem;
    border-radius: 1rem;
}

.skills-section {
    background: rgba(255, 255, 255, 0.02);
}

.skills-gradient {
    background: linear-gradient(to bottom, transparent, rgba(0,243,255,0.05), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.skill-category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.skill-icon-cyan {
    background: rgba(0,243,255,0.2);
    color: var(--neon-cyan);
}

.skill-icon-purple {
    background: rgba(188,19,254,0.2);
    color: var(--neon-purple);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.skill-bar-bg {
    height: 0.5rem;
    background: #1f2937;
    border-radius: 9999px;
    overflow: hidden;
}

.skill-bar-purple {
    background: linear-gradient(90deg, var(--neon-purple) 0%, #ec4899 100%);
}

.skill-bar-pink {
    background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.project-badges {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid;
}

.badge-cyan {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.3);
}

.badge-purple {
    background: rgba(188, 19, 254, 0.1);
    color: var(--neon-purple);
    border-color: rgba(188, 19, 254, 0.3);
}

.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-gray {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: var(--neon-cyan);
}

.project-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.project-link:hover {
    background: rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
}

.project-link-secondary:hover {
    background: rgba(188, 19, 254, 0.2);
    color: var(--neon-purple);
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.2;
}

.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-gradient {
    background: linear-gradient(to top, rgba(0,243,255,0.1), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info {
    text-align: left;
}

.contact-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

.contact-value {
    font-weight: 600;
}

.contact-icon-cv {
    background: rgba(16,185,129,0.2);
    color: #10b981;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-year {
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.75rem;
    color: #4b5563;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.nav-brand span {
    color: var(--neon-cyan);
}

.absolute-inset {
    position: absolute;
    inset: 0;
}

.relative-z10 {
    position: relative;
    z-index: 10;
}

.mb-16 {
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* PROJEKT MODAL STYLES */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.project-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 3fr 1fr;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-content {
    display: contents;
}

.modal-media-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #000;
    height: 100%;
    overflow: hidden;
}

.media-main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

.media-display {
    flex: 1;
    min-height: 0;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-display img,
.media-display video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.media-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.media-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.media-nav-btn:hover {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
}

.media-counter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    color: #9ca3af;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.media-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    flex-shrink: 0;
    max-height: 80px;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

.media-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.media-thumbnails::-webkit-scrollbar-track {
    background: #000;
}

.media-thumbnails::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.media-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    background: #111;
}

.media-thumb:hover {
    border-color: rgba(0, 243, 255, 0.5);
}

.media-thumb.active {
    border-color: var(--neon-cyan);
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumb.video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
}

.modal-info-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    height: 100%;
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.modal-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.modal-description {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.9rem;
    overflow-y: auto;
    max-height: 200px;
}

.modal-meta {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 1rem;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tag {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.media-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.media-indicator svg {
    width: 16px;
    height: 16px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .md-show {
        display: block !important;
    }
}

/* MODAL RESPONSIVE */
@media (max-width: 968px) {
    .modal-container {
        grid-template-columns: 1fr;
        max-height: 98vh;
        width: 100%;
    }

    .modal-media-section {
        padding: 1rem;
        max-height: 60vh;
        min-height: 0;
    }

    .media-display {
        max-height: calc(60vh - 140px);
        min-height: 200px;
    }

    .media-thumbnails {
        max-height: 70px;
        padding: 0.4rem;
    }

    .media-thumb {
        width: 80px;
        height: 50px;
    }

    .modal-info-section {
        max-height: 38vh;
        padding: 1rem;
        gap: 0.75rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-description {
        max-height: 120px;
        font-size: 0.85rem;
    }

    .modal-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .modal-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .project-modal {
        padding: 0.5rem;
    }

    .modal-container {
        border-radius: 0.5rem;
        max-height: 100vh;
    }

    .modal-media-section {
        padding: 0.75rem;
        max-height: 55vh;
    }

    .media-display {
        max-height: calc(55vh - 120px);
        min-height: 150px;
    }

    .media-nav {
        padding: 0.4rem;
        gap: 0.75rem;
    }

    .media-nav-btn {
        width: 32px;
        height: 32px;
    }

    .media-thumbnails {
        max-height: 60px;
        gap: 0.35rem;
    }

    .media-thumb {
        width: 70px;
        height: 45px;
    }

    .modal-info-section {
        max-height: 45vh;
        padding: 0.75rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-description {
        max-height: 100px;
        line-height: 1.5;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-btn {
        width: 100%;
        padding: 0.6rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .modal-media-section {
        max-height: 50vh;
    }

    .media-display {
        max-height: calc(50vh - 100px);
    }

    .media-thumb {
        width: 60px;
        height: 40px;
    }

    .modal-info-section {
        max-height: 50vh;
    }
}