/* ══════════════════════════════════════════════════════════
   AARYA KABRA — PORTFOLIO STYLES
   Color Theme: #250902, #38040e, #640d14, #800e13, #ad2831
   Font: Times New Roman
   ══════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
    --c1: #250902;
    --c2: #38040e;
    --c3: #640d14;
    --c4: #800e13;
    --c5: #ad2831;
    --cream: #fdf6f0;
    --warm-cream: #f5ebe0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --gold: #c9a96e;
    --warm-brown: #8b5e3c;
    --font: 'Times New Roman', Times, serif;
    --shadow: 0 4px 20px rgba(37, 9, 2, 0.12);
    --shadow-lg: 0 8px 40px rgba(37, 9, 2, 0.18);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ─── SECTION COMMON ─── */
.section {
    padding: 100px 8% 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.6rem;
    color: var(--c1);
    text-align: center;
    margin-bottom: 0.4em;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--c5);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: var(--c1);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    cursor: pointer;
}

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

.nav-links li a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c5);
    transition: width var(--transition);
}

.nav-links li a:hover {
    color: var(--white);
}

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

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — LANDING
   ═══════════════════════════════════════════════════════════ */
#landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 40%, var(--c3) 100%);
    color: var(--white);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

#landing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173,40,49,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 0.3em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-designation {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

.hero-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s 0.8s ease forwards;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--c5);
    color: var(--white);
    border: 2px solid var(--c5);
}

.cta-btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(173,40,49,0.4);
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
}

.cta-btn-outline:hover {
    background: var(--white);
    color: var(--c1);
    border-color: var(--white);
}

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

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0);
}

.social-icon.pop-in {
    animation: popBounce 0.5s ease forwards;
}

.social-icon:hover {
    background: var(--c5);
    border-color: var(--c5);
    transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — ABOUT ME
   ═══════════════════════════════════════════════════════════ */
#about {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}

.about-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--c3);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.profile-photo.slide-in {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(100,13,20,0.3), var(--shadow-lg);
}

.view-work-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.view-work-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 10px 18px;
    background: var(--cream);
    border-radius: 8px;
    color: var(--c3);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.view-work-btn.slide-up {
    opacity: 1;
    transform: translateY(0);
}

.view-work-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c5);
    transition: width 0.4s ease;
}

.view-work-btn:hover {
    background: var(--warm-cream);
    color: var(--c5);
}

.view-work-btn:hover::after {
    width: 100%;
}

.view-work-btn:hover i {
    transform: translateX(4px);
    transition: transform var(--transition);
}

.about-summary {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* Flip Cards */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.flip-card {
    perspective: 1000px;
    height: 200px;
    cursor: pointer;
    opacity: 0;
}

.flip-card.mission-card.flip-in {
    animation: flipInY 0.7s ease forwards;
}

.flip-card.vision-card.flip-in {
    animation: flipInY 0.7s 0.2s ease forwards;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--c3), var(--c4));
    color: var(--white);
}

.flip-card-front i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.flip-card-front h3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.flip-card-back {
    background: var(--c1);
    color: var(--white);
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — WORK EXPERIENCE
   ═══════════════════════════════════════════════════════════ */
#experience {
    background: var(--cream);
}

.experience-content {
    max-width: 700px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.experience-content.visible {
    animation: fadeIn 0.8s ease forwards;
}

.experience-placeholder {
    margin-bottom: 2rem;
}

.experience-icon {
    font-size: 3rem;
    color: var(--c3);
    margin-bottom: 1rem;
    display: block;
}

.experience-placeholder h3 {
    font-size: 1.4rem;
    color: var(--c4);
    font-style: italic;
}

.elegant-message-block {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--c5);
    box-shadow: var(--shadow);
}

.elegant-message-block h3 {
    font-size: 1.4rem;
    color: var(--c1);
    margin-bottom: 0.8rem;
}

.elegant-message-block p {
    color: var(--text-muted);
    line-height: 1.8;
}

