* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --dark-grey: #2a2a2a;
    --medium-grey: #4a4a4a;
    --light-grey: #8a8a8a;
    --white: #ffffff;
    --accent: #ffffff;
}

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

/* Accessibility Controls */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--white);
    color: var(--primary-black);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

.accessibility-controls {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 1000;
}

.accessibility-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.accessibility-toggle:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    border-radius: 4px;
}

.controls-content {
    position: absolute;
    top: 54px;
    right: 0;
    background: rgba(42, 42, 42, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    display: none;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.controls-content.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.controls-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-switcher {
    display: flex;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.accessibility-btn, .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.accessibility-btn:hover, .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.accessibility-btn:focus, .lang-btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-black);
}

/* High Contrast Mode */
body.high-contrast {
    --primary-black: #000000;
    --secondary-black: #000000;
    --white: #ffffff;
    --light-grey: #ffffff;
    filter: contrast(150%);
}

body.high-contrast .accessibility-controls {
    background: #000000;
    border: 2px solid #ffffff;
}

/* Reduced Motion */
body.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Font Size Controls */
body.font-large {
    font-size: 1.2em;
}

body.font-larger {
    font-size: 1.4em;
}

body.font-largest {
    font-size: 1.6em;
}

/* Visually Hidden (Screen Reader Only) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Abstract Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -100px;
    animation-delay: -5s;
    animation-direction: reverse;
}

.floating-shape:nth-child(3) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: 30%;
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: -15s;
    animation-direction: reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -100px) rotate(90deg);
    }
    50% {
        transform: translate(-50px, -200px) rotate(180deg);
    }
    75% {
        transform: translate(-150px, -50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Section Separators */
.section-separator {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-animation {
    position: absolute;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    animation: wave 8s infinite linear;
}

@keyframes wave {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    animation: particle 6s infinite linear;
}

@keyframes particle {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation - Enhanced */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 15px 30px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Navigation Logo */
.nav-logo {
    display: flex;
    align-items: center;
}

/* Hide mobile menu elements on desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.nav-logo-img:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.5rem;
    color: var(--light-grey);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 120px 0 100px 0; /* Extra top padding to account for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px !important;
    position: relative;
    z-index: 1;
}

/* First section (hero) needs even more space */
section#home {
    padding-top: 140px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--white);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}


.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px !important;
    color: var(--white);
}

.about-text p {
    color: var(--light-grey);
    font-size: 1.1rem;
    margin-bottom: 20px !important;
}
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-tag {
    padding: 8px 20px;
    background: var(--dark-grey);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--white);
    color: var(--primary-black);
    transform: translateY(-2px);
}

/* Enhanced Skill Categories */
.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.skill-category-title::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.skill-category-title[data-level="75"]::before { width: 75%; }
.skill-category-title[data-level="70"]::before { width: 70%; }
.skill-category-title[data-level="80"]::before { width: 80%; }
.skill-category-title[data-level="90"]::before { width: 90%; }

/* Animate skill level indicators on load */
.skill-category:nth-child(1) .skill-category-title::before { animation-delay: 0.1s; }
.skill-category:nth-child(2) .skill-category-title::before { animation-delay: 0.2s; }
.skill-category:nth-child(3) .skill-category-title::before { animation-delay: 0.3s; }
.skill-category:nth-child(4) .skill-category-title::before { animation-delay: 0.4s; }
.skill-category:nth-child(5) .skill-category-title::before { animation-delay: 0.5s; }
.skill-category:nth-child(6) .skill-category-title::before { animation-delay: 0.6s; }
.skill-category:nth-child(7) .skill-category-title::before { animation-delay: 0.7s; }

