/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --accent: #d0ba98;
    --accent-hover: #bda582;
    --accent-light: rgba(208, 186, 152, 0.15);
    
    /* Light Theme (Default) */
    --bg-primary: #faf9f6;
    --bg-secondary: #ffffff;
    --bg-alt: #f3f1ec;
    --text-primary: #121212;
    --text-secondary: #505050;
    --text-muted: #7c7c7c;
    --border-color: #cecac0; /* Made darker and more defined than the previous #eae7e0 */
    --navbar-bg: rgba(250, 249, 246, 0.85);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05); /* Increased definition shadow */
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.08); /* Increased definition shadow */
    --highlight-color: #a38c69; /* Rich golden brown for contrast and accessibility in light mode */
    
    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #111111;
    --bg-secondary: #181818;
    --bg-alt: #1d1c1a;
    --text-primary: #faf9f6;
    --text-secondary: #a6a6a6;
    --text-muted: #6e6e6e;
    --border-color: #2b2a27;
    --navbar-bg: rgba(17, 17, 17, 0.8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --highlight-color: #d0ba98; /* Warm light gold for dark mode */
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

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

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

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

.alt-bg {
    background-color: var(--bg-alt);
    transition: background-color var(--transition-normal);
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn svg, .btn i {
    width: 14px;
    height: 14px;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.btn:hover svg, .btn:hover i {
    transform: translate(2px, -1px);
}

.btn-primary {
    background-color: var(--accent);
    color: #121212;
    border: 3px solid var(--accent);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(208, 186, 152, 0.3);
}

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

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

/* Form inputs styling */
input, textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   FLOATING NAVBAR
   ========================================================================== */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding var(--transition-normal);
}

.navbar-container.scrolled {
    padding: 12px 0;
}

.navbar {
    max-width: 1140px;
    margin: 0 auto;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 3px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle, .mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.theme-toggle i, .theme-toggle svg,
.mobile-toggle i, .mobile-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.theme-toggle:hover, .mobile-toggle:hover {
    background-color: var(--border-color);
}

.theme-toggle .theme-icon-light {
    display: none;
}

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

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

.mobile-toggle {
    display: none;
}

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-name {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-title-integrated {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

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

.profile-card {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.image-border {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-alt);
    aspect-ratio: 1 / 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.profile-badge i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.section-header {
    margin-bottom: 70px;
}

.section-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

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

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: transparent;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    top: 25px;
    z-index: 10;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--accent);
}

.timeline-content {
    padding: 24px 28px;
    background-color: var(--bg-secondary);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-hover);
    display: inline-block;
    margin-bottom: 8px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.timeline-content:hover .timeline-logo {
    transform: scale(1.08);
}

.timeline-logo.flag-logo {
    padding: 0;
    object-fit: cover;
    border-radius: 4px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.timeline-role {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

.timeline-bullets {
    padding-left: 18px;
    list-style-type: square;
    margin-top: 10px;
}

.timeline-bullets li {
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.timeline-bullets li::marker {
    color: var(--accent);
}

.timeline-tag-badge {
    display: inline-block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transform: scale(0.8);
    transition: all var(--transition-normal);
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-link:hover {
    background-color: var(--accent);
    color: #121212;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.project-card-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.project-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 12px;
    background-color: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   MEDIA SECTION
   ========================================================================== */
.media-carousel-container {
    position: relative;
    width: 100%;
}

.media-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
    -webkit-overflow-scrolling: touch;
    padding: 15px 5px; /* Margin for shadow clipping */
}

.media-carousel-track::-webkit-scrollbar {
    display: none; /* Hide Chrome scrollbar */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
    opacity: 0.9;
}

.carousel-control:hover {
    background-color: var(--accent);
    color: #121212;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
    left: -23px;
}

.carousel-control.next {
    right: -23px;
}

.carousel-control svg {
    width: 20px;
    height: 20px;
}

.carousel-control.hidden {
    opacity: 0;
    pointer-events: none;
}

.media-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    gap: 20px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.media-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.media-card-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.media-card-icon.youtube {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.media-card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.media-source {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.media-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.media-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.5;
}

.media-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: auto;
}

.media-card-footer i, .media-card-footer svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.media-card:hover .media-card-footer i,
.media-card:hover .media-card-footer svg {
    transform: translateX(4px);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.skills-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

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

.skill-tag {
    font-size: 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent);
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.info-details p, .info-details a {
    font-size: 16px;
    font-weight: 600;
}

.info-details a:hover {
    color: var(--accent-hover);
}

.contact-form-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.btn-submit {
    align-self: flex-start;
    font-weight: 600;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    transition: background-color var(--transition-normal);
}

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

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 8px;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link i, .social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-link:hover {
    color: #121212;
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

[data-theme="dark"] .social-link:hover {
    color: #121212;
}

/* Highlight style */
.highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Up to Tablet */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image-wrapper {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-name {
        font-size: 32px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item.right {
        left: 0%;
    }
    
    .timeline-dot {
        left: 22px !important;
        right: auto !important;
    }
    
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .media-card {
        flex: 0 0 calc(50% - 15px);
    }

    .carousel-control.prev {
        left: -10px;
    }

    .carousel-control.next {
        right: -10px;
    }
}

/* Up to Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }
    
    .mobile-toggle {
        display: flex;
        width: 44px;
        height: 44px;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 24px;
        right: 24px;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        display: none; /* Controlled by JS */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .media-card {
        flex: 0 0 100%;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }
}
