* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    pointer-events: auto;
}

:root {
    --black: #0a0a0a;
    --gray: #171717;
    --light-gray: #404040;
    --text-gray: #a3a3a3;
    --theme-color: #dc2626;
}
body, html {
    overflow-x: hidden !important;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--black);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    height: 100%;
    z-index: -100;
}

nav, section, footer, .container, .hero, .main-content {
  position: relative;
  background: transparent !important;
}
section, 
main, 
.container, 
.hero, 
header, 
footer {
    background: transparent !important;
}
h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 3rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { font-size: 1.3rem;font-weight: 200; }

/* Background Effects */  
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#fluid-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1; 
  pointer-events: auto; 
}
/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
   border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
}

.nav-links {
    position: relative;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
    position: relative;
    z-index: 2;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-pill {
    position: absolute;
    height: 42px;
    background: linear-gradient(45deg, #651818,#e01919);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 3;
    background: none !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    margin-bottom: 1rem;
    text-shadow: 0 0 2rem rgba(220, 38, 38, 0.5);
    
}
.hero-content h1 span {
    color: var(--theme-color);
}
/* .hero-content h1{
    background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
} */
.unscramble {
    display: inline-block;
}

.rotating-text {
  color: var(--theme-color);
  display: inline-block;
  min-width: 220px;
  margin-bottom: 10px;
}

.rotating-text::after {
  content: "|";
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


.hero-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--theme-color);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.social-link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link-text {
    max-width: 0;
    opacity: 0;
    transition: all .6s ease;
}

.social-link:hover {
    background: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.social-link:hover .social-link-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 0.5rem;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--theme-color);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Work Section */
#work {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 span {
    color: var(--theme-color);
}

.section-header p {
    color: var(--text-gray);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.share-link1 {
    position: absolute;
    bottom: 12px;
    left: 8.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
    pointer-events: none;
    transition: 
        opacity 0.5s ease,
        transform 0.5s ease;
    z-index: 20; /* ABOVE slider images */
}
.share-link2 {
    position: absolute;
    bottom: 12px;
    right: 8.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
    pointer-events: none;
    transition: 
        opacity 0.5s ease,
        transform 0.5s ease;
    z-index: 20; /* ABOVE slider images */
}

.share-link1 img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}
.share-link2 img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}
.work-card:hover .share-link1, .work-card:hover .share-link2 {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    background: var(--theme-color);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}
/* .share-link:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
} */

.work-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.slider {
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: 10px;
	position: relative;
	display:flex;
}
.slides {
	display: flex;
	width: 400%;
	animation: slide 12s infinite;	
}   
.slides img {
	width: 100%;
	flex: 0 0 100%;
	object-fit: cover;
}
.slider:hover .slides {
	animation-play-state: paused;
}
@keyframes slide {
	0%   { transform: translateX(0%); }
	25%  { transform: translateX(-100%); }
	50%  { transform: translateX(-200%); }
	75%  { transform: translateX(-300%); }
	100% { transform: translateX(0%); }
}
.work-card {
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid rgba(64, 64, 64, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: scale(1.05);
    border-color: var(--theme-color);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    /* Add this line below */
    z-index: 10; 
    position: relative; /* Sometimes needed to make z-index take effect */
}

.work-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--gray) 0%, var(--black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content {
    padding: 2rem;
}

.work-card-content h3 {
    margin-bottom: 1rem;
}

.work-card-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--theme-color);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--theme-color);
    transition: all 0.3s ease;
}
.work-tag:hover {
    background: var(--theme-color);
    color: white;
    scale: 1.05;
}

/* Talents Section */
#talents {
    min-height: 100vh;
    padding: 6rem 1rem ;
    position: relative;
    z-index: 1;
    background: rgba(23, 23, 23, 0.3);
}

.talents-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* display: flex; */
    gap: 1.25rem; 
    position: relative;
    /* overflow: hidden; */
}

.talent-card {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(64, 64, 64, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: sticky;
    top: 150px;
    margin-bottom: 3rem;
}
.talent-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    transform: scale(1.05);
}