.skill-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.skill-details .skill-tag {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.skill-details .skill-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive design for skills */
@media (max-width: 768px) {
    .skills {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .skill-category {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .skill-category-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .skills-list {
        gap: 8px;
    }
    
    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Skills Mobile - Small screens */
@media (max-width: 480px) {
    .skills {
        gap: 15px;
        padding: 0 5px;
    }
    
    .skill-category {
        padding: 15px 12px;
        margin: 0;
    }
    
    .skill-category-title {
        font-size: 1.1rem;
    }
    
    .skill-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-grey) 50%, var(--white) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: timelineSlideIn 0.6s ease forwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 50px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 50px);
    text-align: left;
}

@keyframes timelineSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content {
    padding: 30px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    z-index: 15;
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}


.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    z-index: 6;
    box-shadow: 0 0 0 4px var(--primary-black);
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 600;
}

.timeline-date-inline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover .timeline-date-inline {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.timeline-company {
    color: var(--light-grey);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-description {
    color: var(--light-grey);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.timeline-content:hover .timeline-description {
    color: var(--white);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portfolio-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.portfolio-item p {
    color: var(--light-grey);
    margin-bottom: 20px !important;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--white);
}

/* Work in Progress Indicator */
.portfolio-item.work-in-progress {
    position: relative;
}

.portfolio-item.work-in-progress::before {
    content: "🚧 WORK IN PROGRESS" !important;
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    animation: pulse-wip 2s infinite;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    bottom: auto !important;
}

@keyframes pulse-wip {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.portfolio-item.work-in-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.portfolio-item.work-in-progress:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-item {
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-item.highlighted {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.blog-item.highlighted::before {
    content: "⭐ FEATURED";
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-item.highlighted:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.blog-item.newest {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.05) 100%);
    border: 2px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
    transform: scale(1.01);
}

.blog-item.newest::before {
    content: "🆕 NEWEST";
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-item.newest:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.5);
}

.blog-date {
    color: var(--light-grey);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-item h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.blog-item p {
    color: var(--light-grey);
    margin-bottom: 20px !important;
}

/* Professional Links */
.professional-links {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.professional-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.professional-link:hover {
    background: var(--white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .professional-links {
        flex-direction: column;
        align-items: center;
    }
    
    .professional-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Contact Section */
.contact-description {
    text-align: center;
    color: var(--light-grey);
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-grey);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--white);
    color: var(--primary-black);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: none;
}

.submit-btn.loading .button-text {
    opacity: 0;
}

.submit-btn.loading .button-loading {
    display: inline;
}

/* Status Messages */
.status-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px !important;
    font-weight: 500;
    display: none;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-grey);
    background: var(--primary-black);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--dark-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Mobile Sections - Better spacing */
    section {
        padding: 100px 0 80px 0; /* Reduced padding for mobile */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section#home {
        padding-top: 120px; /* Less space needed on mobile */
    }
    
    /* Navigation Mobile - Hamburger Menu */
    nav {
        padding: 12px 20px;
        width: 95%;
        max-width: none;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        background: rgba(10, 10, 10, 0.4);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-logo-img {
        width: 32px;
        height: 32px;
        padding: 1px;
    }
    
    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        gap: 4px;
        transition: all 0.3s ease;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hamburger animation when active */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        list-style: none;
        padding: 30px;
        margin: 0;
        background: rgba(10, 10, 10, 0.7);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        width: 280px;
        max-width: 90vw;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-item {
        margin: 0;
        padding: 0;
        width: 100%;
        display: block;
    }
    
    .mobile-menu-link {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 400;
        padding: 15px 20px;
        display: block;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .mobile-menu-link:hover,
    .mobile-menu-link:focus {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-menu-link:active {
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Hero Section Mobile - Enhanced */
    .hero {
        padding: 100px 20px 60px;
        min-height: 85vh;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: var(--light-grey);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mobile CTA Button */
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    /* Mobile Section Titles */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    /* Mobile About Section */
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 95%;
        margin: 0 auto 20px;
    }
    
    /* Mobile Contact Form */
    .contact-form {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    /* Mobile Timeline */
    .timeline-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    /* Mobile Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .hero .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Sections Mobile */
    section {
        padding: 60px 20px;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Section Headers Mobile */
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* Portfolio and Blog Grids */
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    /* Portfolio Cards Mobile */
    .portfolio-item,
    .blog-item {
        margin: 0;
    }
    
    .portfolio-item h3,
    .blog-item h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-item p,
    .blog-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Timeline Mobile */
    .timeline {
        margin: 20px auto;
        padding: 20px 10px;
    }
    
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 70px !important;
        padding-right: 15px !important;
        text-align: left !important;
        margin: 30px 0;
    }

    .timeline-dot {
        left: 30px !important;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer Mobile */
    footer {
        padding: 40px 20px;
        text-align: center;
    }
    
    footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    
    /* Accessibility Controls Mobile */
    .accessibility-controls {
        top: 70px;
        right: 20px;
    }
    
    .accessibility-toggle {
        font-size: 1.3rem;
        padding: 6px;
    }
    
    .controls-content {
        right: -10px;
        left: 10px;
        min-width: auto;
        width: calc(100vw - 20px);
        max-width: 320px;
    }
    
    .accessibility-btn, .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Modal Mobile */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    nav {
        width: 90%;
        padding: 15px 25px;
    }
    
    section {
        padding: 80px 40px;
    }
}

/* Small Mobile Responsive Design */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    nav {
        padding: 10px 15px;
        width: 98%;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
        margin: 15px 5px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Blog Modal Styles */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: var(--primary-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 1000px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.blog-modal-overlay.active .blog-modal-content {
    transform: translateY(0);
}

.blog-modal-header {
    position: sticky;
    top: 0;
    background: var(--primary-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.blog-modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.blog-modal-body {
    padding: 50px;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--light-grey);
    font-size: 0.95rem;
}

.blog-post-separator {
    color: var(--medium-grey);
}

.blog-post-content {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: var(--light-grey);
    font-style: italic;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--white);
    border-radius: 0 10px 10px 0;
}

.blog-post-full-content {
    color: var(--white);
}

.blog-post-full-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: var(--white);
    font-weight: 600;
}

.blog-post-full-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    color: var(--white);
    font-weight: 600;
}

.blog-post-full-content p {
    margin-bottom: 20px;
    color: var(--light-grey);
    font-size: 1.05rem;
}

.blog-post-full-content ul,
.blog-post-full-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-full-content li {
    margin-bottom: 10px;
    color: var(--light-grey);
    line-height: 1.6;
}

.blog-post-full-content strong {
    color: var(--white);
    font-weight: 600;
}
.blog-post-full-content em {
    color: var(--medium-grey);
}

/* Read more indicator */
.read-more-indicator {
    margin-top: 15px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.blog-item:hover .read-more-indicator {
    opacity: 1;
}

/* Custom Scrollbar Styling */
.blog-modal-content::-webkit-scrollbar {
    width: 12px;
}

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

.blog-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 10px;
    border: 2px solid var(--primary-black);
    transition: all 0.3s ease;
}

.blog-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: scale(1.05);
}

.blog-modal-content::-webkit-scrollbar-corner {
    background: var(--primary-black);
}

/* Firefox scrollbar styling */
.blog-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
    scroll-behavior: smooth;
}

/* Mobile responsiveness for blog modal */
@media (max-width: 768px) {
    .blog-modal-overlay {
        padding: 10px;
    }
    
    .blog-modal-content {
        max-height: 95vh;
        border-radius: 15px;
        width: 98%;
        max-width: none;
    }
    
    .blog-modal-body {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-post-excerpt {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .blog-post-full-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-full-content h3 {
        font-size: 1.3rem;
    }
    
    /* Hide scrollbar on mobile for cleaner look */
    .blog-modal-content::-webkit-scrollbar {
        width: 6px;
    }
}

