/* --- Brand Variables: Dynamic Theming --- */
:root {
  --bg-dark: #0a0b10; 
  --bg-card: rgba(18, 22, 33, 0.45); 
  --glass-border: rgba(66, 133, 244, 0.15); 
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --accent-color: #4285F4; 
  --accent-dark: rgba(26, 86, 219, 0.6); 
  --accent-glow: rgba(26, 86, 219, 0.5);
  --text-main: #F8F9FA;
  --text-muted: #9AA0A6;
  --terminal-bg: rgba(0, 0, 0, 0.85);
  --code-green: #34A853;
  --nav-bg: rgba(10, 11, 16, 0.65);
  --code-bracket-color: #ffffff; 
  --pin-filter: grayscale(100%) brightness(150%);
  
  --grid-color: rgba(255, 255, 255, 0.03);
  --cursor-color: #4285F4;
}

html.light {
  --bg-dark: #f0f4f8;
  --bg-card: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(66, 133, 244, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.5);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --terminal-bg: rgba(241, 245, 249, 0.95);
  --nav-bg: rgba(255, 255, 255, 0.7);
  --code-bracket-color: #000000; 
  --pin-filter: grayscale(100%) brightness(30%);
  
  --grid-color: rgba(0, 0, 0, 0.04);
  --cursor-color: #2563eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }



html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

@media (pointer: fine) { body { cursor: none; } }

body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6; 
  background-color: var(--bg-dark); 
  color: var(--text-main);
  overflow-x: hidden; 
  width: 100%; 
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}



/* --- Developer Aesthetics & Fonts --- */
.code-bracket { color: var(--code-bracket-color); font-family: 'JetBrains Mono', monospace; font-weight: 500; transition: color 0.5s ease; }
.code-comment { color: var(--code-green); font-family: 'JetBrains Mono', monospace; font-style: italic; opacity: 0.9; }
.dev-tag { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.85em; opacity: 0.8; }
.prompt-arrow { color: var(--code-green); font-family: 'JetBrains Mono', monospace; }

/* --- Custom Magnetic Cursor --- */
.custom-cursor {
    position: fixed; width: 6px; height: 6px; background: var(--cursor-color);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: opacity 0.3s;
}
.cursor-ring {
    position: fixed; width: 30px; height: 30px; border: 1.5px solid var(--cursor-color);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.hovering {
    width: 60px; height: 60px; background: rgba(66, 133, 244, 0.1); border-color: transparent; backdrop-filter: invert(10%);
}

@media (pointer: coarse) {
    .custom-cursor, .cursor-ring { display: none !important; }
}

/* --- Animated Grid --- */
@keyframes scrollGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%); z-index: -2; pointer-events: none;
    animation: scrollGrid 10s linear infinite;
}
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05));
    background-size: 100% 4px; z-index: -1; pointer-events: none; opacity: 0.4;
}

.container { width: 90%; max-width: 1100px; margin: auto; }

/* Ambient Orbs */
.bg-orb { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -2; opacity: 0.5; }
.orb-1 { width: 450px; height: 450px; background: rgba(26, 86, 219, 0.5); top: -100px; left: -150px; }
.orb-2 { width: 500px; height: 500px; background: rgba(32, 33, 36, 0.8); bottom: -150px; right: -100px; }
html.light .orb-2 { background: rgba(200, 210, 220, 0.8); }
.orb-3 { width: 300px; height: 300px; background: rgba(66, 133, 244, 0.3); top: 40%; left: 50%; transform: translate(-50%, -50%); }

/* Tilt Wrapper & Glass Cards */
.tilt-wrapper { perspective: 1000px; width: 100%; display: block; }
.tilt-card { will-change: transform; transform-style: preserve-3d; transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease; }
.tilt-card.resetting { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease; }

