@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a24;
    --bg-card: #252538;
    --text-primary: #e8e8f0;
    --text-secondary: #a8a8b8;
    --accent-blue: #4f8fff;
    --accent-purple: #8b5cf6;
    --accent-neon: #00f5ff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-wave: linear-gradient(45deg, #4f8fff, #8b5cf6, #00f5ff, #4f8fff);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
}

.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0b1018;
    --text-secondary: #2d343d;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-wave);
    background-size: 400% 400%;
    opacity: 0;
    transition: all 0.5s ease;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

header:hover::before {
    opacity: 0.1;
    left: 0;
}

header > * {
    position: relative;
    z-index: 2;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.2rem 0;
}

.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.links a {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(79, 143, 255, 0.3);
    transition: all 0.3s ease;
}

.links a:hover {
    background: rgba(79, 143, 255, 0.1);
    transform: translateY(-2px);
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-wave);
    background-size: 400% 400%;
    opacity: 0;
    transition: all 0.5s ease;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

.section:hover::before {
    opacity: 0.05;
    left: 0;
}

.section > * {
    position: relative;
    z-index: 2;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
    color: var(--text-primary);
}

/* Certifications */
.certifications {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

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

.badges img {
    max-width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cert-details .cert-item {
    margin-bottom: 1.5rem;
}

.cert-title {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

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

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category h3 {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-neon);
    font-weight: bold;
}

/* Education & Languages */
.simple-list {
    list-style: none;
}

.simple-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.simple-list li:last-child {
    border-bottom: none;
}

/* Projects */
.project-category {
    margin-bottom: 2rem;
}

.project-category h3 {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-list {
    list-style: none;
}

.project-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--accent-neon);
}

.project-name {
    font-weight: 600;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.project-list a {
    color: var(--accent-blue);
    text-decoration: none;
}

.project-list a:hover {
    color: var(--accent-neon);
}

/* Nested project lists */
.nested-project-list {
    list-style: none;
    margin-top: 0.8rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(79, 143, 255, 0.3);
}

.nested-project-list li {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0;
    background: none;
    border-left: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nested-project-list li strong {
    color: var(--text-primary);
}
.toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toggle-btn:hover {
    transform: scale(1.1) rotate(180deg);
}

/* Declaration */
.declaration {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
}

.signature {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .certifications {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badges {
        flex-direction: row;
        justify-content: center;
    }

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

    .section {
        padding: 1.5rem;
    }

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