/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
    --dark-blue: #0f1419;
    --darker-blue: #1a1f2e;
    --medium-blue: #1e2a3a;
    --accent-blue: #2d4263;
    --light-blue: #4a6fa5;
    --deep-orange: #ea580c;
    --white: #ffffff;
    --light-gray: #e8eaed;
    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark-blue);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 111, 165, 0.1);
    z-index: 1000;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid rgba(45, 66, 99, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--light-gray);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--deep-orange);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--deep-orange), rgba(234, 88, 12, 0.3));
    transition: width 0.3s ease;
    border-radius: 1px;
}

nav a:hover::after {
    width: 100%;
}

/* Nav CTA Button */
nav a.nav-cta {
    background: linear-gradient(135deg, var(--deep-orange) 0%, #d4520a 100%);
    color: white;
    padding: 0.45rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.25);
}

nav a.nav-cta:hover {
    background: linear-gradient(135deg, #f06418 0%, var(--deep-orange) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

nav a.nav-cta::after {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 5rem;
}

/* Atmospheric radial glows */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 25% 50%, rgba(234, 88, 12, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 70% 30%, rgba(74, 111, 165, 0.05) 0%, transparent 60%),
        linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 50%, #0d1117 100%);
    z-index: 0;
}

/* Subtle dot grid pattern */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74, 111, 165, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
    isolation: isolate;
    animation: hero-fade-in 1s ease-out both;
}

/* Blurred rotating glow behind headshot */
.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--deep-orange), var(--light-blue), var(--deep-orange));
    opacity: 0.2;
    animation: glow-rotate 10s linear infinite;
    filter: blur(20px);
    z-index: -2;
}

/* Sharp gradient ring border */
.hero-image::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--deep-orange), var(--light-blue), var(--accent-blue), var(--deep-orange));
    z-index: -1;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-blue);
    position: relative;
    z-index: 1;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(234, 88, 12, 0.15);
}

.hero-text {
    flex: 1;
    min-width: 320px;
    text-align: left;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    animation: hero-fade-up 0.8s ease-out 0.15s both;
}

.hero-text h2 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: var(--deep-orange);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.75rem;
    animation: hero-fade-up 0.8s ease-out 0.3s both;
}

.hero-text .tagline {
    font-size: 1.2rem;
    color: rgba(232, 234, 237, 0.7);
    font-style: italic;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    animation: hero-fade-up 0.8s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: hero-fade-up 0.8s ease-out 0.5s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-orange) 0%, #d4520a 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f06418 0%, var(--deep-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-gray);
    border: 2px solid rgba(74, 111, 165, 0.4);
}

.btn-secondary:hover {
    border-color: var(--light-blue);
    color: var(--white);
    background-color: rgba(74, 111, 165, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes hero-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SECTIONS (GLOBAL)
   ============================================ */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--deep-orange), rgba(234, 88, 12, 0.2));
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    background-color: var(--darker-blue);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.about-content {
    margin-top: 3rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--light-gray);
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-subheader {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--light-blue);
    font-style: italic;
    text-align: center;
}

