:root {
    --bg-color: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #ff204e;
    --accent-glow: rgba(255, 32, 78, 0.2);
    --secondary-accent: #ff8e2b;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.08);
    --hover-glass: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography & Utilities */
h1, h2, h3, h4, h5 {
    font-weight: 700;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
}
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}
.section-title span {
    background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 0.1s ease-out;
}
.cursor.expand {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1px solid var(--accent);
}

/* Background Blob Animation */
.bg-blob {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 32, 78, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-40%, -60%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-60%, -40%) scale(0.9); opacity: 0.5; }
}

/* Glass Panel Base */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.glass-panel:hover {
    transform: translateY(-5px);
    background: var(--hover-glass);
    box-shadow: 0 10px 40px rgba(255, 32, 78, 0.1);
    border-color: rgba(255, 32, 78, 0.2);
}
.glow-hover:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: padding 0.3s ease;
}
.navbar.scrolled {
    padding: 10px 5%;
}
.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}
.nav-brand span {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(45deg, var(--accent), var(--secondary-accent));
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 32, 78, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 32, 78, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: var(--hover-glass);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.greeting {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}
.name {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.role {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
    height: 40px;
}
.cursor-blink {
    animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px;
}
.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}
.social-links {
    display: flex;
    gap: 20px;
}
.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.social-links a:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-5px) rotate(10deg);
}
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.glass-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255,32,78,0.3) 0%, rgba(255,142,43,0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 200px;
    text-align: center;
    position: absolute;
    z-index: 2;
    transition: transform 0.5s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.front-card {
    transform: translateZ(50px) translateX(-30px) translateY(20px) rotateY(-15deg);
}
.back-card {
    transform: translateZ(-20px) translateX(40px) translateY(-30px) rotateY(10deg);
    background: rgba(255, 255, 255, 0.5);
}
.hero-visual:hover .front-card {
    transform: translateZ(70px) translateX(-50px) translateY(10px) rotateY(-5deg);
}
.hero-visual:hover .back-card {
    transform: translateZ(-10px) translateX(60px) translateY(-40px) rotateY(5deg);
}
.glass-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* About & Skills */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.about-grid h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--accent);
}
.timeline-item {
    border-left: 2px solid var(--border-glass);
    padding-left: 20px;
    position: relative;
    margin-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    left: -7px;
    top: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.timeline-item h5 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 10px; font-weight: 400;}
.timeline-item .date { color: var(--accent); font-size: 0.9rem; margin-bottom: 5px; }
.skill-category { margin-bottom: 20px; }
.skill-category h4 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 10px; font-weight: 500;}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.tags span:hover {
    background: rgba(255, 32, 78, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,32,78,0.1);
}

/* Experience */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto;}
.timeline-container::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-glass);
    top: 0; bottom: 0; left: 0;
}
.timeline-content { margin-left: 30px; position: relative; }
.timeline-content::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    left: -52px;
    top: 30px;
    box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 5px; }
.timeline-content h4 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 15px; font-weight: 400; display: flex; align-items: center; gap: 8px;}
.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 32, 78, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.timeline-content ul { list-style: circle; margin-left: 20px; color: var(--text-secondary); line-height: 1.6; }
.timeline-content li { margin-bottom: 10px; }

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card { display: flex; flex-direction: column; height: 100%; transition: all 0.4s ease;}
.project-icon {
    width: 60px; height: 60px;
    background: rgba(255, 32, 78, 0.1);
    border-radius: 15px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; color: var(--accent);
    margin-bottom: 20px;
}
.project-card h3 { font-size: 1.4rem; margin-bottom: 5px; }
.project-date { color: var(--accent); font-size: 0.9rem; margin-bottom: 15px; }
.project-desc { color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.project-tags span {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--bg-glass);
    border-radius: 10px;
}

/* Contact Section */
.contact-section { max-width: 800px; margin: 0 auto; text-align: center; }
.contact-card { text-align: center; padding: 40px; }
.contact-card > p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6;}
.contact-info { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 30px;}
.contact-link {
    font-size: 1.5rem; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}
.contact-link i { color: var(--accent); }
.contact-platforms {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 20px;
}
.platform {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-glass); padding: 10px 20px; border-radius: 20px;
    font-size: 0.9rem;
}
.platform i { color: var(--accent); font-size: 1.2rem;}

/* Footer */
footer {
    text-align: center; padding: 30px; border-top: 1px solid var(--border-glass);
    color: var(--text-secondary); font-size: 0.9rem; margin-top: 50px;
}

/* Scroll Animations using JS Intersection Observer */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-swing, .reveal-comic {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-swing, .reveal-comic {
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal { transform: translateY(30px); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-swing {
    transform-origin: top center;
    transform: rotate(15deg) translateY(-80px);
}
.reveal-comic {
    transform: scale(0.5) rotate(-20deg);
}

.reveal.active, .reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-swing.active, .reveal-comic.active {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
}

/* Transitions Delay Variable Setup for JS */
[style*="--delay"] { transition-delay: var(--delay); }

/* Spider Line Progress */
.spider-thread-container {
    position: fixed;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100vh;
    z-index: 1001;
    pointer-events: none;
}
.spider-thread {
    width: 100%;
    height: 0%;
    background: rgba(255, 32, 78, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px var(--accent);
}
.spider-icon {
    position: absolute;
    top: 0;
    left: -11px;
    font-size: 24px;
    color: #ff2a2a;
    text-shadow: 0 0 10px #ff0000;
    transform: rotate(180deg);
    transition: top 0.1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .spider-thread-container { left: auto; right: 15px; }
    .hero { flex-direction: column-reverse; justify-content: center; text-align: center; padding-top: 120px; gap: 50px;}
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-visual { height: 300px; transform: scale(0.85); }
    .name { font-size: 3.5rem; }
    .role { font-size: 1.5rem; height: auto; margin-bottom: 20px;}
    .about-grid, .achievements-grid { grid-template-columns: 1fr; }
    .timeline-container::before { left: 15px; }
    .timeline-content { margin-left: 45px; padding: 1.5rem;}
    .timeline-content::after { left: -37px; }
    .tags { justify-content: center; }
    .about-summary { margin-bottom: 30px !important; }
}

@media (max-width: 600px) {
    .spider-thread-container { right: 8px; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .name { font-size: 2.2rem; }
    .greeting { font-size: 1rem; }
    .section { padding: 80px 5%; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .hero-visual { transform: scale(0.65); margin-top: -50px; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 30px 15px; }
    .contact-platforms { flex-direction: column; width: 100%; }
    .platform { width: 100%; justify-content: center; }
}
