:root {
    --primary-color: #0d6e5a;
    --primary-dark: #0a5446;
    --secondary-color: #0e9e7e;
    --dark-color: #0d2b24;
    --light-color: #f0faf7;
    --gray-color: #4a7068;
    --gray-light: #d1ede6;
    --success-color: #2dd4a0;
    --shadow: 0 10px 30px rgba(13, 110, 90, 0.10);
    --radius: 12px;
    --transition: all 0.3s ease;
    --animation-speed: 15s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.color-animated {
    background: linear-gradient(270deg, #0d6e5a, #0e9e7e, #2dd4a0, #0a7c6a, #34d399, #059669);
    background-size: 1200% 1200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorFlow var(--animation-speed) ease infinite;
}

@keyframes colorFlow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(13, 110, 90, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 90, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

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

.btn-github {
    background: #333;
    border: 2px solid #333;
}

.btn-github:hover {
    background: #24292e;
    border-color: #24292e;
}

.btn-website {
    background: linear-gradient(to right, #0e9e7e, #0d6e5a);
}

.btn-website:hover {
    background: linear-gradient(to right, #0a7c6a, #0a5446);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.logo .dynamic-color {
    animation: logoColorChange var(--animation-speed) infinite alternate;
}

@keyframes logoColorChange {
    0% { color: #0d6e5a; }
    25% { color: #0e9e7e; }
    50% { color: #2dd4a0; }
    75% { color: #0a7c6a; }
    100% { color: #059669; }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background-color: rgba(248, 250, 252, 0.85);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-text h1 span {
    color: var(--primary-color);
    animation: heroTextColor var(--animation-speed) infinite alternate;
}

@keyframes heroTextColor {
    0% { color: #0d6e5a; }
    33% { color: #0e9e7e; }
    66% { color: #2dd4a0; }
    100% { color: #059669; }
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-image {
    position: relative;
}

.image-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: imageContainerBg var(--animation-speed) infinite alternate;
}

@keyframes imageContainerBg {
    0% { background: linear-gradient(135deg, #0d6e5a, #0e9e7e); }
    25% { background: linear-gradient(135deg, #0e9e7e, #2dd4a0); }
    50% { background: linear-gradient(135deg, #2dd4a0, #0a7c6a); }
    75% { background: linear-gradient(135deg, #0a7c6a, #059669); }
    100% { background: linear-gradient(135deg, #059669, #0d6e5a); }
}

/* .image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/photo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    mix-blend-mode: overlay;
} */

/*profile*/
#profile2 {
    width: 25rem;
    height: 31rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
#profile {
    width: 25rem;
    height: 30rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.highlight-item {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.highlight-item span {
    display: block;
    color: var(--gray-color);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.highlight-item strong {
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Education Section */
.education {
    background-color: rgba(248, 250, 252, 0.85);
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.education-info {
    padding: 30px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.education-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-info h3 i {
    animation: iconColorChange var(--animation-speed) infinite alternate;
}

@keyframes iconColorChange {
    0% { color: #0d6e5a; }
    25% { color: #0e9e7e; }
    50% { color: #2dd4a0; }
    75% { color: #0a7c6a; }
    100% { color: #059669; }
}

.education-details {
    margin-top: 20px;
}

.education-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.education-item h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.education-period {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 10px 0;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.course-tag {
    background-color: var(--gray-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-tag.highlight {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.program-structure {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.program-structure h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.term-item {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.term-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.term-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Skills Section */
.skills {
    background-color: rgba(255, 255, 255, 0.85);
}

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

.skills-category {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-category h3 i {
    animation: iconColorChange var(--animation-speed) infinite alternate;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background-color: var(--gray-light);
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: var(--transition);
    z-index: -1;
}

.skill-tag:hover::before {
    width: 100%;
}

.hard-skill .skill-tag {
    background-color: rgba(13, 110, 90, 0.1);
    color: var(--primary-color);
}

.hard-skill .skill-tag::before {
    background: linear-gradient(to right, rgba(13, 110, 90, 0.2), rgba(14, 158, 126, 0.2));
}

.soft-skill .skill-tag {
    background-color: rgba(45, 212, 160, 0.1);
    color: var(--primary-color);
}

.soft-skill .skill-tag::before {
    background: linear-gradient(to right, rgba(45, 212, 160, 0.2), rgba(13, 110, 90, 0.2));
}

.skill-tag i {
    font-size: 1rem;
}

.skill-level {
    height: 4px;
    background-color: var(--gray-light);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    transition: width 1.5s ease;
}

.hard-skill .skill-progress {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    animation: progressColorChange var(--animation-speed) infinite alternate;
}

.soft-skill .skill-progress {
    background: linear-gradient(to right, #2dd4a0, #0d6e5a);
}

@keyframes progressColorChange {
    0% { background: linear-gradient(to right, #0d6e5a, #0e9e7e); }
    25% { background: linear-gradient(to right, #0e9e7e, #2dd4a0); }
    50% { background: linear-gradient(to right, #2dd4a0, #0a7c6a); }
    75% { background: linear-gradient(to right, #0a7c6a, #059669); }
    100% { background: linear-gradient(to right, #059669, #0d6e5a); }
}

/* Projects Section */
.projects {
    background-color: rgba(255, 255, 255, 0.85);
}

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

.project-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.project-img {
    height: 200px;
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    animation: projectImgBg var(--animation-speed) infinite alternate;
}

@keyframes projectImgBg {
    0% { background: linear-gradient(45deg, rgba(13, 110, 90, 0.1), rgba(14, 158, 126, 0.1)); }
    25% { background: linear-gradient(45deg, rgba(14, 158, 126, 0.1), rgba(45, 212, 160, 0.1)); }
    50% { background: linear-gradient(45deg, rgba(45, 212, 160, 0.1), rgba(10, 124, 106, 0.1)); }
    75% { background: linear-gradient(45deg, rgba(10, 124, 106, 0.1), rgba(5, 150, 105, 0.1)); }
    100% { background: linear-gradient(45deg, rgba(5, 150, 105, 0.1), rgba(13, 110, 90, 0.1)); }
}

.project-attendance { background-color: #dbeafe; }
.project-music { background-color: #fef3c7; }
.project-results { background-color: #dcfce7; }
.project-shoes { background-color: #fee2e2; }
.project-gym { background-color: #ede9fe; }

.project-icon {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.project-meta {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background-color: var(--gray-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.project-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Experience Section */
.experience {
    background-color: rgba(248, 250, 252, 0.85);
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 40px;
}

.experience-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.experience-card h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.experience-list {
    display: grid;
    gap: 18px;
}

.experience-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

.experience-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.experience-item span {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.experience-item p {
    color: var(--gray-color);
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.company-tags span {
    background-color: rgba(13, 110, 90, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 13px;
}

.language-box {
    border-top: 1px solid var(--gray-light);
    margin-top: 30px;
    padding-top: 26px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background-color: #f8fafc;
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 14px 16px;
}

.language-item span {
    color: var(--gray-color);
    font-weight: 600;
}

.language-item strong {
    color: var(--dark-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-item p {
    overflow-wrap: anywhere;
}

.contact-item a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: contactIconBg var(--animation-speed) infinite alternate;
}

@keyframes contactIconBg {
    0% { background: linear-gradient(to right, #0d6e5a, #0e9e7e); }
    25% { background: linear-gradient(to right, #0e9e7e, #2dd4a0); }
    50% { background: linear-gradient(to right, #2dd4a0, #0a7c6a); }
    75% { background: linear-gradient(to right, #0a7c6a, #059669); }
    100% { background: linear-gradient(to right, #059669, #0d6e5a); }
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 90, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 60px 0 30px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.footer-logo span {
    animation: footerLogoColor var(--animation-speed) infinite alternate;
}

@keyframes footerLogoColor {
    0% { color: #2dd4a0; }
    25% { color: #0e9e7e; }
    50% { color: #34d399; }
    75% { color: #0a7c6a; }
    100% { color: #059669; }
}

.social-links {
    display: flex;
    gap: 20px;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE DESIGN — ALL DEVICES
============================================= */
@media (max-width: 992px) {
    .hero-content, .about-content, .education-content, .experience-grid, .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
    .skills-container { grid-template-columns: 1fr; }

    .hero-content { text-align: center; }
    .hero-text p { max-width: 100%; }
    .hero-actions { justify-content: center; }

    #profile2, #profile {
        width: 100%;
        max-width: 22rem;
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
        display: block;
    }

    .about-content { text-align: center; }
    .about-highlights { justify-items: center; }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 16px 20px 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    nav ul.active { transform: translateY(0); opacity: 1; visibility: visible; }
    nav ul li { margin: 0 0 12px 0; }
    nav ul li:last-child { margin-bottom: 0; }
    .mobile-menu-btn { display: block; }

    .hero { padding-top: 120px; padding-bottom: 70px; }
    .hero-text h1 { font-size: 2.4rem; }
    section { padding: 80px 0; }
    .section-title { margin-bottom: 40px; }
    .skills-category { padding: 28px; }
    .pc-grid { grid-template-columns: 1fr; gap: 20px; }
    .education-info, .program-structure { padding: 24px; }
    .experience-card { padding: 24px; }
    .contact-form { padding: 30px; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    section { padding: 64px 0; }
    .section-title h2 { font-size: 1.9rem; }
    .hero { padding-top: 110px; padding-bottom: 60px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }
    .about-highlights { grid-template-columns: 1fr; }
    .skills-category { padding: 22px; }
    .skill-tag { font-size: 0.88rem; padding: 8px 14px; }
    .education-info, .program-structure { padding: 20px; }
    .education-item h4 { font-size: 1.05rem; }
    .experience-card { padding: 20px; }
    .contact-form { padding: 20px; }
    .contact-icon { width: 42px; height: 42px; font-size: 1rem; flex-shrink: 0; }
    .footer-logo { font-size: 1.5rem; }
}

@media (max-width: 400px) {
    .container { padding: 0 12px; }
    section { padding: 52px 0; }
    .section-title h2 { font-size: 1.6rem; }
    .hero { padding-top: 100px; }
    .hero-text h1 { font-size: 1.75rem; }
    .btn { padding: 10px 20px; font-size: 0.95rem; }
    .logo { font-size: 1.5rem; }
    .skills-category { padding: 18px; }
    .skill-tag { font-size: 0.82rem; padding: 7px 12px; }
    .education-info, .program-structure, .experience-card, .contact-form { padding: 16px; }
    .contact-info { gap: 18px; }
    .contact-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .footer-content { gap: 18px; }
    .social-links { gap: 14px; }
    .pc-hero { height: 190px; }
    .pc-title { font-size: 0.95rem; }
    .pc-stats { gap: 8px; }
    .pc-stat { padding: 10px 6px; }
}

@media (max-width: 320px) {
    .hero-text h1 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.4rem; }
    nav ul li a { font-size: 0.9rem; }
    .btn { padding: 9px 16px; font-size: 0.88rem; }
    .highlight-item { padding: 12px; }
    .course-tag, .tech-tag { font-size: 0.75rem; padding: 4px 10px; }
}

/* =============================================
   PROJECT CARDS — Glassmorphism Expandable
============================================= */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.pc-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pc-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

/* Hero image area */
.pc-hero {
    position: relative;
    height: 220px;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-card--expanded .pc-hero {
    height: 240px;
}

.pc-hero-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.18);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.pc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}

.pc-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

.pc-hero-text {
    flex: 1;
    min-width: 0;
}

.pc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.pc-location {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Glassmorphism buttons */
.pc-hero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pc-glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.pc-glass-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

/* Expanded body */
.pc-body {
    padding: 20px 22px 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-author {
    font-size: 0.8rem;
    color: #7a7a7a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stats row */
.pc-stats {
    display: flex;
    gap: 10px;
}

.pc-stat {
    flex: 1;
    background: #f3f3f3;
    border-radius: 16px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.pc-stat i {
    font-size: 1rem;
    color: var(--primary-color);
}

.pc-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    line-height: 1;
}

.pc-stat-label {
    font-size: 0.7rem;
    color: #7a7a7a;
    font-weight: 500;
}

/* Description */
.pc-desc {
    font-size: 0.88rem;
    color: #7a7a7a;
    line-height: 1.65;
    margin: 0;
}

/* Tech tags */
.pc-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.pc-tag {
    background: #f3f3f3;
    color: #111111;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.01em;
}

/* Toggle arrow button */
.pc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7a7a7a;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.pc-toggle:hover {
    color: var(--primary-color);
}

.pc-toggle i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-card--expanded .pc-toggle i {
    transform: rotate(180deg);
}

/* More button row */
.pc-more {
    text-align: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .pc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .pc-hero {
        height: 190px;
    }

    .pc-title {
        font-size: 0.95rem;
    }

    .pc-stats {
        gap: 8px;
    }

    .pc-stat {
        padding: 10px 6px;
    }
}

/* Project card smooth expand */
.pc-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}

.pc-body--open {
    max-height: 600px;
    padding: 20px 22px 4px;
}
