/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --border-color: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
}

#navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(15, 23, 42, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .nav-links {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #navbar {
        position: relative;
    }
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: width 0.3s ease;
}

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

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

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-3);
    border-radius: 2rem;
    color: white !important;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lang-selector a {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.lang-selector a.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.lang-selector a:hover {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

.lang-selector a::after {
    display: none !important;
}

/* Print Button */
.btn-print {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-print:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-print i {
    font-size: 1.1rem;
}

.btn-print::after {
    display: none !important;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    z-index: 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.shape2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 50%;
    right: -200px;
    animation-delay: 5s;
}

.shape3 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    bottom: -300px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.name {
    display: block;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.typed-text {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-light);
    animation: blink 0.7s infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-3);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.hero-tech-stack {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tech-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.tech-item::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    background: var(--card-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--dark-bg);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-3);
    margin: 0 auto;
    border-radius: 2px;
}

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

.profil-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.profil-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.profil-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.profil-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.profil-card p:last-child {
    margin-bottom: 0;
}

.profil-card strong {
    color: var(--text-primary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-3);
    border: 4px solid var(--darker-bg);
    border-radius: 50%;
    top: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.period {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.3rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-tech {
    justify-content: flex-end;
}

.tech-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.timeline-achievements {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-achievements li {
    margin-bottom: 0.8rem;
}

.timeline-achievements ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.timeline-achievements ul li {
    list-style-type: disc;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-achievements .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.5s ease;
}

.project-card:hover .project-icon {
    transform: rotateY(360deg) scale(1.1);
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.project-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.project-highlight i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.school {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.year {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.projects {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-3);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
}

.contact-cta p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    html {
        max-width: 100vw;
        overflow-x: clip;
    }

    body {
        max-width: 100vw;
        width: 100vw;
        overflow-x: clip;
    }

    body.menu-open {
        overflow: hidden;
    }

    #navbar {
        width: 100vw;
        max-width: 100vw;
        z-index: 1000;
    }

    .container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow: visible !important;
    }

    .section {
        max-width: 100vw;
    }

    .nav-content {
        padding: 1rem 1rem;
        overflow: visible !important;
        position: relative;
    }

    #navbar .container {
        overflow: visible !important;
    }

    .logo {
        font-size: 1.25rem;
    }

    #hero {
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: clip;
        overflow-y: visible;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-tech-stack {
        max-width: 100%;
    }

    .nav-links {
        display: none !important;
        position: fixed !important;
        inset: 70px 0 0 0 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        background-color: #0f172a !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 100vw !important;
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
        text-align: center !important;
        padding: 2rem 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        gap: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 0 !important;
        padding: 1rem 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .nav-links a {
        display: block !important;
        padding: 1rem !important;
        font-size: 1.2rem !important;
        width: 100% !important;
        color: #f8fafc !important;
        text-decoration: none !important;
    }

    .nav-links a::after {
        display: none !important;
    }

    .btn-contact {
        background: var(--gradient-3) !important;
        color: white !important;
        border-radius: 2rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .burger {
        display: block;
        z-index: 10000;
        position: relative;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        max-width: 100%;
        padding-left: 60px;
        padding-right: 1rem;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 11px !important;
    }

    .timeline-tech {
        justify-content: flex-start !important;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .timeline-content {
        max-width: 100%;
    }

    .timeline-content:hover {
        transform: none;
    }

    .skill-card,
    .project-card {
        width: 100%;
        max-width: 100%;
    }

    .skill-card:hover,
    .project-card:hover {
        transform: none;
    }

    .education-card:hover,
    .profil-card:hover,
    .contact-item:hover {
        transform: none;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print Styles */
@media print {
    /* Reset colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    #navbar,
    .burger,
    .btn-print,
    .btn-contact,
    .lang-selector,
    .hero-background,
    .hero-shapes,
    .shape,
    .scroll-indicator,
    .hero-cta,
    footer,
    .contact-cta,
    .hero-tech-stack {
        display: none !important;
    }

    /* Page setup */
    @page {
        size: A4;
        margin: 1.5cm 2cm;
    }

    body {
        font-size: 11pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Hero section simplification */
    #hero {
        min-height: auto;
        padding: 1rem 0;
        page-break-after: avoid;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 24pt;
        margin-bottom: 0.5rem;
    }

    .hero-title .name {
        background: none;
        color: black;
        -webkit-text-fill-color: black;
    }

    .typed-text,
    .cursor {
        display: none;
    }

    .hero-subtitle,
    .hero-description {
        font-size: 12pt;
        color: #333;
    }

    /* Sections */
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 16pt;
        color: black;
        border-bottom: 2px solid #333;
        padding-bottom: 0.3rem;
        margin-bottom: 0.8rem;
    }

    .title-underline {
        display: none;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-card {
        border: 1px solid #ddd;
        padding: 0.8rem;
        page-break-inside: avoid;
    }

    .skill-card h3 {
        font-size: 12pt;
        margin-bottom: 0.5rem;
    }

    .skill-icon {
        display: none;
    }

    .tag {
        border: 1px solid #333;
        color: black;
        background: white;
        padding: 0.2rem 0.5rem;
        font-size: 9pt;
    }

    /* Timeline */
    .timeline {
        border-left: 2px solid #333;
    }

    .timeline-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .timeline-dot {
        background: black;
        border-color: black;
    }

    .timeline-content {
        background: white;
        border: 1px solid #ddd;
        padding: 0.8rem;
    }

    .timeline-header h3 {
        font-size: 12pt;
    }

    .company {
        color: #333;
        font-size: 11pt;
    }

    .period {
        color: #666;
        font-size: 10pt;
    }

    .tech-badge {
        border: 1px solid #333;
        color: black;
        background: white;
        padding: 0.2rem 0.5rem;
        font-size: 8pt;
    }

    .timeline-achievements {
        font-size: 10pt;
    }

    .timeline-achievements li {
        margin-bottom: 0.3rem;
    }

    .highlight {
        font-weight: bold;
        background: none;
        color: black;
    }

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

    .project-card {
        border: 1px solid #ddd;
        padding: 0.8rem;
        page-break-inside: avoid;
    }

    .project-card h3 {
        font-size: 12pt;
    }

    .project-icon {
        display: none;
    }

    .project-highlight {
        background: none;
        color: black;
        border: 1px solid #333;
        padding: 0.3rem;
    }

    /* Profile cards */
    .profil-content {
        display: block;
    }

    .profil-card {
        border: 1px solid #ddd;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        page-break-inside: avoid;
    }

    .profil-icon {
        display: none;
    }

    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .education-card {
        border: 1px solid #ddd;
        padding: 0.8rem;
        page-break-inside: avoid;
    }

    .education-icon {
        display: none;
    }

    /* Contact */
    .contact-content {
        display: block;
    }

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

    .contact-item {
        border: 1px solid #ddd;
        padding: 0.5rem;
        page-break-inside: avoid;
    }

    .contact-icon {
        display: none;
    }

    .contact-details h4 {
        font-size: 10pt;
        margin-bottom: 0.2rem;
    }

    .contact-details a,
    .contact-details p {
        font-size: 9pt;
        color: black;
    }

    /* Links */
    a {
        color: black;
        text-decoration: none;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="mailto:"]:after {
        content: "";
    }

    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }

    ul, ol {
        page-break-inside: avoid;
    }

    /* Ensure main content starts on first page */
    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

