@import 'base.css';

/* =========================================
   1. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    padding: 12px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--bg-overlay);
    border: 1px solid var(--border-overlay);
    border-radius: 100px;
    box-shadow: var(--shadow-main);
}

.nav-logo {
    display: block;
    text-decoration: none;
    color: inherit;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    margin-right: 15px;
    border-right: 1px solid var(--border-overlay);
    padding-right: 25px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

[data-theme='dark'] .contact-icon,
[data-theme='dark'] .carousel-bottom-logo {
    filter: brightness(0) invert(1);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    background: transparent;
    transform: scale(1.15) rotate(15deg);
    color: var(--accent-blue);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme='dark'] .sun-icon { display: block; }
[data-theme='dark'] .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .sun-icon { display: block; }
    :root:not([data-theme='light']) .moon-icon { display: none; }
}

/* Override system preference if data-theme is explicitly set */
[data-theme='light'] .sun-icon { display: none; }
[data-theme='light'] .moon-icon { display: block; }

/* =========================================
   2. CAROUSEL HEADER (HERO)
   ========================================= */
#carousel-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 10;
    background: var(--gray-900); 
    transition: background 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-orbs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    top: -15%; left: -15%;
}

.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    bottom: -15%; right: -15%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

.carousel-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-card {
    position: absolute;
    width: 85vw;
    max-width: 1400px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carousel-card.active {
    opacity: 1;
    z-index: 100;
    transform: translateX(0) scale(1) translateZ(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.6s, transform 0.6s, visibility 0s;
}

.carousel-card:not(.active) {
    opacity: 0;
    z-index: -1; 
    pointer-events: none;
    visibility: hidden; 
    transition: opacity 0.4s, transform 0.6s, visibility 0s 0.4s; 
}

.carousel-card.prev {
    transform: translateX(-50%) scale(0.6) translateZ(-100px);
}

.carousel-card.next {
    transform: translateX(50%) scale(0.6) translateZ(-100px);
}

.carousel-card.far-prev,
.carousel-card.far-next {
    display: none !important; 
}

.carousel-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 2%; 
    z-index: 2;
    box-sizing: border-box;
    pointer-events: none; 
}

.carousel-text-col {
    flex: 0 0 55%; 
    text-align: left;
    color: var(--text-inverse);
    z-index: 10;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-image-col {
    flex: 0 0 40%;
    height: 80%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-logo-small {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.9;
    align-self: flex-start;
}

.carousel-slogan {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
    word-break: keep-all;
}

.carousel-detail {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    word-break: keep-all;
    max-width: 90%;
}

.carousel-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    border-top: 1px solid var(--border-overlay);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-inverse);
    line-height: 1.4;
}

.carousel-mockup {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transform: translateZ(50px);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
}

.carousel-card.active .carousel-mockup {
    transform: translateZ(100px) scale(1.1);
    animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {
    0%, 100% { transform: translateZ(100px) scale(1.1) translateY(0); }
    50% { transform: translateZ(100px) scale(1.1) translateY(-15px); }
}

.carousel-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    background: var(--bg-main);
    z-index: 20;
    border-radius: 50% 50% 0 0 / 25px 25px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    min-height: 140px;
}

[data-theme='dark'] .carousel-bottom-bar {
    background: #8180803b;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}

.carousel-bottom-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-overlay);
    color: var(--text-inverse);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }



/* =========================================
   3. GLOBAL SECTION STYLES
   ========================================= */
section {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

/* Section Headings */
.section-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: row;
	align-items: center;
    gap: 15px;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.mobile-text { display: none; }

/* =========================================
   4. PROFILE SECTION
   ========================================= */
#profile {
    padding: 180px 0 100px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    text-align: left;
    position: relative;
    overflow: visible;
}

.profile-aura {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(0, 210, 255, 0.03) 70%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: float-aura 20s infinite alternate ease-in-out;
}

