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

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

/* Dark mode styles */
:root {
    --bg-color: #f5f5f5;
    --container-bg: white;
    --text-color: #333;
    --heading-color: #1a1a1a;
    --card-bg: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #ffffff;
    --hover-color: #f5f5f5;
    --border-color: #e0e0e0;
    --secondary-text: #555;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-bg: #363636;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #404040;
    --hover-color: #4a4a4a;
    --border-color: #505050;
    --secondary-text: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 2rem;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.main-container {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: auto;
    min-height: calc(100vh - 4rem);
}

.right-container {
    position: sticky;
    top: 2rem;
    height: fit-content;
    min-height: auto;
    max-height: calc(100vh - 4rem);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    gap: 2rem;
}

header {
    text-align: center;
    margin-bottom: 0;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.title {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.subtitle {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.about {
    color: var(--secondary-text);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Profile photo - Force circular with important declarations */
.profile-photo {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 1rem auto !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    border: 3px solid var(--border-color) !important;
    /* Force circular shape - critical for web deployment */
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    /* Optimize for high DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Ensure smooth scaling */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prevent layout shift */
    min-width: 200px;
    min-height: 200px;
    /* Force aspect ratio */
    aspect-ratio: 1/1 !important;
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive profile photo sizing - Force circular on all devices */
@media (max-width: 768px) {
    .profile-photo {
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        min-height: 160px !important;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
    }
}

.social-links {
    margin: 0;
    padding: 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.social-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--text-color);
    font-size: 1.3rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0 auto;
    text-decoration: none;
}

.social-grid a:hover {
    color: var(--text-color);
    transform: translateY(-3px);
    background-color: var(--container-bg);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.skill-category li {
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.nav-buttons {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--container-bg);
    color: var(--text-color);
    transform: translateX(5px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.nav-btn i {
    font-size: 1.1rem;
    width: 20px;
}

.nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.download-btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.projects {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-media {
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    width: 100%;
    min-height: 300px;
}

.project-media video,
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.project-media.video-container::before {
    content: "\f144";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    z-index: 2;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-media.video-container:hover::before {
    opacity: 0;
}

.project-media:hover video,
.project-media:hover img {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
}

.project-info h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

.responsibilities {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.responsibilities h4 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.responsibilities ul {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.responsibilities li::before {
    content: "•";
    color: var(--text-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin: 0;
}

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-btn i {
    font-size: 1rem;
}

.project-btn.itch-btn {
    background: #fa5c5c;
    color: white;
    border: none;
}

.project-btn.store-btn {
    background: #689f38;
    color: white;
    border: none;
}

/* Dark Mode Adjustments */
.dark-mode .project-btn {
    background: var(--card-bg-dark);
    color: var(--text-color-dark);
    border-color: var(--border-color-dark);
}

.dark-mode .project-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overview-btn {
    background-color: #2d3436;
}

.overview-btn:hover {
    background-color: #1e2527;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.itch-btn {
    background-color: #FA5C5C;
}

.itch-btn:hover {
    background-color: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(250, 92, 92, 0.2);
}

.store-btn {
    background-color: #00c853;
    color: white;
}

.store-btn:hover {
    background-color: #00a844;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.2);
}

@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-media {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .main-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .left-container {
        min-height: auto;
    }

    .right-container {
        position: relative;
        top: 0;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

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

    .nav-buttons {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn i {
        font-size: 1.2rem;
        margin: 0;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-info {
        padding: 0;
    }

    .project-media {
        min-height: 250px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .project-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-btn {
        width: 100%;
    }

    .social-grid {
        gap: 0.8rem;
    }

    .social-grid a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
    }

    .dark-mode-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
    }

    .responsibilities h4 {
        font-size: 1.2rem;
    }

    .projects {
        gap: 1.5rem;
    }
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.dark-mode-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--container-bg);
    color: var(--text-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.dark-mode-btn i {
    transition: transform 0.5s ease;
}

[data-theme="dark"] .dark-mode-btn i {
    transform: rotate(360deg);
}

.small-projects-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

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

.small-project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.small-project-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: var(--container-bg);
}

.small-project-media img,
.small-project-media embed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-project-media .pdf-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.8;
}

.small-project-info {
    padding: 1.2rem;
}

.small-project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.small-project-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.small-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    background-color: var(--container-bg);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .small-projects-grid {
        grid-template-columns: 1fr;
    }

    .small-project-media {
        height: 200px;
    }
}

.image-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background-color: var(--container-bg);
    border-radius: 12px;
    overflow: hidden;
}

.image-gallery.landscape {
    aspect-ratio: 16/9;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.dots-container {
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.progress-bar {
    width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: white;
    transition: width 0.1s linear;
}

.project-info .responsibilities {
    margin: 1.5rem 0;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: visible;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 5%;
}

.lightbox-next {
    right: 5%;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 3%;
    }

    .lightbox-next {
        right: 3%;
    }
}

.level-design-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
}

.level-design-card .centered-title {
    text-align: center;
    padding: 0;
    margin: 0;
}

.level-design-card .centered-title h3 {
    margin-bottom: 0;
}

.level-design-card .full-width {
    width: 100%;
    padding: 0;
    margin: 0;
}

.level-design-card .project-media {
    min-height: 400px;
    width: 100%;
}

.level-design-card .image-gallery {
    aspect-ratio: auto;
    height: 500px;
}

.level-design-card .gallery-img {
    object-fit: contain;
    background-color: var(--card-bg);
}

@media (max-width: 768px) {
    .level-design-card .project-media,
    .level-design-card .image-gallery {
        min-height: 250px;
        height: 300px;
    }
}

.gdd-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
}

.pdf-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
}

.pdf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pdf-page {
    position: relative;
    aspect-ratio: 1/1.414;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pdf-page:hover {
    transform: translateY(-5px);
}

.pdf-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-number {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.pdf-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pdf-info {
    flex: 1;
}

.pdf-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.pdf-stats i {
    color: #ff4444;
}

.pdf-description {
    color: var(--text-color);
    line-height: 1.5;
}

.pdf-buttons {
    display: flex;
    gap: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: #ff4444;
    color: white;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    background-color: #ff6666;
}

@media (max-width: 768px) {
    .pdf-actions {
        flex-direction: column;
    }

    .pdf-buttons {
        width: 100%;
    }

    .download-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--container-bg);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    height: calc(100% - 60px);
    padding: 1rem;
}

@media (max-width: 768px) {
    .pdf-actions {
        flex-direction: column;
    }

    .pdf-buttons {
        width: 100%;
    }

    .download-btn {
        flex: 1;
        justify-content: center;
    }
}

.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pdf-preview-modal.active {
    display: flex;
}

.pdf-preview-content {
    position: relative;
    width: 90%;
    height: 90vh;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pdf-preview-content embed {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background: #ff0000;
}

/* Resume Styles */
.resume {
    padding: 2rem;
}

.resume h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.resume-section {
    margin-bottom: 3rem;
}

.resume-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.resume-item h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.resume-item .company {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.resume-item .duration {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.resume-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.resume-item ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.resume-actions {
    text-align: center;
    margin-top: 3rem;
}

.resume-actions .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.resume-actions .download-btn:hover {
    background: var(--accent-hover);
}

/* Dark Mode Adjustments */
.dark-mode .resume-item {
    background: var(--card-bg-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .resume-item h3,
.dark-mode .resume-item .company,
.dark-mode .resume-item .duration,
.dark-mode .resume-item ul li {
    color: var(--text-color-dark);
}

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

    .resume h2 {
        font-size: 2rem;
    }

    .resume-item {
        padding: 1.5rem;
    }

    .resume-item h3 {
        font-size: 1.5rem;
    }
}

/* CV Container Styles */
.cv-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.cv-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}

.cv-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    aspect-ratio: 1/1.4142; /* A4 aspect ratio */
}

/* Dark Mode Adjustments */
.dark-mode .cv-image {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

    .cv-images {
        gap: 1rem;
    }

    .cv-image {
        max-width: 100%;
    }
} 