.note-text {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

.note-text a {
    color: var(--c5);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — EDUCATION
   ═══════════════════════════════════════════════════════════ */
#education {
    background: var(--white);
}

.education-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.edu-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.edu-card:hover::before {
    border-color: var(--warm-brown);
}

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

.edu-card:hover .edu-icon i {
    animation: capToss 0.6s ease;
}

.edu-card.drop-in.animated {
    animation: dropIn 0.7s ease forwards;
}

.edu-card.rise-up.animated {
    animation: riseUp 0.7s ease forwards;
}

.edu-icon {
    width: 60px;
    height: 60px;
    background: var(--c3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.edu-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transition: transform var(--transition);
}

.edu-card h3 {
    font-size: 1.3rem;
    color: var(--c1);
    margin-bottom: 0.3rem;
}

.edu-card h4 {
    font-size: 1rem;
    color: var(--c3);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.edu-meta i {
    color: var(--c5);
    margin-right: 4px;
}

.edu-highlights {
    list-style: none;
}

.typewriter-bullet {
    padding: 6px 0;
    padding-left: 1.2em;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0;
}

.typewriter-bullet::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--c5);
}

.typewriter-bullet.typed {
    animation: typeIn 0.6s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — PROJECTS
   ═══════════════════════════════════════════════════════════ */
#projects {
    background: var(--cream);
}

.project-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-bottom: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.project-panel-left {
    background: var(--c1);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all var(--transition);
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(4px);
}

.project-panel-left.slide-in {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.project-panel-left:hover {
    box-shadow: inset 0 0 40px rgba(173,40,49,0.3);
}

.project-number {
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.project-title-side {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.project-type-side {
    font-size: 0.8rem;
    opacity: 0.6;
}

.project-content-right {
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.6s 0.3s ease;
}

.project-content-right.fade-in-right {
    opacity: 1;
}

.project-title {
    font-size: 1.5rem;
    color: var(--c1);
    margin-bottom: 0.5rem;
    transition: letter-spacing var(--transition);
}

.project-title:hover {
    letter-spacing: 1.5px;
}

.project-meta {
    color: var(--c3);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.project-meta i {
    margin-right: 3px;
}

.project-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-content-right h4 {
    font-size: 1.1rem;
    color: var(--c1);
    margin-bottom: 1rem;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.outcome-box {
    background: var(--cream);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-left: 3px solid var(--c5);
    opacity: 0;
    transform: translateY(15px);
}

.outcome-box.pop-in {
    animation: popIn 0.4s ease forwards;
}

.outcome-num {
    display: inline-block;
    font-weight: 700;
    color: var(--c5);
    margin-right: 6px;
    font-size: 0.85rem;
}

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

.tech-pill {
    display: inline-block;
    padding: 6px 16px;
    background: var(--c1);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

.tech-pill.bounce-in {
    animation: rubberBand 0.6s ease forwards;
}

.tech-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tech-pill:hover::before {
    left: 100%;
}
.metrics-note {
    font-size: 11px;
}
/* ═══════════════════════════════════════════════════════════
   SECTION 6 — SKILLS
   ═══════════════════════════════════════════════════════════ */
#skills {
    background: var(--white);
}

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

.skill-category {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.85);
}

.skill-category.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.skill-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--cream), var(--warm-cream));
}

.skill-category:hover .skill-category-header i {
    animation: spin360 1s ease;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.skill-category-header i {
    font-size: 1.5rem;
    color: var(--c5);
    transition: transform 0.3s;
}

.skill-category-header h3 {
    font-size: 1.15rem;
    color: var(--c1);
}

.developing-badge {
    background: var(--c5);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.skill-name {
    font-size: 0.88rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-bar {
    height: 8px;
    background: rgba(37,9,2,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c3), var(--c5));
    border-radius: 4px;
    transition: width 1s ease-out;
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c3);
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — CERTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#certifications {
    background: var(--cream);
}

.carousel {
    max-width: 700px;
    margin: 2.5rem auto 0;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
}

.carousel > * {
    flex: 0 0 100%;
}

.group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
    animation: scrolling 10s linear infinite;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.carousel:hover .group {
    animation-play-state: paused;
}

.card {
    width: 100%;
    min-width: 280px;
    color: var(--white);
    background: var(--c3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.card:nth-child(1) {
    background: var(--c3);
}

.card:nth-child(2) {
    background: #800e13;
}

.card:nth-child(3) {
    background: #800e13;
}

.card:nth-child(4) {
    background: var(--c3);
}

.card:nth-child(5) {
    background: #800e13;
}

.card:nth-child(6) {
    background: #800e13;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — ACHIEVEMENTS
   ═══════════════════════════════════════════════════════════ */
#achievements {
    background: var(--white);
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius);
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--c5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.achievement-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.7);
}

.achievement-card.zoom-in {
    animation: zoomBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.achievement-card:hover::before {
    border-color: var(--gold);
}

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

.achievement-badge {
    margin-bottom: 1rem;
}

.achievement-badge span {
    display: inline-block;
    padding: 4px 14px;
    background: var(--c3);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: scale(0);
}

.achievement-badge span.badge-pop {
    animation: popBounce 0.5s ease forwards;
}

.achievement-card:hover .achievement-badge span {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(201,169,110,0.4);
}

.achievement-year {
    font-size: 0.85rem;
    color: var(--c5);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-card h3 {
    font-size: 1.15rem;
    color: var(--c1);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.achievement-card h4 {
    font-size: 0.95rem;
    color: var(--c3);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 9 — CONTACT
   ═══════════════════════════════════════════════════════════ */
#contact {
    background: var(--cream);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.contact-form-panel {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-30px, 30px) rotate(-1deg);
}

.contact-form-panel.slide-in-bl {
    animation: slideInBL 0.7s ease forwards;
}

.contact-form-panel h3 {
    font-size: 1.4rem;
    color: var(--c1);
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-input {
    width: 100%;
    padding: 14px 0 10px;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus {
    border-bottom-color: var(--c5);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.floating-label {
    position: absolute;
    top: 14px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all var(--transition);
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: -8px;
    font-size: 0.78rem;
    color: var(--c5);
    font-weight: 600;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c5);
    transition: width 0.4s ease;
}

.form-input:focus ~ .input-underline {
    width: 100%;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 32px;
    background: var(--c5);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.send-btn:hover::before {
    left: 100%;
}

.send-btn:hover {
    background: var(--c4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128,14,19,0.3);
}

.send-btn.pulse {
    animation: gentlePulse 1s ease;
}

/* Contact Info Panel */
.contact-info-panel {
    background: var(--c1);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translate(30px, 30px) rotate(1deg);
}

.contact-info-panel.slide-in-br {
    animation: slideInBR 0.7s ease forwards;
}

.contact-info-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 0;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-row:hover {
    transform: translateX(8px);
}

.contact-row:hover i {
    color: var(--c5);
}

.contact-row i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: color var(--transition);
}

.contact-row a,
.contact-row span {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.85);
}

.contact-row a:hover {
    color: var(--white);
}

.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: all var(--transition);
}

.contact-socials a:hover {
    background: var(--c5);
    border-color: var(--c5);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
    background: var(--c2);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.footer-socials a:hover {
    background: var(--c5);
    border-color: var(--c5);
    color: var(--white);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

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

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

@keyframes popBounce {
    0%   { opacity: 0; transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes flipInY {
    0%   { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    40%  { transform: perspective(400px) rotateY(-15deg); }
    70%  { transform: perspective(400px) rotateY(10deg); }
    100% { opacity: 1; transform: perspective(400px) rotateY(0); }
}

@keyframes dropIn {
    0%   { opacity: 0; transform: translateY(-80px) rotate(-3deg); }
    60%  { transform: translateY(5px) rotate(0.5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes riseUp {
    0%   { opacity: 0; transform: translateY(80px) rotate(3deg); }
    60%  { transform: translateY(-5px) rotate(-0.5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

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

@keyframes capToss {
    0%   { transform: translateY(0) rotate(0); }
    50%  { transform: translateY(-8px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0); }
}

@keyframes popIn {
    0%   { opacity: 0; transform: translateY(15px) scale(0.95); }
    70%  { transform: translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rubberBand {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { transform: scale(1.15); }
    65%  { transform: scale(0.95); }
    80%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes spin360 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes zoomBounce {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInBL {
    from { opacity: 0; transform: translate(-30px, 30px) rotate(-1deg); }
    to   { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes slideInBR {
    from { opacity: 0; transform: translate(30px, 30px) rotate(1deg); }
    to   { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@keyframes gentlePulse {
    0%   { box-shadow: 0 0 0 0 rgba(173,40,49,0.5); }
    50%  { box-shadow: 0 0 0 10px rgba(173,40,49,0); }
    100% { box-shadow: 0 0 0 0 rgba(173,40,49,0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--c1);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

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

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-photo-col {
        order: -1;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-panel-left {
        padding: 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }

    .project-number {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

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

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-bar {
        gap: 1rem;
    }

    .skill-item {
        grid-template-columns: 1fr 1fr 36px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 80px 5% 60px;
    }

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

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

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .edu-card {
        padding: 1.5rem;
    }

    .edu-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}
