/* ======================================================== */
/* PORTFOLIO REFINED STYLESHEET (BLUE ORIGAMI 3D AESTHETIC)   */
/* Designed exactly matching the origami geometric reference */
/* ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-page: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-blue-tint: #F0F4F8;
    --bg-dark-navy: #0B192C;
    --bg-dark-poly: #0A1426;
    
    --primary-blue: #0A58CA;
    --primary-blue-hover: #084298;
    --primary-blue-dark: #003B95;
    --electric-blue: #1D4ED8;
    --sky-blue: #38BDF8;
    --ice-blue: #E0F2FE;
    
    --text-heading: #0F172A;
    --text-subheading: #1E293B;
    --text-body: #475569;
    --text-muted: #64748B;
    --text-light-muted: #94A3B8;
    
    --border-light: #E2E8F0;
    --border-subtle: #EDF2F7;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-family: var(--font-main);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

p {
    font-family: var(--font-main);
    line-height: 1.65;
    margin: 0;
}

/* Section Title Decorative Line */
.heading-line {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: #0A58CA;
    vertical-align: middle;
    margin-left: 12px;
    border-radius: 2px;
}

/* Card Subtle Shadows */
.card-shadow {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-shadow:hover {
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    transform: translateY(-3px);
}

/* Geometric Hexagon Logo Mark */
.origami-hex-logo {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 6px rgba(10, 88, 202, 0.25));
}

/* Hero Section Subtle Polygonal Crystal Shards */
.hero-polygonal-bg {
    background: radial-gradient(circle at 80% 20%, rgba(224, 242, 254, 0.5) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(240, 244, 248, 0.8) 0%, transparent 50%),
                #FFFFFF;
}

/* Right Motto Vertical Line */
.vertical-motto-line {
    width: 2px;
    height: 60px;
    background: #0A58CA;
}

/* Skills Tech Stack Icon Card */
.skill-crystal-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-crystal-item:hover {
    transform: translateY(-6px);
}

.skill-crystal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px auto;
    transition: transform 0.3s ease;
}

.skill-crystal-item:hover .skill-crystal-icon {
    transform: scale(1.12);
}

/* Timeline Components */
.timeline-track {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0A58CA;
    z-index: 1;
}

.timeline-node {
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0A58CA;
    border: 5px solid #FFFFFF;
    box-shadow: 0 0 0 2px #0A58CA;
    margin-bottom: 24px;
}

/* Contact Dark Geometric Polygonal Section */
.contact-polygonal-section {
    background-color: #0B192C;
    background-image: 
        linear-gradient(135deg, rgba(11, 25, 44, 0.96) 0%, rgba(6, 16, 31, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath fill='%23132644' fill-opacity='0.25' d='M0 0l200 150L400 0v200L200 400 0 200z'/%3E%3Cpath fill='%231b345d' fill-opacity='0.15' d='M200 0l200 200-200 200L0 200z'/%3E%3C/svg%3E");
    background-size: cover, 300px 300px;
    position: relative;
    overflow: hidden;
}

/* Contact Paper Airplane Motion Trail */
.airplane-motion-path {
    stroke-dasharray: 6 6;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -100;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0A58CA;
}

/* Modal Narrative Formatting */
.modal-narrative-content {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
}

.modal-narrative-content p {
    margin-bottom: 1.25rem !important;
}

.modal-narrative-content p:last-child {
    margin-bottom: 0 !important;
}

.modal-narrative-content h1,
.modal-narrative-content h2,
.modal-narrative-content h3,
.modal-narrative-content h4 {
    color: #0F172A !important;
    font-weight: 800 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.modal-narrative-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

.modal-narrative-content li {
    margin-bottom: 0.35rem !important;
}

/* ======================================================== */
/* SCROLL & TRANSITION ENHANCEMENTS                         */
/* ======================================================== */

/* Reading Scroll Progress Bar */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0052CC 0%, #38BDF8 100%);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Header transition on scroll */
header {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-scrolled {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Floating Back to Top Button */
#backToTopBtn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Subtle Floating Breathing Animation for Hero & Tree Visuals */
@keyframes softFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-soft-float {
    animation: softFloat 6s ease-in-out infinite;
}

/* Active Nav Link Marker */
.nav-link-active {
    color: #0052CC !important;
    font-weight: 700 !important;
}