.experience-item {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border-left: 4px solid var(--deep-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.experience-item h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.experience-item h4 {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.experience-item .date {
    color: rgba(74, 111, 165, 0.8);
    font-style: italic;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.experience-item ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.experience-item li {
    margin-bottom: 0.9rem;
    color: var(--light-gray);
    line-height: 1.7;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projects {
    background-color: var(--darker-blue);
    position: relative;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.featured-project {
    margin-top: 3rem;
    background-color: var(--medium-blue);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease;
}

.featured-project:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.project-header {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.project-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.project-header h3 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.project-header p {
    font-size: 1.05rem;
    opacity: 0.85;
    font-weight: 400;
}

.project-banner {
    width: 100%;
    height: auto;
    display: block;
}

.project-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video banner: styled placeholder shows until pillowfort-gameplay.mp4 exists.
   The <video> layers on top and is transparent when its source is missing, so
   the caption + gradient behind it stay visible and the layout never breaks. */
.video-banner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--medium-blue) 0%, var(--darker-blue) 100%);
}

.video-banner .banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: transparent;
}

.video-banner .video-placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.project-stats {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background-color: var(--darker-blue);
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--deep-orange);
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: rgba(232, 234, 237, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.project-content {
    padding: 2.5rem 3rem;
}

.project-content h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contributions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contribution-item {
    padding: 1.25rem 1.5rem;
    background-color: var(--darker-blue);
    border-radius: 10px;
    border-left: 3px solid var(--deep-orange);
    transition: transform 0.3s ease, background-color 0.3s ease;
    line-height: 1.7;
    color: var(--light-gray);
}

.contribution-item:hover {
    transform: translateX(4px);
    background-color: rgba(26, 31, 46, 0.8);
}

.contribution-item strong {
    color: var(--light-blue);
    font-weight: 600;
}

/* ============================================
   TECHNICAL PROJECTS SECTION
   ============================================ */
#tech-projects {
    position: relative;
}

#tech-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

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

.tech-project-card {
    padding: 2.25rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border-left: 4px solid var(--deep-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tech-project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.tech-project-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.tech-project-card .date {
    color: rgba(74, 111, 165, 0.8);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background-color: rgba(45, 66, 99, 0.5);
    color: var(--light-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(74, 111, 165, 0.3);
}

.tech-project-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.tech-project-card li {
    margin-bottom: 0.7rem;
    color: var(--light-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-description {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.15rem;
    color: var(--light-blue);
    font-style: italic;
    font-weight: 400;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* Zelena Featured Showcase */
.zelena-feature {
    margin-bottom: 2.5rem;
}

.zelena-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.5rem 3rem;
    background-color: var(--darker-blue);
}

.zelena-tags .tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.zelena-description {
    color: var(--light-gray);
    line-height: 1.85;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Systems Chip Grid */
.systems-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.system-chip {
    display: inline-block;
    padding: 0.45rem 1rem;
    background-color: rgba(45, 66, 99, 0.4);
    color: var(--light-gray);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid rgba(74, 111, 165, 0.25);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.system-chip:hover {
    border-color: var(--deep-orange);
    background-color: rgba(234, 88, 12, 0.08);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
    background-color: var(--dark-blue);
    padding: 6rem 2rem;
    position: relative;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--medium-blue);
    border-radius: 14px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-top: 3px solid var(--deep-orange);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(234, 88, 12, 0.1);
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--light-gray);
    line-height: 1.85;
    margin-bottom: 2rem;
    position: relative;
}

.quote-wrapper {
    position: relative;
}

.quote-wrapper::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--deep-orange);
    position: absolute;
    top: -30px;
    left: -20px;
    opacity: 0.25;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.testimonial-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(74, 111, 165, 0.4);
    transition: border-color 0.3s ease;
}

.testimonial-card:hover .testimonial-photo {
    border-color: var(--deep-orange);
}

.testimonial-info h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-info p {
    color: var(--light-blue);
    font-size: 0.9rem;
    font-weight: 400;
}

.linkedin-button-container {
    text-align: center;
    margin-top: 3rem;
}

.linkedin-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--deep-orange) 0%, #d4520a 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

.linkedin-button:hover {
    background: linear-gradient(135deg, #f06418 0%, var(--deep-orange) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

/* ============================================
   COMPANIES SECTION
   ============================================ */
.companies-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.companies-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

.companies-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--deep-orange), rgba(234, 88, 12, 0.2));
    border-radius: 2px;
}

.companies-section h2:first-child {
    margin-top: 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.company-item {
    padding: 1.5rem;
    background-color: var(--medium-blue);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    border: 1px solid rgba(45, 66, 99, 0.3);
}

.company-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(234, 88, 12, 0.2);
}

.company-item h5 {
    color: var(--light-gray);
    font-size: 1rem;
    font-weight: 500;
    margin: auto;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills {
    background-color: var(--darker-blue);
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    padding: 2.25rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border: 1px solid rgba(45, 66, 99, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(234, 88, 12, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--light-gray);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 400;
    font-size: 0.95rem;
}

.skill-category li::before {
    content: '\25B9';
    position: absolute;
    left: 0;
    color: var(--deep-orange);
    font-weight: bold;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-item {
    margin-top: 3rem;
    padding: 2.75rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border-left: 4px solid var(--deep-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-item h4 {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.degree-section {
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(45, 66, 99, 0.5);
}

.certificates-section h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 700;
}

.education-item ul {
    list-style: none;
    margin-top: 1rem;
}

.education-item li {
    padding: 0.5rem 0;
    color: var(--light-gray);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.education-item li::before {
    content: '\25B9';
    position: absolute;
    left: 0;
    color: var(--deep-orange);
    font-weight: bold;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    background-color: var(--dark-blue);
    text-align: center;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.contact-content {
    margin-top: 3rem;
}

.contact-content p {
    color: var(--light-gray);
}

.contact-intro {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto 3rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    color: var(--light-gray);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(45, 66, 99, 0.5);
    border-radius: 10px;
    background-color: rgba(26, 31, 46, 0.6);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(232, 234, 237, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--medium-blue);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light-gray);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(45, 66, 99, 0.3);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--deep-orange);
    border-color: rgba(234, 88, 12, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(45, 66, 99, 0.3);
}

footer p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-tagline {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

/* ============================================
   WRITING SECTION (homepage + /writing/ archive)
   ============================================ */
#writing {
    background-color: var(--darker-blue);
    position: relative;
}

#writing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.2), transparent);
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Whole card is a link — mirrors .tech-project-card visuals */
.writing-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border-left: 4px solid var(--deep-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.writing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.writing-card .tech-tag {
    align-self: flex-start;
    margin-bottom: 1.1rem;
}

.writing-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.writing-card:hover h3 {
    color: var(--deep-orange);
}

.writing-hook {
    color: var(--light-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.writing-meta {
    margin-top: auto;
    color: rgba(232, 234, 237, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Placeholder card while the archive is small — remove once there are 2+ real posts */
.writing-card-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem;
    background-color: rgba(30, 42, 58, 0.35);
    border-radius: 12px;
    border: 1px dashed rgba(74, 111, 165, 0.35);
    color: rgba(232, 234, 237, 0.5);
    font-style: italic;
    line-height: 1.7;
    text-align: center;
}

.writing-card-placeholder a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.writing-card-placeholder a:hover {
    color: var(--deep-orange);
}

.writing-more {
    margin-top: 2.5rem;
    text-align: right;
}

.writing-more a {
    color: var(--deep-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.writing-more a:hover {
    color: #f06418;
    text-decoration: underline;
}

/* ============================================
   POST PAGES (/writing/*.html)
   ============================================ */
.post-topbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 111, 165, 0.1);
    z-index: 1000;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid rgba(45, 66, 99, 0.3);
}

.post-topbar a {
    text-decoration: none;
    color: var(--light-gray);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.post-topbar a:hover {
    color: var(--deep-orange);
}

.post-topbar .topbar-current {
    color: var(--light-blue);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.post-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 9rem 1.5rem 5rem;
}

.post-article .tech-tag {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.post-article h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.post-meta {
    color: rgba(232, 234, 237, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

.post-article h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 3rem 0 1.25rem;
}

.post-article p {
    color: var(--light-gray);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

.post-article a {
    color: var(--light-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.post-article a:hover {
    color: var(--deep-orange);
}

.post-article blockquote {
    margin: 2.5rem 0;
    padding: 0.5rem 0 0.5rem 1.75rem;
    border-left: 4px solid var(--deep-orange);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
}

.post-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.3), transparent);
    margin: 3.5rem 0 2.5rem;
}

.post-signature {
    padding: 1.75rem 2rem;
    background-color: var(--medium-blue);
    border-radius: 12px;
    border-left: 4px solid var(--deep-orange);
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 0.98rem;
}

.post-signature p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* Archive page (/writing/index.html) */
.writing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
}

.writing-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

.writing-page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--deep-orange), rgba(234, 88, 12, 0.2));
    border-radius: 2px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   SKIP LINK & ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--deep-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--deep-orange);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-text h2 {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }

    .hero-content {
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .cta-buttons {
        justify-content: center;
    }

    nav ul {
        gap: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .project-header {
        padding: 2rem;
    }

    .project-stats {
        padding: 2rem;
    }

    .project-content {
        padding: 2rem;
    }

    .project-banner img {
        height: 250px;
        object-fit: cover;
    }

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

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

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }

    .companies-section {
        padding: 4rem 1.5rem;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .company-item {
        padding: 1.25rem;
    }

    .zelena-tags {
        padding: 1.25rem 2rem;
    }

    .zelena-description {
        font-size: 0.95rem;
    }

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

    .writing-more {
        text-align: center;
    }

    .post-topbar {
        padding: 1rem 1.25rem;
    }

    .post-article {
        padding: 7rem 1.25rem 4rem;
    }

    .post-article h1 {
        font-size: 2rem;
    }

    .post-article blockquote {
        font-size: 1.15rem;
        padding-left: 1.25rem;
    }

    .post-signature {
        padding: 1.5rem 1.5rem;
    }

    .writing-page {
        padding: 8rem 1.5rem 4rem;
    }
}
