/* ==================== Variables ==================== */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);

    /* Gradient Colors */
    --gradient-start: #8a55fe;
    --gradient-mid: #6f9af8;
    --gradient-end: #5cdfe6;
    --gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-primary: #343535;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #4a4a4a;
    --card-bg: #3f3f3f;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== Header ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] header {
    background-color: rgba(52, 53, 53, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.header-btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 85, 254, 0.3);
}

.header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 85, 254, 0.4);
}

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

.header-btn-secondary:hover {
    border-color: var(--gradient-start);
    background: rgba(138, 85, 254, 0.1);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--gradient-start);
    transform: rotate(20deg);
}

.sun-icon {
    display: none;
}

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Cursor Trail Effect (Canvas) */
.cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    .cursor-trail-canvas {
        display: none;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, #8a55fe 0%, #5cdfe6 50%, #8a55fe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
}

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

.hero-description {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--card-shadow);
    animation: float 3s ease-in-out infinite;
}

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

/* ==================== Buttons ==================== */
.btn {
    font-family: 'Pretendard', sans-serif;
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 85, 254, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--gradient-start);
    transform: translateY(-2px);
}

/* ==================== Sections ==================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.section-description {
    font-family: 'Pretendard', sans-serif;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.section-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.category-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gradient-start);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* ==================== Cards ==================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--card-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--card-shadow);
}

.card-title {
    font-family: 'Pretendard', sans-serif;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-title svg {
    color: var(--gradient-start);
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.card-highlight {
    background: var(--gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(92, 223, 230, 0.3) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card-highlight:hover::before {
    opacity: 1;
    animation: hologramShine 1.5s ease-out;
}

@keyframes hologramShine {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.card-highlight .card-title,
.card-highlight .card-desc {
    color: white;
    position: relative;
    z-index: 1;
}

.card-highlight .card-title svg {
    color: white;
}

.card-highlight .btn-primary {
    background: white;
    color: var(--gradient-start);
    border: 2px solid white;
    position: relative;
    z-index: 1;
}

.card-highlight .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ==================== About Section ==================== */
.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================== Resume Section ==================== */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.resume-item {
    margin-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

.school-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.1;
    pointer-events: none;
}

.resume-item h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.resume-period {
    color: var(--gradient-start);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.resume-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: keep-all;
}

/* Experience Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.experience-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: var(--spacing-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.experience-item:hover {
    transform: translateX(5px);
    border-color: var(--gradient-start);
    box-shadow: 0 4px 20px var(--card-shadow);
}

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

.experience-header h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.experience-period {
    color: var(--gradient-start);
    font-weight: 600;
    font-size: 0.875rem;
}

.experience-role {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-team {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.experience-project {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.award-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: var(--spacing-md);
    transition: var(--transition);
}

.award-item:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-end);
    box-shadow: 0 8px 30px var(--card-shadow);
}

.award-item h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.award-project {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.award-date {
    color: var(--gradient-end);
    font-weight: 600;
    font-size: 0.875rem;
}

.award-group .award-subitem {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.award-group .award-subitem:first-of-type {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

/* Skills Card Wide Layout */
.card-wide {
    grid-column: 1 / -1;
}

/* Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Skills Bar System */
.skills-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gradient-start);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.skill-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0.5rem 0;
}

.skill-level-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-name {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 50px;
    overflow: visible;
    position: relative;
    border: 1px solid var(--border-color);
}

.skill-bar::before,
.skill-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background: white;
    z-index: 10;
    border-radius: 1px;
}

[data-theme="dark"] .skill-bar::before,
[data-theme="dark"] .skill-bar::after {
    background: rgba(255, 255, 255, 0.8);
}

.skill-bar::before {
    left: 33.33%;
}

.skill-bar::after {
    left: 66.66%;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 50px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2.5s infinite;
}

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

/* ==================== Portfolio Section ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==================== 3D Portfolio Cards ==================== */
.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: visible;
}