.aura-1 { top: -100px; left: -150px; }
.aura-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%); animation-delay: -5s; }

@keyframes float-aura {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    perspective: 1000px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
}

.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.profile-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    position: relative;
    color: var(--text-primary);
}

.profile-title span {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-neon), var(--accent-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.profile-tag {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.5;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
}

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

/* =========================================
   5. CORE VALUES SECTION
   ========================================= */
#core-values {
    position: relative;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.core-value-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.core-value-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-alt);
}

.core-value-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.core-value-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    word-break: keep-all;
}

.core-value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: keep-all;
}

/* =========================================
   6. SKILLS SECTION
   ========================================= */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    padding-bottom: 20px;
}

.skill-cat-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-cat-title::after {
    content: ''; flex: 1; height: 1px; background: var(--border-subtle);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tech-chip:hover {
    background: var(--bg-card);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
    color: var(--text-primary);
}

.tech-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.project-row-view {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.project-impact-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

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

.project-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-impact-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px;
}

[data-theme='dark'] .project-impact-logo.logo-invert {
    filter: invert(1);
	background: transparent;
    border-color: #d2c8b7;
}

.project-impact-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.project-impact-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-impact-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0;
}

.project-view-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem; 
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: 100px;
    transition: all 0.2s ease;
    text-decoration: none; 
    border: 1px solid transparent; 
}

.project-view-cta:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

[data-theme='dark'] .project-view-cta:hover {
    background: #131827;
    color: var(--text-primary);
}

.project-impact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech-chip {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-impact-details {
    width: 100%;
    margin-top: auto;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.project-impact-summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.project-impact-summary::-webkit-details-marker {
    display: none;
}

.project-impact-summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.project-impact-details[open] .project-impact-summary::after {
    transform: rotate(45deg);
}

.project-impact-summary:hover {
    font-weight: 900;
}

.project-impact-body {
    padding: 16px;
    border-top: 1px solid transparent;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-secondary);
    animation: fadeIn 0.3s ease;
}

.project-impact-details[open] .project-impact-body {
    border-color: var(--border-subtle);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-impact-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.project-impact-list li {
    margin-bottom: 6px;
    position: relative;
    list-style-type: none;
    font-weight: 400;
}

.project-impact-list li::before {
    content: "•";
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.project-impact-list strong {
    color: var(--text-primary);
    font-weight: 700;
    margin-right: 4px;
}



/* =========================================
   8. EXPERIENCE SECTION
   ========================================= */
.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--border-default);
}

.experience-item {
    position: relative;
    margin-bottom: 40px;
}

.experience-item::after {
    content: '';
    position: absolute;
    left: -34px; top: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg-main);
}

.experience-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: block;
}

.experience-title {
    font-weight: 800;
    font-size: 1.1rem;
	color: var(--text-primary);
}

.info-box {
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid var(--border-subtle);
}

.info-box strong {
    color: var(--accent-indigo);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   9. AWARDS & CERTIFICATIONS (RECORDS)
   ========================================= */
.record-list {
    margin-top: 20px;
}

.record-item {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

#awards .record-item:last-of-type,
#certifications .record-item:last-of-type {
    border-bottom: none !important;
}

.record-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.record-content {
    display: flex;
    flex-direction: column;
}

.record-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}

.record-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid var(--accent-indigo);
}

.record-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.record-sub a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.record-sub a:hover {
	font-weight: 700;
    text-decoration: underline;
}

.record-badge {
    justify-self: end;
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.record-badge.award { background: var(--accent-navy); } 

/* =========================================
   10. REVIEWS SECTION
   ========================================= */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.review-hidden {
    display: none !important;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.1;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--text-primary);
}

.review-card:hover::before {
    opacity: 0.6;
}