.talent-icon {
    width: 64px;
    height: 64px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.talent-card:hover .talent-icon {
    background: var(--theme-color);
    transform: rotate(360deg);
}

.talent-icon svg {
    width: 32px;
    height: 32px;
    color: var(--theme-color);
}

.talent-card:hover .talent-icon svg {
    color: white;
}

.talent-card h3 {
    margin-bottom: 1rem;
}

.talent-card > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.875rem;
}

.skill-percentage {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.skill-bar {
    height: 8px;
    background: rgba(64, 64, 64, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #781717, #e42424);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    transition: width 1.5s ease-in-out;
    width: 0;
}

/* Timeline Section */
#timeline {
    width: 100%;
    min-height: 100vh; /* Gives the section full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.timeline-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    gap: 6rem;           /* Alter this value freely to bring them closer or further apart! */
    padding-left: 10vw; 
    padding-right: 25vw; 
    margin-top: 3rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: var(--light-gray);
    display: none !important;
    transform: translateX(-50%);
}

.timeline-item {
    flex-shrink: 0;               /* Prevents flexbox from squeezing your cards */
    width: 600px !important;      /* CHANGED: Brought down from 1000px to a standard card width */
    min-height: 200px;            
    height: auto;
    margin: 0 !important;         
    opacity: 1 !important;        
    transform: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Override old positioning quirks meant for the vertical line layout */
.timeline-item:nth-child(even),
.timeline-item:nth-child(odd) {
    left: 0 !important;
    align-self: initial !important;
    text-align: left !important;
}

.timeline-content {
    width: 90%;                  /* CHANGED: From 45% to 100% so it fills the 500px width */
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid rgba(64, 64, 64, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--theme-color);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

/* .timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--theme-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    z-index: 2;
} */

.timeline-year {
    color: var(--theme-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-gray);
}

/* ==========================================
   Journey Runner Buddy
   ========================================== */
.runner-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    height: 90px;
    pointer-events: none;
    z-index: 5;
}

.runner-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 76px;
    height: 90px;
    transform: translateX(0);
    will-change: left, transform;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.runner-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.runner-shadow {
    fill: rgba(0, 0, 0, 0.35);
    transform-origin: 60px 140px;
    animation: shadowPulse 0.42s ease-in-out infinite;
    animation-play-state: paused;
}

.runner-bounce {
    transform-origin: 60px 90px;
    animation: bodyBounce 0.42s ease-in-out infinite;
    animation-play-state: paused;
}

.runner-head {
    transform-origin: 60px 55px;
    animation: headBob 0.42s ease-in-out infinite;
    animation-play-state: paused;
}

.limb {
    animation-duration: 0.42s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-play-state: paused;
}

.leg-front { animation-name: legFrontSwing; }
.leg-back  { animation-name: legBackSwing; }
.arm-front { animation-name: armFrontSwing; }
.arm-back  { animation-name: armBackSwing; }

.eye {
    animation: blink 4.2s ease-in-out infinite;
    transform-origin: center;
}
.eye-r { animation-delay: 0.06s; }

/* Idle pose before the section starts scrolling */
.runner-wrap:not(.is-running):not(.is-emoting):not(.is-exiting) .leg-front { transform: rotate(6deg); }
.runner-wrap:not(.is-running):not(.is-emoting):not(.is-exiting) .leg-back  { transform: rotate(-6deg); }
.runner-wrap:not(.is-running):not(.is-emoting):not(.is-exiting) .arm-front { transform: rotate(-8deg); }
.runner-wrap:not(.is-running):not(.is-emoting):not(.is-exiting) .arm-back  { transform: rotate(8deg); }

/* Running state: everything plays */
.runner-wrap.is-running .runner-bounce,
.runner-wrap.is-running .runner-shadow,
.runner-wrap.is-running .runner-head,
.runner-wrap.is-running .limb {
    animation-play-state: running;
}

/* Exiting: sped-up sprint cycle */
.runner-wrap.is-exiting .runner-bounce,
.runner-wrap.is-exiting .runner-shadow,
.runner-wrap.is-exiting .runner-head,
.runner-wrap.is-exiting .limb {
    animation-play-state: running;
    animation-duration: 0.22s;
}

@keyframes legFrontSwing {
    0%   { transform: rotate(32deg); }
    50%  { transform: rotate(-34deg); }
    100% { transform: rotate(32deg); }
}
@keyframes legBackSwing {
    0%   { transform: rotate(-34deg); }
    50%  { transform: rotate(32deg); }
    100% { transform: rotate(-34deg); }
}
@keyframes armFrontSwing {
    0%   { transform: rotate(-38deg); }
    50%  { transform: rotate(36deg); }
    100% { transform: rotate(-38deg); }
}
@keyframes armBackSwing {
    0%   { transform: rotate(36deg); }
    50%  { transform: rotate(-38deg); }
    100% { transform: rotate(36deg); }
}
@keyframes bodyBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-9px) rotate(2deg); }
}
@keyframes headBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-3px) rotate(3deg); }
}
@keyframes shadowPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.35; }
    50%      { transform: scaleX(0.75); opacity: 0.2; }
}
@keyframes blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(0.1); }
}

