/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;

    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #1e293b;

    --border-color: #e2e8f0;
    --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);

    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #bfdbfe;

    --text-dark: #f8fafc;
    --text-medium: #cbd5e1;
    --text-light: #94a3b8;

    --bg-light: #1e293b;
    --bg-gray: #0f172a;
    --bg-dark: #020617;

    --border-color: #334155;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 1rem;
    gap: 5px;
}
.btn.outline{
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}
.btn.outline:hover{
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn svg {
    margin-left: 0.5rem;
}

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

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

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

.btn.secondary:hover {
    background-color: var(--bg-gray);
    transform: translateY(-2px);
}

.highlight {
    color: var(--primary-color);
}

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

.section-header h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 9999px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-medium);
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

#theme-toggle:hover {
    transform: scale(1.1);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: var(--transition);
}

body:not(.dark-mode) .moon-icon,
.dark-mode .sun-icon {
    opacity: 1;
    transform: scale(1);
}

body:not(.dark-mode) .sun-icon,
.dark-mode .moon-icon {
    opacity: 0;
    transform: scale(0);
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

#header.scrolled {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%,
            var(--primary-light) 0.5%,
            transparent 10%),
        radial-gradient(circle at 75% 75%,
            var(--primary-light) 0.5%,
            transparent 10%),
        radial-gradient(circle at 50% 50%,
            var(--primary-light) 0.5%,
            transparent 12%);
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero h1 .position {
    display: block;
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-30px) translateX(-50%);
    }

    60% {
        transform: translateY(-15px) translateX(-50%);
    }
}

/* About Section */
.about {
    background-color: var(--bg-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.about-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-items {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
}

.info-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
}

.language-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.languages {
    display: grid;
    gap: 1rem;
}

.language-item {
    margin-bottom: 1rem;
}

.language-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right,
            var(--primary-color),
            var(--secondary-color));
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

/* Skills Section */
.skills {
    background-color: var(--bg-light);
}

.skills-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--bg-gray);
    color: var(--text-medium);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-level {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: right;
}

/* Projects Section */
.projects {
    background-color: var(--bg-gray);
}

.project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

.project-tech span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 9999px;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

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

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-medium);
}

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

.social-links-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-large a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-gray);
    border-radius: 9999px;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Footer */
#footer {
    background-color: var(--bg-gray);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo a span {
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-medium);
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-medium);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] {
    transition-delay: 0.1s;
}

[data-aos-delay="200"] {
    transition-delay: 0.2s;
}

[data-aos-delay="300"] {
    transition-delay: 0.3s;
}

/* Fade animations */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* Hide an element */
.hidden {
    display: none !important;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-picture img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #007bff);
}

.hero-text {
    flex: 1;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-picture img {
        width: 150px;
        height: 150px;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #334155;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #475569;
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.close {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.cv-preview-content {
    text-align: center;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #475569;
    text-align: center;
}

/* PDF Container Styles */
.pdf-container {
    width: 100%;
    text-align: center;
}

.pdf-container embed {
    border: 1px solid #475569;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Update modal content for PDF display */
.modal-content {
    max-width: 800px;
    /* Wider for PDF display */
}

.modal-body {
    padding: 1rem;
    /* Less padding for PDF */
}