.review-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-primary);
    word-break: keep-all;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 15px;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.review-project {
    font-family: 'Outfit';
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Ensure background color applies to sections */
[data-theme='dark'] body,
[data-theme='dark'] section,
[data-theme='dark'] footer {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme='dark'] .modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    padding: 80px 60px 60px 60px;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 25px; right: 25px;
    background: var(--bg-alt);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    z-index: 10;
}

.editorial-body h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 950;
    line-height: 1.1;
    margin-bottom: 40px;
    color: var(--text-primary);
    word-break: keep-all;
    letter-spacing: -0.02em;
}

.editorial-body blockquote {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 4px solid #9ca3af;
    padding-left: 30px;
    margin: 40px 0;
    line-height: 1.8;
    font-style: italic;
    text-align: justify;
    word-break: keep-all;
}

.editorial-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: justify;
    word-break: keep-all;
}

.editorial-body ul, 
.editorial-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.editorial-body li {
    font-size: 0.95rem; 
    line-height: 1.9;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: justify;
    word-break: keep-all;
}

.editorial-body strong {
    color: var(--text-primary);
    font-weight: 800;
    background: linear-gradient(120deg, var(--accent-soft-blue) 0%, var(--accent-soft-blue) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
    padding: 0 4px;
}

[data-theme='dark'] .editorial-body strong {
    background: linear-gradient(120deg, var(--accent-soft-blue) 0%, var(--accent-soft-blue) 100%);
	color: var(--accent-indigo);
}

/* =========================================
   11. FOOTER & CONTACT
   ========================================= */
.contact-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

footer {
    padding: 60px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

/* =========================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* --- Tablet / Small Desktop (max-width: 900px) --- */
@media (max-width: 900px) {
    #profile { overflow: hidden; }

    nav {
        max-width: 500px; 
        padding: 12px 25px; 
        gap: 15px; 
    }
    .nav-links a[href="#skills"] { display: none !important; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.75rem; }
    .nav-logo { margin-right: 0; padding-right: 15px; font-size: 0.95rem; }


    
    .record-item { 
        grid-template-columns: 1fr auto; 
        grid-template-rows: auto auto; 
        gap: 8px; 
    }
    
    .record-date { 
        grid-column: 1; 
        grid-row: 1; 
        margin-bottom: 0;
    }

    .record-badge { 
        grid-column: 2; 
        grid-row: 1; 
        justify-self: end; 
        margin-top: 0; 
    }

    .record-content {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-top: 4px;
    }
    
    /* Core Values */
    .core-values-grid { grid-template-columns: 1fr; }

    /* Carousel Layout Stack */
    .carousel-card-inner {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding: 30px 20px;
    }

    .carousel-text-col {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
        align-items: center;
        padding-right: 0;
        margin-top: 20px;
    }

    .carousel-image-col {
        flex: 0 0 40%;
        width: 80%;
        height: auto;
    }
    
    .carousel-logo-small { align-self: center; height: 30px; margin-bottom: 10px; }
    .carousel-slogan { font-size: 1.5rem; margin-bottom: 20px; }
    .carousel-meta-grid { text-align: left; }

    /* 3. Push Inactive Cards WAY off-screen on mobile to prevent overlap */
    /* Using 120vw ensures they are completely out of the viewport width */
    .carousel-card.prev { transform: translateX(-150%) scale(0.5) !important; }
    .carousel-card.next { transform: translateX(150%) scale(0.5) !important; }

    /* Hide Bottom Bar */
    .carousel-bottom-bar { display: none; }
    
    /* Reduce Mockup Size */
    .carousel-image-col { flex: 0 0 35%; height: 35%; width: 100%; margin-bottom: 20px; }
    .carousel-mockup { height: auto; max-width: 180px; } 

    /* Contact Stack */
    .contact-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .contact-item { width: 100%; justify-content: center; }
}

/* --- Mobile Landscape / Tablet Portrait (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hero Section */
    #profile {
        padding: 140px 0 60px 0;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .profile-image-wrapper { max-width: 280px; margin: 0 auto; overflow: visible; }
    .profile-title { font-size: 3.2rem; margin-top: 0; }
    .section-title { font-size: 1.9rem; }
    .profile-aura { display: none; }
    #profile { overflow: visible; }


    
    /* Simplify Headers */
    #reviews .section-title .desktop-text { display: none; }
    #reviews .section-title .mobile-text { display: inline; }

    /* Reviews Grid */
    .review-grid { grid-template-columns: 1fr; }

    /* Modal */
    .modal-content { padding: 90px 35px 50px 35px; width: 95%; }
    .editorial-body h1 { font-size: 1.6rem; }



    /* Timeline */
    .experience-timeline { padding-left: 20px; }
    .experience-timeline::before { left: 0; }
    .experience-item::after { left: -29px; width: 20px; height: 20px; }

}

/* --- Large Mobile (max-width: 600px) --- */
@media (max-width: 600px) {
    
    /* Mobile adjustments for Impact Card */
    .project-impact-card { padding: 20px; }
    .project-impact-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    
    .project-view-cta {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .project-impact-logo { width: 48px; height: 48px; }
    .project-impact-title { font-size: 1.25rem; }
    .project-impact-subtitle { font-size: 0.85rem; line-height: 1.4; }
    
    .project-impact-summary { font-size: 0.9rem; }
    .project-impact-body { padding: 16px; }
    .project-impact-list li { font-size: 0.9rem; }

    .project-tech-chip { font-size: 0.7rem; padding: 4px 10px; }
}

/* --- Mobile Standard (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Layout & container */
    .container { padding: 0 24px; }
    #profile { overflow: hidden; width: 100%; box-sizing: border-box; position: relative; }
    
    .carousel-card { width: 95vw; }
    .carousel-card-inner { padding: 20px 15px; }
    .carousel-meta-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 4px; 
        padding-top: 10px;
        width: 100%;
    }
    .carousel-meta-grid .meta-label { font-size: 0.55rem; letter-spacing: 0; }
    .carousel-meta-grid .meta-value { font-size: 0.7rem; word-break: keep-all; }
    .meta-item { min-width: 0; }
 
    /* Navigation */
    nav {
        width: 98%; 
        padding: 8px 12px;
        gap: 5px; 
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 20px;
        -webkit-overflow-scrolling: touch;
        max-width: calc(100vw - 20px);
    }
    /* Hide scrollbars */
    nav::-webkit-scrollbar { display: none; }
    nav { -ms-overflow-style: none; scrollbar-width: none; }

    /* Compact Mobile Nav */
    .nav-links a[href="#skills"] {
        display: none !important;
    }
    
    .nav-links { gap: 15px; padding-right: 5px; flex-shrink: 0; }
    .nav-links a { font-size: 0.7rem; font-weight: 700; }
    .nav-logo { padding-right: 10px; font-size: 0.8rem; font-weight: 800; }
    
    .theme-toggle-btn {
        margin-left: 5px;
        padding: 5px;
    }
    .theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Hero Typography */
    .profile-content { align-items: center; width: 100%; padding: 0; }
    .profile-title {
        font-size: 11.8vw; 
        line-height: 1.1;
        overflow-wrap: break-word; 
        word-break: normal;
        width: 100%;
        text-align: center;
    }
}

/* --- Small Mobile (max-width: 380px) --- */
@media (max-width: 380px) {
    nav {
        /* Floating Pill Design */
        width: 96%;
        max-width: calc(100vw - 16px); 
        border-radius: 50px;
        left: 50%;
        transform: translateX(-50%);
        top: 15px; 
        padding: 8px 10px;
        gap: 2px; 
        justify-content: space-between; 
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-logo {
        font-size: 0.8rem;
        margin-right: 2px;
        padding-right: 5px;
    }

    .nav-links a { font-size: 0.65rem; }
    .nav-links { gap: 6px; padding-right: 0; }
}