.portfolio-image-wrapper.portfolio-3d {
    perspective: 800px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.portfolio-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

.portfolio-layer-back {
    background: linear-gradient(135deg, rgba(138, 85, 254, 0.4), rgba(92, 223, 230, 0.4));
    border: 2px solid rgba(138, 85, 254, 0.3);
    transform: translateZ(-40px);
    opacity: 0.5;
    box-shadow: 0 10px 30px rgba(138, 85, 254, 0.2);
}

.portfolio-layer-mid {
    background: linear-gradient(135deg, rgba(138, 85, 254, 0.25), rgba(92, 223, 230, 0.25));
    border: 1px solid rgba(92, 223, 230, 0.2);
    transform: translateZ(-20px);
    opacity: 0.6;
    box-shadow: 0 5px 20px rgba(92, 223, 230, 0.15);
}

.portfolio-layer-front {
    position: relative;
    transform: translateZ(0);
    pointer-events: auto;
    z-index: 1;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

[data-theme="dark"] .portfolio-image {
    background: #2a2a2a;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.portfolio-placeholder::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 60%;
    border-radius: 0 3px 3px 0;
}

.portfolio-gradient-1 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #8a55fe, #b57bff);
}

.portfolio-gradient-2 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #6f9af8, #9fc5ff);
}

.portfolio-gradient-3 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #5cdfe6, #8eeef3);
}

.portfolio-gradient-4 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #ffa726, #ffcc80);
}

.portfolio-gradient-5 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #66bb6a, #a5d6a7);
}

.portfolio-gradient-6 .portfolio-placeholder::before {
    background: linear-gradient(180deg, #5c6bc0, #9fa8da);
}

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

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-content h3 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 0.75rem;
}

.portfolio-content h3 a {
    color: inherit;
    text-decoration: none;
}

/* Portfolio Actions */
.portfolio-actions {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portfolio-btn {
    font-family: 'Pretendard', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.portfolio-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.portfolio-btn-primary {
    background: var(--gradient-start);
    color: white;
    border-color: transparent;
}

.portfolio-btn-primary:hover {
    background: var(--gradient-mid);
}

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

.portfolio-btn-secondary:hover {
    border-color: var(--gradient-start);
    background: rgba(138, 85, 254, 0.1);
    transform: translateY(-2px);
}

.portfolio-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    border-radius: 2px;
}

.portfolio-gradient-1 .portfolio-content h3::before {
    background: #8a55fe;
}

.portfolio-gradient-2 .portfolio-content h3::before {
    background: #6f9af8;
}

.portfolio-gradient-3 .portfolio-content h3::before {
    background: #5cdfe6;
}

.portfolio-gradient-4 .portfolio-content h3::before {
    background: #ffa726;
}

.portfolio-gradient-5 .portfolio-content h3::before {
    background: #66bb6a;
}

.portfolio-gradient-6 .portfolio-content h3::before {
    background: #5c6bc0;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== Contact Section ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.contact-card {
    text-align: center;
}

.contact-card svg {
    color: var(--gradient-start);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    color: var(--text-secondary);
}

/* ==================== Footer ==================== */
footer {
    background: var(--bg-secondary);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
}

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 5px 20px var(--card-shadow);
        transition: left 0.3s ease;
    }

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

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

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

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

    .hero-image {
        order: -1;
    }

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

    .resume-grid,
    .portfolio-grid,
    .contact-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

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

    .card-wide {
        grid-column: 1;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-period {
        font-size: 0.8rem;
    }

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

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Disable 3D effects on mobile for better performance */
    .portfolio-image-wrapper.portfolio-3d {
        perspective: none;
    }

    .portfolio-layer-back,
    .portfolio-layer-mid {
        display: none;
    }

    .portfolio-layer-front {
        transform: none !important;
    }
}

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

    .hero-description {
        font-size: 0.95rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
