:root {
    --brand-teal: #006F72;
    --brand-yellow: #FFC300;
    --brand-green: #6AA84F;
    --brand-charcoal: #3C4040;
    --brand-white: #F5F5F5;
    --brand-slate: #6b6f6f;
    --radius: 10px;
}

/* Custom Cursor Styling */
body {
    background-color: var(--brand-white);
    color: var(--brand-charcoal);
    font-family: 'Merriweather', serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: white; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference; 
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.3s, height 0.3s;
    display: none; 
    transform: translate(-50%, -50%);
}

#custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(3.5);
}

.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: white; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

a, button, .hamburger, .contact-card, .skill-card-img, .action-btn, .nav-arrow, .road-node, .thumb-card {
    cursor: none !important;
}

h1, h2, h3 { font-weight: 900; color: var(--brand-charcoal); }

.container-custom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--brand-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.rotating-logo {
    width: 80px;
    height: 80px;
    animation: rotate 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Navigation */
nav, footer { background-color: var(--brand-teal); color: white; }
.nav-link {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    font-weight: 700;
}
.nav-link:hover { color: var(--brand-yellow); }

#mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: var(--brand-teal); z-index: 50; transition: 0.4s ease-in-out;
    padding: 80px 40px; display: flex; flex-direction: column; gap: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
#mobile-menu.active { right: 0; }

.hamburger { display: flex; flex-direction: column; gap: 5px; z-index: 60; }
.hamburger span { width: 25px; height: 2px; background: white; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Section Headings */
.section-header { margin-bottom: 4rem; text-align: center; }
.section-title {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .section-title { font-size: 2.5rem; }
}
.section-title::after {
    content: ''; position: absolute; bottom: -12px; left: 50%;
    transform: translateX(-50%); width: 50px; height: 4px;
    background-color: var(--brand-yellow);
}

/* Typewriter Cursor */
.cursor-blink {
    animation: blink 1s infinite;
    font-weight: 100;
    color: var(--brand-slate);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Experience Road Specific Styles */
.experience-container {
    position: relative;
    min-height: 600px;
    padding-bottom: 100px;
    overflow: visible;
}
#road-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.road-base {
    stroke: #e2e8f0;
    stroke-width: 4;
    fill: none;
}
.road-progress {
    stroke: var(--brand-teal);
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
    transition: stroke-dashoffset 0.05s linear;
}
.road-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    z-index: 20;
    transition: all 0.4s;
    transform: translate(-50%, -50%);
}
.road-node.active {
    border-color: var(--brand-teal);
    background: var(--brand-yellow);
    box-shadow: 0 0 15px var(--brand-yellow);
    transform: translate(-50%, -50%) scale(1.4);
}
.month-label {
    position: absolute;
    width: 100px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-slate);
    opacity: 0.3;
    transition: 0.4s;
    transform: translateY(-50%);
    white-space: nowrap;
}
@media (min-width: 768px) {
    .month-label { width: 120px; font-size: 0.65rem; }
}
.month-label.active {
    opacity: 1;
    color: var(--brand-teal);
    transform: translateY(-50%) scale(1.1);
}
.month-label.left { text-align: right; margin-left: -130px; }
.month-label.right { text-align: left; margin-left: 30px; }

.experience-marker {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 220px;
    z-index: 30;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
@media (min-width: 768px) {
    .experience-marker {
        width: 280px;
        padding: 1.25rem;
    }
}
.experience-marker.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 767px) {
    .experience-marker {
        width: calc(100vw - 80px);
        max-width: 300px;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 30px);
        text-align: center;
    }
    .experience-marker.visible {
        transform: translate(-50%, 25px);
    }
    .month-label.left { 
        margin-left: 0;
        left: 20px !important;
        text-align: left;
    }
    .month-label.right {
        margin-left: 0;
        right: 20px !important;
        left: auto !important;
        text-align: right;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-charcoal);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    box-shadow: 0 4px 0 #cc9c00;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #cc9c00; }

.action-btn {
    background: white; border: 1px solid var(--brand-teal);
    color: var(--brand-teal); padding: 6px 10px; border-radius: 6px;
    font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
    transition: 0.3s; display: flex; align-items: center; gap: 4px;
}
.action-btn:hover { background: var(--brand-teal); color: white; transform: translateY(-2px); }

/* Cards & Carousels */
.card-premium {
    background: white; border-radius: var(--radius); padding: 1.5rem;
    border: 1px solid #e2e8f0; transition: all 0.4s ease;
}
@media (min-width: 768px) {
    .card-premium { padding: 2.5rem; }
}
.card-premium:hover { border-color: var(--brand-green); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

.carousel-container { position: relative; width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); gap: 1rem; }
@media (min-width: 768px) {
    .carousel-track { gap: 2rem; }
}
.carousel-item { flex: 0 0 100%; min-width: 100%; }
@media (min-width: 768px) {
    .carousel-item { flex: 0 0 calc(50% - 1rem); min-width: calc(50% - 1rem); }
}

.nav-arrow {
    background: var(--brand-teal); color: white; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; border: 2px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .nav-arrow { width: 45px; height: 45px; }
}
.nav-arrow:hover { background: var(--brand-yellow); color: var(--brand-charcoal); }

/* Thumb Cards */
.thumb-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    border: 1px solid #e5e5e5; transition: all 0.4s ease; height: 100%; display: flex; flex-direction: column;
}
.thumb-card:hover { border-color: var(--brand-teal); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.thumb-img { 
    height: 160px; 
    background-size: cover; 
    background-position: center; 
    filter: grayscale(0); 
    transition: 0.5s; 
}
@media (min-width: 768px) {
    .thumb-img { height: 180px; }
}

/* Static Skills Grid - Compact */
.static-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; 
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem 0;
}
@media (min-width: 768px) {
    .static-skills-grid { gap: 1rem; margin-top: 4rem; padding: 2rem 0; }
}
.skill-card-img {
    width: 50px; 
    height: 50px; 
    background: var(--brand-white); border: 1px solid #eee;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    padding: 0.75rem; transition: 0.3s;
}
@media (min-width: 768px) {
    .skill-card-img { width: 60px; height: 60px; padding: 0.85rem; }
}
.skill-card-img img { max-width: 100%; max-height: 100%; filter: grayscale(0); transition: 0.3s; object-fit: contain; }
.skill-card-img:hover { border-color: var(--brand-teal); transform: translateY(-5px); background: white; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Misc */
.paper-texture { background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); opacity: 0.3; pointer-events: none; position: fixed; inset: 0; z-index: 50; }
.contact-card { display: flex; align-items: center; gap: 15px; padding: 1rem; background: #2c2f2f; border-radius: var(--radius); transition: all 0.3s; border: 1px solid transparent; width: 100%; }
@media (min-width: 768px) {
    .contact-card { gap: 20px; padding: 1.5rem; }
}
.contact-card:hover { border-color: var(--brand-yellow); background: #3c4040; transform: translateX(10px); }
.fade-in { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
@media (min-width: 768px) {
    .fade-in { transform: translateY(50px); }
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
footer svg { width: 22px; height: 22px; fill: white; transition: 0.3s; }
footer a:hover svg { fill: var(--brand-yellow); transform: translateY(-3px); }

@media (max-width: 1024px) { body { cursor: default; } #custom-cursor { display: none !important; } }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.rotating-logo { animation: spin 2s linear infinite; }

/* Read More Clamping */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}