/* Emote: a happy little jump + wave when the journey ends */
.runner-wrap.is-emoting .runner-bounce {
    animation: emoteJump 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.runner-wrap.is-emoting .runner-shadow {
    animation: emoteShadow 0.9s ease-in-out;
}
.runner-wrap.is-emoting .arm-front {
    animation: emoteWaveFront 0.9s ease-in-out;
}
.runner-wrap.is-emoting .arm-back {
    animation: emoteWaveBack 0.9s ease-in-out;
}
.runner-wrap.is-emoting .leg-front,
.runner-wrap.is-emoting .leg-back {
    animation: emoteLegs 0.9s ease-in-out;
}
.runner-wrap.is-emoting .mouth {
    d: path("M52 44 Q60 55 68 44");
}

@keyframes emoteJump {
    0%   { transform: translateY(0) scale(1, 1); }
    25%  { transform: translateY(4px) scale(1.08, 0.9); }
    55%  { transform: translateY(-26px) scale(0.95, 1.08); }
    75%  { transform: translateY(-26px) scale(0.95, 1.08); }
    100% { transform: translateY(0) scale(1, 1); }
}
@keyframes emoteShadow {
    0%   { transform: scaleX(1); opacity: 0.35; }
    55%  { transform: scaleX(0.55); opacity: 0.15; }
    75%  { transform: scaleX(0.55); opacity: 0.15; }
    100% { transform: scaleX(1); opacity: 0.35; }
}
@keyframes emoteWaveFront {
    0%   { transform: rotate(-8deg); }
    30%  { transform: rotate(-150deg); }
    45%  { transform: rotate(-120deg); }
    60%  { transform: rotate(-150deg); }
    75%  { transform: rotate(-120deg); }
    100% { transform: rotate(-8deg); }
}
@keyframes emoteWaveBack {
    0%, 100% { transform: rotate(8deg); }
    30%      { transform: rotate(20deg); }
}
@keyframes emoteLegs {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(6deg); }
}

/* Little sparkle burst that pops during the emote */
.runner-fx {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 6px;
    height: 6px;
    pointer-events: none;
}
.runner-wrap.is-emoting .runner-fx::before,
.runner-wrap.is-emoting .runner-fx::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--theme-color);
    border-radius: 50%;
    opacity: 0;
    animation: sparklePop 0.9s ease-out;
}
.runner-wrap.is-emoting .runner-fx::before {
    left: -18px;
    animation-delay: 0.35s;
}
.runner-wrap.is-emoting .runner-fx::after {
    left: 10px;
    background: #ffd7ae;
    animation-delay: 0.45s;
}
@keyframes sparklePop {
    0%   { transform: translateY(0) scale(0.3); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(-40px) scale(1); opacity: 0; }
}

.runner-wrap.is-hidden {
    visibility: hidden;
}

@media (max-width: 768px) {
    .runner-track { bottom: 3%; height: 64px; }
    .runner-wrap { width: 54px; height: 64px; }
}