.glass-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border); padding: 15px 0; transition: background 0.5s ease;
}
.glass-card {
  background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-top: 1px solid var(--glass-highlight);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); transition: all 0.4s ease;
}
html:not(.light) .glass-card { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }
.hover-glow:hover {
  border-color: rgba(66, 133, 244, 0.5); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(26, 86, 219, 0.2); transform: translateY(-5px);
}
html:not(.light) .hover-glow:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(26, 86, 219, 0.2); }

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.5px; color: var(--text-main); transition: color 0.5s ease;}
.highlight { color: var(--accent-color); }


.section-title { font-size: 2.2rem; margin-bottom: 0.5rem; text-align: center; }






.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;}

/* Nav */
.nav-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; justify-self: start; }
.main-nav { justify-self: center; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { 
    color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500; 
    font-family: 'JetBrains Mono', monospace; position: relative; display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease; 
}
.nav-links a::before {
    content: '>'; position: absolute; left: -16px; opacity: 0; color: var(--code-green); transition: opacity 0.3s ease; font-weight: bold;
}
.nav-links a:hover { transform: translateX(8px); color: var(--accent-color); }
.nav-links a:hover::before { opacity: 1; }
.mobile-only-link { display: none; }

.nav-controls { display: flex; align-items: center; gap: 16px; justify-self: end; }
.blog-link-btn {
    display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; 
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--glass-border); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.blog-link-btn:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2); }

