/* Roles and Contribution section styling */
#modal-roles-contribution {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px auto;
    box-sizing: border-box;
    padding: 0 0 16px 0;
}
#modal-roles-contribution h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 24px;
    width: 100%;
}
#modal-roles-contribution p {
    width: 100%;
    margin: 0;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* Portfolio Details Modal Overlay */
.portfolio-details {
    padding-top: 40px;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 9999;
}
/* Info icon for portfolio links */
.portfolio-links {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.portfolio-links .info-icon {
    display: none;
    color: #fff;
    font-size: 1.1em;
    vertical-align: middle;
    transition: opacity 0.2s;
    cursor: pointer;
    margin-left: 0.1em;
}
.portfolio-item:hover .portfolio-links .info-icon {
    display: inline-block;
    opacity: 1;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-1: #212529;
    --color-2: #E80368;
    --color-3: #191C1F;
    --color-4: #a80951;
    --color-5: #680833;
    --primary-color: var(--color-2);
    --secondary-color: var(--color-4);
    --accent-color: var(--color-5);
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --bg-color: var(--color-1);
    --bg-dark: var(--color-3);
    --card-bg: var(--color-3);
    --bg-gradient: linear-gradient(135deg, rgba(232, 3, 104, 0) 0%, rgba(216, 6, 99, 0) 50%, rgba(190, 10, 90, 0) 100%);
    --bg-gradient-alt: linear-gradient(270deg, var(--color-2) 0%, var(--color-5) 100%);
    --shadow: 0 10px 40px rgba(232, 3, 104, 0.15);
    --shadow-hover: 0 20px 60px rgba(232, 3, 104, 0.25);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    background: url("https://thedrakun.dev/assets/img/02.png") top right no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: -1;
}

@media (min-width: 1024px) {
    body::before {
        background-attachment: fixed;
    }
}

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

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    position: relative;
}

.pulse {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(25, 28, 31, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(25, 28, 31, 0.98);
    box-shadow: var(--shadow);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 28, 31, 0.3);
    backdrop-filter: blur(1px);
}

.hero-content {
    flex: 1;
    color: white;
    z-index: 3;
    position: relative;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
    }
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.btn {
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary {
    background: var(--bg-gradient-alt);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(232, 3, 104, 0.10);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(60deg, var(--color-2) 0%, var(--color-5) 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 30px rgba(232, 3, 104, 0.18);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 0.6s ease forwards 1.0s;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(232, 3, 104, 0.2);
}

.unity-logo {
    top: 20px;
    left: 50px;
    animation-delay: 0s;
}

.csharp-logo {
    top: 100px;
    right: 30px;
    animation-delay: 1s;
}

.game-controller {
    bottom: 50px;
    left: 80px;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1.2s;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 2px;
    height: 6px;
    background: white;
    border-radius: 1px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

/* Section Styles */
section {
    padding: 48px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    padding: 2.5rem 0;
}
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.personal-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 12px;
}
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(232, 3, 104, 0.08);
    box-shadow: 0 2px 8px 0 rgba(232, 3, 104, 0.04);
    transition: box-shadow 0.2s;
    min-width: 180px;
    font-size: 1.05rem;
}

.info-item i {
    color: var(--primary-color);
    width: 22px;
    font-size: 1.2em;
    opacity: 0.85;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow);
    animation: pulse-shadow 2s ease-in-out infinite;
}

@keyframes pulse-shadow {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: var(--shadow-hover); }
}

/* Skills Section */
.skills {
    background: rgba(25, 28, 31, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 28, 31, 0.3);
    backdrop-filter: blur(15px);
    z-index: 0;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.technical-skills h3,
.interests h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color-color);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgb(76, 76, 76);
    border-radius: 4px;
    overflow: hidden;
    /* border: 1px solid rgba(232, 3, 104, 0.2); */
}

.skill-progress {
    height: 100%;
    background: var(--bg-gradient-alt);
    width: 0;
    border-radius: 4px;
    transition: width 2s ease;
    box-shadow: 0 2px 10px rgba(232, 3, 104, 0.3);
}

.skill-progress.animate {
    width: var(--progress-width, 0%);
}

