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

:root {
    --primary-color: #ff9a3c;
    --secondary-color: #ff6a00;
    --accent-color: #ffbb5c;
    --dark-bg: #121212;
    --dark-card: #1f1f1f;
    --light-bg: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #c7c7c7;
    --gradient-1: linear-gradient(135deg, #ffefba 0%, #ff8800 100%);
    --gradient-2: linear-gradient(135deg, #ffc371 0%, #ff5f6d 100%);
    --gradient-3: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-4: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-resume-btn {
    padding: 10px 26px;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-3);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-line {
    display: block;
    animation: slideInLeft 0.8s ease;
}

.name-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.7s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.6);
}

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.floating-card {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 6rem;
    color: white;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

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

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.title-number {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 3rem;
}

.title-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.about-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 0.05;
}

.card-icon {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Education Section */
.education {
    background: var(--dark-bg);
}

.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    animation: fadeInLeft 0.8s ease;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.6), 0 0 0 7px rgba(255, 138, 0, 0.2);
}

.timeline-content {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.timeline-date {
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-degree {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-grade {
    color: var(--text-secondary);
}

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

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

.skills-panel {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.skills-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: left;
}

.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 154, 60, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-card-icon {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

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

    .skills-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-panel-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills-cards-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.filter-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--dark-card);
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

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

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.4);
}

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

.project-card[data-category] {
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.project-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.project-media {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.project-media img,
.project-media video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Graphic Projects Carousel */
.graphic-projects-container {
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.graphic-projects-container.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

.carousel-wrapper {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.carousel-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-title i {
    font-size: 1.5rem;
}

.carousel-category-tabs {
    display: flex;
    gap: 0.5rem;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.4);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
    overflow: hidden;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 0.5rem;
    display: grid;
    gap: 1rem;
}

.carousel-slide img {
    flex: 1;
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    max-height: 600px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 154, 60, 0.3);
}

/* Responsive images per slide */
@media (min-width: 1200px) {
    .carousel-slide {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .carousel-slide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .carousel-slide {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--gradient-1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--gradient-1);
    border-color: rgba(255, 154, 60, 0.5);
    transform: scale(1.3);
}

/* Image Modal for Full View */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--gradient-1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.image-modal-close:hover {
    transform: rotate(90deg);
}

.project-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

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

.project-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: background 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-arrow {
    background: var(--gradient-1);
    transform: translateX(5px);
}

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

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.project-tech span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Certifications Section */
.certifications {
    background: var(--light-bg);
}

.cert-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cert-icon {
    font-size: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

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

.cert-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cert-date {
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cert-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Internships Section */
.internships {
    background: var(--dark-bg);
}

.internship-card {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.internship-icon {
    font-size: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.internship-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.internship-date {
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.internship-details {
    list-style: none;
}

.internship-details li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.internship-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.contact-icon {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

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

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

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

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

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.6);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

    .hero-name {
        font-size: 3rem;
    }

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

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

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

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

    .project-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .cert-card,
    .internship-card {
        flex-direction: column;
    }

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

    .footer .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }

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

    .about-card,
    .cert-card,
    .internship-card {
        padding: 2rem;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Resume layout (screenshot)
   ========================= */

body.resume-page {
    background: #ffffff;
    color: #111111;
    overflow-x: auto;
    font-family: "Times New Roman", Times, serif;
}

.resume {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 28px 60px;
}

.resume a {
    color: #0b63ce;
    text-decoration: underline;
}

.resume-header {
    margin-bottom: 18px;
}

.resume-name {
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 6px;
    font-weight: 700;
    color: #111111;
}

.resume-contact {
    margin: 0;
    font-size: 14px;
    color: #111111;
}

.resume-contact .sep {
    padding: 0 6px;
    color: #111111;
}

.resume-section {
    margin-top: 18px;
}

.resume-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 6px;
    text-decoration: underline;
}

.resume-section p {
    margin: 0 0 8px;
    font-size: 14px;
}

.resume-skill-lines p {
    margin: 0 0 4px;
}

.resume-item {
    margin-top: 10px;
}

.resume-item-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}

.resume-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.resume-date {
    font-size: 14px;
    color: #111111;
    white-space: nowrap;
    font-weight: 700;
}

.resume ul {
    margin: 0 0 10px 22px;
    padding: 0;
    font-size: 14px;
}

.resume li {
    margin: 0 0 4px;
}

/* Hide old portfolio sections/nav visuals if they ever reappear */
body.resume-page .navbar,
body.resume-page .hero,
body.resume-page .footer {
    display: none;
}

@media (max-width: 520px) {
    .resume {
        padding: 28px 18px 50px;
    }

    .resume-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Poster & Branding Design Modal Carousel */
.project-carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-carousel-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 10001;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 10002;
}

.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    min-height: 400px;
}

.modal-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
    height: 100%;
}

.modal-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
    align-items: center;
}

.modal-carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.modal-carousel-slide img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 154, 60, 0.3);
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-carousel-btn:hover {
    background: var(--gradient-1);
    transform: translateY(-50%) scale(1.1);
}

.modal-carousel-prev {
    left: 15px;
}

.modal-carousel-next {
    right: 15px;
}

.modal-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.modal-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.modal-carousel-indicator.active {
    background: var(--gradient-1);
    border-color: rgba(255, 154, 60, 0.5);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-carousel-slide {
        grid-template-columns: 1fr;
    }

    .modal-carousel-slide img {
        max-height: 300px;
    }
}