/* Contact Section */
#contact {
    min-height: 100vh;
    padding: 3rem 4rem;
    position: relative;
    z-index: 1;
    background: rgba(23, 23, 23, 0.3);
}

.contact-container {
    width: 100%;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 0 1rem;
}

.contact-info {
    flex: 1;
    padding: .8rem;
}

.contact-form {
    flex: 1;
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid rgba(64, 64, 64, 0.3);
    border-radius: 16px;
    padding: 4rem;
}

/* Heading Section */
.header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.header p {
    color: var(--text-sub);
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
}

        /* Icon styling */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-red);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Hover Effects */
.contact-item:hover .icon-box {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    box-shadow: 0 10px 25px rgba(233, 59, 59, 0.4);
}

/* Freelance Card Section */
.freelance-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Small stylistic accent for the card */
.freelance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(233, 59, 59, 0.1), transparent 40%);
    pointer-events: none;
}

.freelance-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.freelance-card p {
    color: var(--text-sub);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .contact-container {
        padding: 1.5rem;
    }
    .header h2 {
        font-size: 1.5rem;
            }
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.contact-form {
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid rgba(64, 64, 64, 0.3);
    border-radius: 16px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(64, 64, 64, 0.5);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--theme-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* Footer */
footer {
    max-height: fit-content;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--text-gray);
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

footer .footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--theme-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
/* WebGL simulation */
@font-face {
  font-family: 'iconfont';
  src: url('iconfont.ttf') format('truetype');
}
.dg {
  opacity: 0.9;
  visibility: hidden;
}

.dg .property-name {
  overflow: visible;
}
.bigFont {
  font-size: 150%;
  color: #8C8C8C;
}.cr.function.appBigFont {
                font-size: 150%;
                line-height: 27px;
                color: #A5F8D3;
                background-color: #023C40;
            }

            .cr.function.appBigFont .property-name {
                float: none;
            }

            .cr.function.appBigFont .icon {
                position: sticky;
                bottom: 27px;
            }
            .icon {
                font-family: 'iconfont';
                font-size: 130%;
                float: right;
            }

            .twitter:before {
                content: 'a';
            }

            .github:before {
                content: 'b';
            }

            .app:before {
                content: 'c';
            }

            .discord:before {
                content: 'd';
            }
            .promo {
                display: none;
                position: absolute;
                top: 0;
                left: 0;
                width: 1000%;
                height: 1000%;
                z-index: 2;
                overflow: auto;
                color: lightblue;
                background-color: rgba(0,0,0,0.4);
                animation: promo-appear-animation 0.35s ease-out;
            }
.promo-middle {
                display: table-cell;
                vertical-align: middle;
            }

            .promo-content {
                width: 800vw;
                height: 800vh;
                max-width: 800vh;
                max-height: 800vw;
                margin: auto;
                padding: 0;
                font-size: 2.8vmax;
                font-family: Futura, "Trebuchet MS", Arial, sans-serif;
                text-align: center;
                background-image: url("promo_back.png");
                background-position: center;
                background-repeat: no-repeat;
                background-size: cover;
                border-radius: 15px;
                box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            }
            .promo-header {
                height: 10%;
                padding: 2px 16px;
            }

            .promo-close {
                width: 10%;
                height: 100%;
                text-align: left;
                float: left;
                font-size: 1.3em;
            }

            .promo-close:hover {
                cursor: pointer;
            }

            .promo-body {
                padding: 8px 16px 16px 16px;
                margin: auto;
            }

            .promo-body p {
                margin-top: 0;
                mix-blend-mode: color-dodge;
            }
            .link {
                width: 100%;
                display: inline-block;
            }

            .link img {
                width: 100%;
            }

            @keyframes promo-appear-animation {
                0% {
                    transform: scale(2.0);
                    opacity: 0;
                }
                100% {
                    transform: scale(1.0);
                    opacity: 1;
                }
            }
/* Responsive */
@media (max-width: 1024px) {
    .talents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        height: 400px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .talents-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        padding: 2rem;
    }
}