/* Theme Pill */
.pill-toggle {
    width: 56px; height: 28px; border-radius: 30px; background: #1e293b; border: 1px solid var(--glass-border); position: relative; transition: background 0.4s ease; display: flex; align-items: center; padding: 2px;
}
html.light .pill-toggle { background: #cbd5e1; }
.pill-thumb {
    width: 22px; height: 22px; border-radius: 50%; background: #0f172a; box-shadow: 0 2px 5px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease; transform: translateX(0);
}
html.light .pill-thumb { transform: translateX(28px); background: #ffffff; }
.pill-thumb i { font-size: 12px; }
.pill-thumb .sun-icon { display: none; color: #f59e0b; }
.pill-thumb .moon-icon { display: block; color: #e2e8f0; }
html.light .pill-thumb .sun-icon { display: block; }
html.light .pill-thumb .moon-icon { display: none; }

/* Buttons */
.btn {
  padding: 0.8rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-family: 'JetBrains Mono', monospace;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
  position: relative; overflow: hidden; border: 1px solid var(--glass-border); transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; z-index: 1;
}
.btn span { position: relative; z-index: 2; transition: color 0.3s ease; display: flex; align-items: center; gap: 8px; }
.btn::after { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--accent-color); z-index: 0; transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.primary-btn { background: var(--accent-dark); color: white; border-color: rgba(66, 133, 244, 0.4); box-shadow: 0 4px 15px var(--accent-glow); }
.outline-btn { background: rgba(120, 120, 120, 0.05); color: var(--text-main); }
.btn:hover::after { width: 100%; }
.btn:hover { border-color: var(--accent-color); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3); }
.btn:hover span { color: #ffffff; }
.btn.small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.mt-4 { margin-top: 1.5rem; }

/* Hero & Hanging Terminal */
.hero { padding: 180px 0 100px; min-height: 95vh; display: flex; align-items: center; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-text { flex: 1; max-width: 600px; }

@keyframes hangSwing { 0% { transform: rotate(1.5deg); } 50% { transform: rotate(-1.5deg); } 100% { transform: rotate(1.5deg); } }
.hanging-wrapper { position: relative; width: 100%; max-width: 450px; margin-bottom: 2rem; transform-origin: top center; animation: hangSwing 5s ease-in-out infinite; }

/* The Data Wire - Invisible now, replaced by Pushpin logic below, but kept structure to not break animation */
.terminal-wire { display: none; } 

/* Terminal Box Distortion Fix & Pushpin */
.terminal-box { 
    background: var(--terminal-bg); border-radius: 12px; border: 1px solid var(--glass-border); 
    font-family: 'JetBrains Mono', monospace; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(66, 133, 244, 0.15); 
    height: 260px; /* Fixed height strictly maintained */
    position: relative;
}
html.light .terminal-box { box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 20px rgba(66, 133, 244, 0.1); }

/* 3D Pushpin */
.terminal-box-pin {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; border-radius: 50%; z-index: 10;
    background: radial-gradient(circle at 30% 30%, #555, #111);
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.8), 3px 6px 8px rgba(0,0,0,0.5);
    filter: var(--pin-filter); transition: filter 0.5s ease;
}
.terminal-box-pin::after {
    content: ''; position: absolute; top: 10px; left: 7px; width: 2px; height: 12px;
    background: linear-gradient(to right, #999, #ccc, #777); z-index: -1;
    box-shadow: 1px 3px 3px rgba(0,0,0,0.4);
}

.terminal-header { background: rgba(120,120,120,0.1); padding: 10px 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--glass-border); margin-top: 8px; flex-shrink: 0;}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }
.terminal-title { color: var(--text-muted); font-size: 0.8rem; margin-left: 10px; }
.terminal-body { padding: 15px 20px; font-size: 0.85rem; color: var(--text-main); line-height: 1.6; flex: 1; display: flex; flex-direction: column; overflow: hidden;}
.type-line { display: flex; align-items: flex-start; white-space: pre-wrap; margin-bottom: 4px; word-break: break-word;}
.typed-text { margin-right: 4px; }
.cursor { display: inline-block; width: 10px; height: 1.2em; background-color: var(--accent-color); animation: blink 0.8s infinite; vertical-align: bottom;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; font-family: 'JetBrains Mono', monospace;}
.buttons { display: flex; gap: 15px; }

/* LinkedIn Card */
.linkedin-card { width: 320px; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.li-cover { height: 100px; background-color: #1a4b8c; background-size: cover; background-position: center; border-bottom: 1px solid var(--glass-border); }
.li-profile-img-wrapper { margin-top: -50px; margin-left: 20px; }
.li-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--bg-card); object-fit: cover; background: var(--bg-card); transition: border-color 0.5s ease;}
.li-info { padding: 10px 20px 20px; }
.li-info h3 { font-size: 1.3rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.badge { color: var(--accent-color); font-size: 1rem; }
.li-headline { font-size: 0.85rem; color: var(--text-main); line-height: 1.3; margin-bottom: 8px; }
.li-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.li-connections { display: flex; align-items: center; margin-bottom: 15px; font-size: 0.8rem; color: var(--accent-color); font-weight: 500; }
.li-mutual-img { width: 20px; height: 20px; border-radius: 50%; background: #ccc; border: 2px solid var(--bg-card); margin-right: -8px; }
.li-mutual-img:last-of-type { margin-right: 8px; background: #999; }

/* General Grids */
.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 900px) { .grid { grid-template-columns: 2fr 1fr; } }
.col-span-2 { grid-column: span 1; }

/* Sections */
.entity, .skills, .education, .projects, .about, .contact { padding: 80px 0; }
.entity-card { padding: 2.5rem; border-left: 4px solid var(--accent-color); height: 100%; display: flex; flex-direction: column;}
.genesis-card { padding: 2.5rem; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dev-badge { background: rgba(66, 133, 244, 0.15); color: var(--accent-color); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(66, 133, 244, 0.3); font-family: 'JetBrains Mono', monospace;}

.mission-statement { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--text-main); border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; font-family: 'JetBrains Mono', monospace;}
.entity-content p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.skill-category { padding: 2rem; height: 100%;}
.skill-category h3 { margin-bottom: 1.5rem; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace;}
.tags { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.glass-tag { background: rgba(120,120,120,0.05); border: 1px solid var(--glass-border); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; transition: all 0.3s ease; position: relative; overflow: hidden;}
.glass-tag:hover { border-color: var(--accent-color); color: var(--text-main); background: rgba(66, 133, 244, 0.1); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(66,133,244,0.15);}

/* Education Section */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem;}
.edu-card { padding: 2rem; display: flex; align-items: flex-start; gap: 1.2rem; height: 100%; border-left: 4px solid var(--accent-color);}
.edu-icon { width: 45px; height: 45px; border-radius: 10px; background: rgba(66, 133, 244, 0.15); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; border: 1px solid rgba(66, 133, 244, 0.3);}
.edu-info h3 { font-size: 1.2rem; margin-bottom: 0.3rem;}
.edu-degree { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace;}
.edu-meta { display: flex; flex-direction: column; gap: 0.5rem; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project { height: 100%; display: flex; flex-direction: column; }
.project-info { padding: 2.5rem; display: flex; flex-direction: column; height: 100%; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-header h3 { font-size: 1.3rem; max-width: 80%; }
.tech-icons { display: flex; gap: 10px; color: var(--text-muted); font-size: 1.2rem; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; font-family: 'JetBrains Mono', monospace;}
.project-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.5rem; }

/* --- In Development Section Styles --- */

/* Dashed borders and tinted background for dev cards */
.status-dev { 
  border: 1px dashed rgba(66, 133, 244, 0.5) !important; 
  background: rgba(66, 133, 244, 0.03); 
}

/* Status Badges */
.dev-badge { 
  background: rgba(66, 133, 244, 0.15); 
  color: var(--accent-color); 
  padding: 4px 10px; 
  border-radius: 4px; 
  font-size: 0.75rem; 
  font-weight: 600; 
  border: 1px solid rgba(66, 133, 244, 0.3); 
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Disabled "Locked" Buttons */
.disabled-btn { 
  opacity: 0.6; 
  cursor: not-allowed !important; 
  pointer-events: none; /* Stops the hover animations */
  border-color: rgba(120, 120, 120, 0.3) !important;
  color: var(--text-muted) !important;
}

.disabled-btn i {
  color: var(--text-muted);
}







/* About Human Element Layout & Migration Map */
.about-box { padding: 4rem; text-align: left; max-width: 950px; margin: auto; }
.about-layout { display: flex; align-items: flex-start; gap: 3.5rem; margin-top: 2rem; }
.about-profile-col { display: flex; flex-direction: column; gap: 1.5rem; width: 280px; flex-shrink: 0; }

.about-img-wrapper { width: 100%; height: 320px; border-radius: 20px; overflow: hidden; border: 2px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-main-img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: top center;}

.migration-log { padding: 1.5rem; text-align: left; }
.author-name { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace;}
.route-map { display: flex; flex-direction: column; position: relative; padding-left: 1.2rem; border-left: 2px dashed var(--glass-border); margin-left: 0.6rem;}
.route-point { position: relative; padding: 0.8rem 0; }
.route-dot { position: absolute; left: -1.6rem; top: 1.1rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-card); }
.route-dot.origin { background: var(--text-muted); }
.route-dot.current { background: var(--code-green); box-shadow: 0 0 10px var(--code-green); }
.route-point p { font-size: 0.85rem; color: var(--text-muted); margin: 0; font-family: 'JetBrains Mono', monospace;}

.about-text-content { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7;}

.contact-box { padding: 4rem 2rem; text-align: center; max-width: 800px; margin: auto; }
.contact-box h2 { font-family: 'JetBrains Mono', monospace; font-size: 2rem; margin-bottom: 1rem; }
.contact-box p { color: var(--code-green); margin-bottom: 2rem; font-family: 'JetBrains Mono', monospace; opacity: 0.8;}
.glass-form-wrapper { border: 1px solid var(--glass-border); background: rgba(120,120,120,0.05); transition: border-color 0.4s ease;}
.glass-form-wrapper:hover { border-color: var(--accent-color); }

/* Footer */
.glass-footer { padding: 4rem 0 2rem; background: var(--nav-bg); border-top: 1px solid var(--glass-border); backdrop-filter: blur(10px); transition: background 0.5s ease; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: left; padding-bottom: 3rem; }

.footer-col h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; display: inline-block; font-size: 0.95rem; font-family: 'JetBrains Mono', monospace;}
.footer-col ul li a:hover { color: var(--accent-color); transform: translateX(8px); }
.footer-col ul li { color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace;}
.contact-col strong { color: var(--text-main); }
.terminal-icon { color: var(--accent-color); font-size: 14px; width: 16px; }

.social-links-footer { display: flex; gap: 1rem; margin-top: 1rem;}
.social-links-footer a { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 8px; background: rgba(120,120,120,0.05); color: var(--text-main); font-size: 1.1rem; transition: all 0.3s ease; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.social-links-footer a::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 100%; background: var(--accent-color); transition: top 0.3s cubic-bezier(0.25, 1, 0.5, 1); z-index: 0; }
.social-links-footer a i { position: relative; z-index: 1; transition: color 0.3s ease; }
.social-links-footer a:hover::after { top: 0; }
.social-links-footer a:hover { border-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 5px 15px var(--accent-glow); }
.social-links-footer a:hover i { color: #fff; }

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 1.5rem; text-align: center; }

/* GSAP-style Scroll Animations */
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.fade-up { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--delay) * 150ms); }
.is-visible .fade-up { opacity: 1; transform: translateY(0); }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.floating-element { animation: float 6s ease-in-out infinite; }
.floating-element-delayed { animation: float 6s ease-in-out infinite; animation-delay: 3s; }

/* Mobile Specific Styles */
.mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-container { display: flex; justify-content: space-between; }
  .main-nav { display: none; }
  
  .hero { padding-top: 120px; align-items: flex-start; }
  .hero-content { flex-direction: column; text-align: center; justify-content: center; padding-top: 10px; }


/*
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hanging-wrapper { margin: 0 auto 3rem auto; text-align: left; }
*/
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-text h2 { font-size: 2.2rem; line-height: 1.2; }



.section-title { 
    font-size: 1.6rem; 
    overflow-wrap: break-word; 
    word-break: break-word; 
    hyphens: auto;
  }






.nav-controls { gap: 8px; }
.hanging-wrapper { width: 100%; max-width: 100%; margin: 0 auto 3rem auto; text-align: left; }
.terminal-box { width: 100%; }



  .hero-linkedin-card { margin: 2rem auto 0; display: flex; justify-content: center;}
  .buttons { flex-direction: column; width: 100%; max-width: 300px; }
  .buttons .btn { width: 100%; }
  
  .about-layout { flex-direction: column; align-items: center; text-align: center; }
  .about-profile-col { width: 100%; max-width: 320px; }
  .route-map { text-align: left; margin-left: auto; margin-right: auto; width: fit-content;}
  
  .header-blog-btn { display: none; } 
  .mobile-only-link { display: block; width: 100%; margin-top: 1rem; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; text-align: center; }
  .mobile-blog-btn { display: inline-flex; justify-content: center; width: auto; font-size: 1.1rem;}
  
  .mobile-toggle { display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); width: 34px; height: 34px; border-radius: 8px; background: rgba(66, 133, 244, 0.15); border: 1px solid rgba(66, 133, 244, 0.3); transition: all 0.3s ease; font-size: 1.1rem; }
  .mobile-toggle:active { transform: scale(0.9); }
  
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--nav-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border); flex-direction: column; align-items: center;
    padding: 2.5rem 0; gap: 1.5rem; border-radius: 0 0 16px 16px; margin-left: 0;
    transform: translateY(-20%); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 999;
  }
  
  .main-nav { display: block; }
  .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links li a { font-size: 1.2rem; }
  .nav-links a::before { display: none; }
  .nav-links a:hover { transform: none; }
}


/* Invert Tally form text for Dark Mode */
html:not(.light) .glass-form-wrapper iframe {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.9; /* Optional: Softens the stark white text */
}