.interest-items {
    display: grid;
    gap: 1.5rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(232, 3, 104, 0.2);
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.interest-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.interest-item h4 {
    margin: 0;
    font-size: 1.1rem;
}

/* Resume Section */
.resume {
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-section {
    margin-bottom: 4rem;
}

.timeline-title {
    font-size: 1.8rem;
    color: var(--text-color-color);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(232, 3, 104, 0.2);
}

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

.timeline-date {
    display: inline-block;
    background: var(--bg-gradient-alt);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(232, 3, 104, 0.3);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.timeline-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Portfolio Section */
.portfolio {
    background: rgba(25, 28, 31, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0;
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 28, 31, 0.3);
    backdrop-filter: blur(15px);
    z-index: 0;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

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

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--bg-gradient-alt);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(232, 3, 104, 0.3);
    transform: translateY(-2px);
}

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

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
    border: 1px solid rgba(232, 3, 104, 0.2);
    cursor: pointer;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.portfolio-image {
    height: 200px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image::before {
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gradient-alt);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(232, 3, 104, 0.3);
}

.portfolio-link:hover {
    transform: scale(1.1);
}

.portfolio-link.disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

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

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(232, 3, 104, 0.2);
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-gradient-alt);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(232, 3, 104, 0.3);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(232, 3, 104, 0.2);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(232, 3, 104, 0.3);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
    background: var(--bg-color);
    color: var(--text-color);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 1rem 2rem;
        min-height: 90vh;
    }

    .hero-content {
        padding: 1rem;
        z-index: 3;
        position: relative;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .floating-elements {
        width: 250px;
        height: 250px;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

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

    .personal-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

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

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

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

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem;
    }

    section {
        padding: 60px 0;
    }



    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .floating-elements {
        width: 200px;
        height: 200px;
    }

    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

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

.modal-content {
    background: var(--card-bg);
    margin: 3% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(232, 3, 104, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 3, 104, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(232, 3, 104, 0.2);
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    padding: 2rem;
    background: var(--bg-gradient-alt);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    color: white;
}

.modal-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    font-weight: 700;
}

.modal-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .modal-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 900px) {
    .modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .modal-right {
        padding: 0;
    }
}

.modal-left {
    overflow: hidden;
}

.modal-right {
    padding: 1rem;
}

/* Screenshot Gallery */
.screenshot-gallery {
    width: 100%;
}

.main-screenshot {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.project-info-section {
    background: rgba(232, 3, 104, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(232, 3, 104, 0.1);
}

.project-info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row strong {
    color: var(--primary-color);
    min-width: 120px;
    font-size: 0.9rem;
}

.info-row span {
    color: var(--text-color);
}

.info-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-row a:hover {
    text-decoration: underline;
}

.description-section {
    margin-bottom: 2rem;
}

.description-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.role-section,
.challenges-section {
    margin-bottom: 2rem;
}

.role-section h4,
.challenges-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.role-section p,
.challenges-section p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
    font-size: 0.95rem;
}

.project-info {
    margin-bottom: 2rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(232, 3, 104, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.info-item strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span,
.info-item a {
    color: var(--text-color);
    font-size: 1rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

.project-description,
.project-role,
.project-challenges {
    margin-bottom: 2rem;
}

.project-description h4,
.project-role h4,
.project-challenges h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description h4::before {
    content: "📋";
}

.project-role h4::before {
    content: "👨‍💻";
}

.project-challenges h4::before {
    content: "🎯";
}

.project-description p,
.project-role p,
.project-challenges p {
    line-height: 1.8;
    color: var(--text-light);
}

.view-details {
    background: var(--primary-color) !important;
    border: none !important;
    cursor: pointer;
}

.view-details:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
}

@media (max-width: 968px) {
    .modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-right {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1rem;
    }
    
    .modal-header h1 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .info-row strong {
        min-width: auto;
    }
    
    .modal-image {
        width: 150px;
        height: 150px;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    border: 2px solid var(--bg-dark);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    box-shadow: var(--shadow);
}

::-webkit-scrollbar-corner {
    background: var(--bg-dark);
}
