/* --- CSS Variables & Base Styles --- */
:root {
  --bg-color: #111111;
  --text-color: #EAEAEA;
  --accent-color: #00FF00; /* Electric Green */
  --border-color: #333333;
  --main-font: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--main-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Layout & Global --- */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
section { 
  margin: 150px 0;
  padding: 20px 0;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-text h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-color);
  opacity: 0.8;
  max-width: 450px;
}
.hero-image-container {
  width: 300px;
  height: 380px;
  flex-shrink: 0;
}
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  position: relative;
  z-index: 1;
}

/* --- About Section --- */
.about-section {
    text-align: center;
    margin: 0 auto 150px;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    opacity: 0.9;
}


/* --- Marquee --- */
.marquee {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-content span {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 20px;
}
.marquee-content .star {
    color: var(--accent-color);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Experience Section --- */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}
.experience-card {
    background-color: var(--bg-color);
    padding: 20px;
}
.experience-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}
.experience-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- Projects Section --- */
.projects-grid {
  border-top: 1px solid var(--border-color);
}
.project-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}
.project-card:hover {
    background-color: var(--border-color);
}
.project-card span {
    font-size: 1rem;
    opacity: 0.8;
}
.project-card h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
}
.project-card p {
  margin-left: auto;
  opacity: 0.8;
  text-align: right;
}

/* --- Contact / Footer --- */
.contact-section {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}
.contact-content h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}
.contact-email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}
.contact-email:hover::after {
    transform: scaleX(0);
}
.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.social-links a {
    font-size: 1.5rem; /* Increased size for icons */
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
}
.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Animations & Glitch --- */
.glitch {
    position: relative;
}
.glitch:hover::before, .glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    overflow: hidden;
}
.glitch:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch:hover::after {
    left: -2px;
    text-shadow: -2px 0 #ff00c1, 2px 2px var(--accent-color);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

.hero-image-glitch { position: relative; height: 100%; }
.glitch-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0;
}
.hero-image-glitch:hover .glitch-img {
    animation: glitch-img-anim 0.5s steps(1, end) infinite;
}
.hero-image-glitch:hover .glitch-img:nth-child(2) { opacity: 1; transform: translate3d(-5px,-3px,0); animation-delay: 0.1s; }
.hero-image-glitch:hover .glitch-img:nth-child(3) { opacity: 1; transform: translate3d(5px,3px,0); animation-delay: 0.2s; }
.hero-image-glitch:hover .glitch-img:nth-child(4) { opacity: 1; transform: translate3d(8px,-5px,0); animation-delay: 0.3s; }

@keyframes glitch-anim-1 { 0%, 100% { clip-path: inset(39% 0 61% 0); } 25% { clip-path: inset(5% 0 33% 0); } 50% { clip-path: inset(34% 0 10% 0); } 75% { clip-path: inset(70% 0 2% 0); } }
@keyframes glitch-anim-2 { 0%, 100% { clip-path: inset(3% 0 70% 0); } 25% { clip-path: inset(55% 0 10% 0); } 50% { clip-path: inset(20% 0 45% 0); } 75% { clip-path: inset(40% 0 5% 0); } }
@keyframes glitch-img-anim { 0%, 100% { clip-path: inset(50% 0 30% 0); } 20% { clip-path: inset(10% 0 85% 0); } 40% { clip-path: inset(80% 0 5% 0); } 60% { clip-path: inset(30% 0 60% 0); } 80% { clip-path: inset(90% 0 2% 0); } }

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .content-wrapper { padding: 0 20px; }
  section { margin: 80px 0; }
  .hero { flex-direction: column-reverse; text-align: center; min-height: unset; margin: 40px 0 80px 0; }
  .hero-subtitle { margin: 20px auto 0; }
  .hero-image-container { width: 100%; max-width: 280px; height: 350px; }
  .experience-grid { grid-template-columns: 1fr; }
  .project-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .project-card p { margin-left: 0; text-align: left; }
}

