html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}


article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

* {
  box-sizing: border-box;
  line-height: 1;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  border: none !important;
  position: relative;
}

body {
  font-family: 'Roboto Mono', monospace;
  background-color: #000;
  color: #00ff99;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
  position: relative;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

#binary-rain {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 255, 153, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  height: 64px;
  padding-right: 1.5rem;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1001;
  gap: 15px;
  border: none;
  line-height: 1;
}

.logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ff99;
  margin-left: 70px; /* Add margin to prevent overlap with hamburger menu */
  position: relative;
  letter-spacing: 0.12em;
  user-select: none;
  text-decoration: none;
}

.logo.glitch::before,
.logo.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  color: #00ff99;
  background: transparent;
  user-select: none;
  mix-blend-mode: screen;
}

.logo.glitch::before {
  animation: glitchTop 2s infinite linear;
  top: -3px;
  left: 2px;
  color: #00fff2;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  opacity: 0.85;
}

.logo.glitch::after {
  animation: glitchBottom 2s infinite linear;
  top: 3px;
  left: -2px;
  color: #00ff66;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0.85;
}

@keyframes glitchTop {
  0%, 20%, 40%, 60%, 80%, 100% { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
  10%, 30%, 50%, 70%, 90% { clip-path: polygon(0 5%, 100% 0, 100% 45%, 0 45%); }
}

@keyframes glitchBottom {
  0%, 20%, 40%, 60%, 80%, 100% { clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
  10%, 30%, 50%, 70%, 90% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
}

.page-container {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 40px;
}

.page {
  display: none;
  min-height: calc(100vh - 100px);
  padding: 20px 40px 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  transition: all 0.3s ease;
  z-index: 1200;
}

.nav-links a {
  color: #00ff99;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links a i {
  font-size: 1.1em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0, 255, 153, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
  transform: translateY(-2px);
  color: #00ffcc;
}

.nav-links a.active {
  border-left: 3px solid #00ff99;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  background: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none !important;
  position: relative;
  margin: 0;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #00ff99;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  border-radius: 1px;
  position: absolute;
  left: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

/* X Animation */
.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(0, 15, 8, 0.6);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 993px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 100px 10%;
    justify-content: space-between;
  }
  
  .hero-text {
    max-width: 55%;
  }
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #00ff99;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto 30px;
  display: block;
}

@media (min-width: 768px) {
  .profile-pic {
    width: 260px;
    height: 260px;
  }
}

@media (min-width: 993px) {
  .profile-pic {
    width: 300px;
    height: 300px;
    margin: 0;
  }
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 153, 0.7);
}

.hero-text {
  flex: 1;
  padding: 0 40px;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    text-align: left;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }
}

@media (min-width: 993px) {
  h1 {
    font-size: 3rem;
  }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #00cc99;
  text-align: center;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.5rem;
    text-align: left;
  }
}

.about-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 993px) {
  .about-list {
    margin: 30px 0;
    text-align: left;
  }
}

.about-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .about-list li {
    font-size: 1.1rem;
  }
}

.about-list .icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: #00ff99;
}

/* CTA Buttons */
.cta-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .cta-buttons {
    flex-direction: row;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .cta-buttons {
    margin-top: 40px;
    justify-content: flex-start;
  }
}

@media (min-width: 993px) {
  .cta-buttons {
    justify-content: flex-start;
    gap: 20px;
  }
}

.cta-buttons a {
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-buttons a:first-child {
  background: linear-gradient(45deg, #00ff99, #00cc99);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

.cta-buttons a:last-child {
  border: 2px solid #00ff99;
  color: #000 !important;
}

.cta-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 153, 0.4);
}

.cta-buttons a:last-child:hover {
  color: #000 !important;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 15px;
  background: rgba(0, 15, 8, 0.6);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.section h2 {
  color: #00ff99;
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding-bottom: 15px;
  justify-content: center;
  text-align: center;
}

.section h2::after {
  content: none;
  display: none;
}

.section h2 i {
  color: #00cc88;
}

#education .section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#education .section h2 {
  text-align: center;
}

#education .section h2::after {
  content: none;
  display: none;
}

#education .card {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: rgba(0, 15, 8, 0.6);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .card {
    padding: 30px;
    margin-bottom: 30px;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 255, 153, 0.15);
  border-color: rgba(0, 255, 153, 0.4);
}

.card h3 {
  color: #00ffcc;
  margin-bottom: 15px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.card h3::after {
  content: none;
  display: none;
}

.card p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #a0f0d0;
}

.card a {
  color: #00ff99;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dashed #00ff99;
  padding-bottom: 2px;
}

.card a:hover {
  color: #00ffcc;
  border-bottom-color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.terminal-section {
  max-width: 100%;
  margin: 20px auto;
  padding: 0 10px;
}

.terminal-window {
  background: rgba(0, 15, 8, 0.25);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 153, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 31, 15, 0.37);
  width: 100%;
  max-width: 100%;
  margin: 15px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 12px 40px rgba(0, 255, 153, 0.08);
  border: 1px solid rgba(0, 255, 153, 0.2);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .terminal-window {
    margin: 50px auto;
    width: 100%;
    max-width: 900px;
  }
}

.terminal-header {
  background: rgba(0, 20, 10, 0.45);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 153, 0.25);
  backdrop-filter: blur(8px);
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.traffic.red { background: #ff5f56; }
.traffic.yellow { background: #ffbd2e; }
.traffic.green { background: #27c93f; }

.terminal-title {
  color: #00ff99;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  margin-left: 10px;
}

.terminal {
  padding: 20px;
  min-height: 300px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 153, 0.3) transparent;
  overflow-y: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: #00ff99;
  background-color: rgba(0, 10, 5, 0.55);
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .page {
    padding: 16px 12px 40px;
  }
  .section {
    padding: 24px 16px;
  }
  .hero {
    padding: 90px 12px 40px;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding-top: 72px !important;
    padding-bottom: 24px !important;
  }
  .section {
    margin: 12px auto !important;
    padding: 20px 12px !important;
  }
  footer {
    padding: 10px 12px 14px !important;
  }
}

.terminal-output {
  margin-bottom: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  font-size: 0.9rem;
}

.terminal-input {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.prompt {
  color: #00ff99;
  margin-right: 10px;
  user-select: none;
  font-weight: bold;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00ff99;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  outline: none;
  caret-color: #00ff99;
  padding: 5px 0;
}

.command-line {
  color: #00ff99;
  margin: 10px 0;
  font-family: 'Roboto Mono', monospace;
}

.command-line .prompt {
  color: #00ff99;
  margin-right: 10px;
}

.command-output {
  color: #00cc99;
  margin: 5px 0 15px 0;
  padding-left: 20px;
  border-left: 2px solid rgba(0, 255, 153, 0.3);
}

.error-message {
  color: #ff5555;
  margin: 5px 0 15px 0;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 85, 85, 0.3);
}

.command-line {
  color: #00ff99;
  margin-bottom: 10px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form span {
  display: block;
  margin-bottom: 8px;
  color: #00ff99;
  font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 20, 15, 0.5);
  border: 1px solid rgba(0, 255, 153, 0.3);
  border-radius: 5px;
  color: #00ff99;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

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

.glitch-btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  color: #000;
  background: #00ff99;
  border: none;
  border-radius: 30px;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

.glitch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 153, 0.4);
  color: #000;
}

.glitch-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 255, 153, 0.3);
}

.glitch-btn::before,
.glitch-btn::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 30px;
  border-radius: 30px;
  z-index: -1;
  opacity: 0.8;
}

.glitch-btn::before {
  color: #00ff99;
  background: #000;
  animation: glitch-btn 3s infinite linear alternate-reverse;
}

.glitch-btn::after {
  color: #000;
  background: #00ff99;
  animation: glitch-btn 2s infinite linear alternate-reverse;
}

@keyframes glitch-btn {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.social-links {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
  padding: 0 10px;
}

.social-links h2 {
  color: #00ff99;
  margin-bottom: 30px;
  font-size: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.social-links h2::after {
  content: none;
  display: none;
}

.social-links h3 {
  color: #00ff99;
  margin-bottom: 30px;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.social-links h3::after {
  content: none;
  display: none;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 3vw, 18px);
  margin: 30px 0;
  position: relative;
  z-index: 2;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 10vw, 64px);
  height: clamp(44px, 10vw, 64px);
  border-radius: 50%;
  background: rgba(0, 30, 15, 0.45);
  color: #00ff99;
  opacity: 1;
  font-size: clamp(20px, 5vw, 28px);
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 255, 153, 0.35);
  text-decoration: none;
  box-shadow:
    0 0 0 6px rgba(0, 255, 153, 0.06),
    0 0 18px rgba(0, 255, 153, 0.25);
  text-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.social-icons a i {
  color: inherit;
  opacity: 1 !important;
  filter: none !important;
}

.social-icons a:hover {
  background: rgba(0, 255, 153, 0.18);
  color: #00ff99;
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 0 0 8px rgba(0, 255, 153, 0.08),
    0 10px 24px rgba(0, 255, 153, 0.35);
  border-color: #00ff99;
}

@media (max-width: 600px) {
  .social-icons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(6px, 2.5vw, 12px);
  }
  .social-icons a {
    width: min(12vw, 40px);
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: clamp(14px, 5vw, 18px);
    border-width: 1.25px;
    box-shadow:
      0 0 0 3px rgba(0, 255, 153, 0.06),
      0 0 12px rgba(0, 255, 153, 0.22);
    margin: 0; 
  }
}

@media (max-width: 360px) {
  .social-icons {
    gap: 6px;
  }
  .social-icons a {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (max-width: 320px) {
  .social-icons {
    gap: 5px;
  }
  .social-icons a {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

@media (min-width: 993px) {
  .page-container {
    padding-top: 72px; 
    padding-bottom: 24px;
  }
  .section {
    padding: 22px 18px; 
    margin: 10px auto;
  }
  .hero {
    padding: 64px 6%;
  }
  .social-links {
    margin: 12px auto;
  }
  .social-links h3 {
    margin-bottom: 16px;
  }
}

.social-icons a,
.social-icons a i {
  color: #00ff99 !important;
  opacity: 1 !important;
  filter: none !important;
}

#projects, #certifications {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  min-height: 100vh;
  padding: 80px 20px;
}

#projects.active, #certifications.active {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#projects .card, #certifications .card {
  background: rgba(0, 15, 8, 0.6);
  border-radius: 12px;
  padding: 30px;
  margin: 0 auto 40px;
  border: 1px solid rgba(0, 255, 153, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  transition: all 0.3s ease;
}

#projects .card:hover, #certifications .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 255, 153, 0.15);
  border-color: rgba(0, 255, 153, 0.4);
}

#projects h2, #certifications h2 {
  color: #00ff99;
  font-size: 2.5rem;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
}

#projects h2::after, #certifications h2::after {
  content: none;
  display: none;
}

#contact {
  padding: 60px 0;
  background: rgba(0, 10, 5, 0.5);
}

#contact-form-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #00ff99;
  font-size: 2.2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(0, 20, 10, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 153, 0.2);
}

.contact-form .glitch-btn {
  background: linear-gradient(45deg, #00ff99, #00e6a8) !important;
  color: #000 !important;
  border: 2px solid #00ff99 !important;
  border-radius: 9999px !important;
  padding: 12px 30px !important;
  display: inline-block;
  width: auto;
  margin: 12px auto 0;
  box-shadow:
    0 0 0 4px rgba(0, 255, 153, 0.12),
    0 12px 26px rgba(0, 255, 153, 0.35) !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
  transition: all 0.3s ease; 
}

.contact-form .glitch-btn::before,
.contact-form .glitch-btn::after {
  content: none !important; 
}

.contact-form .glitch-btn:hover {
  transform: translateY(-3px); 
  box-shadow: 0 6px 20px rgba(0, 255, 153, 0.4); 
  color: #000 !important; 
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #00cc99;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 15, 8, 0.5);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

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

.submit-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: rgba(0, 204, 153, 0.1);
  color: #00cc99;
  border: 1px solid #00cc99;
  border-radius: 5px;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: rgba(0, 255, 153, 0.2);
  color: #ffffff;
  border-color: #00ff99;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.1);
}

.glitch-btn {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: #00ff99;
  border: 2px solid #00ff99;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 15px;
  text-align: center;
}

@media (min-width: 480px) {
  .glitch-btn {
    width: auto;
    margin: 0 10px 0 0;
  }
}

@media (min-width: 768px) {
  .glitch-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}


.project-item, .certification-item {
  background: rgba(0, 20, 10, 0.3);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 255, 153, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-item::before, .certification-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.1), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover, .certification-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 153, 0.1);
  border-color: rgba(0, 255, 153, 0.3);
}

.project-item:hover::before, .certification-item:hover::before {
  opacity: 1;
}

.project-item h3, .certification-item h3 {
  color: #00ff99;
  margin: 0 0 15px 0;
  font-size: 1.6rem;
  padding-bottom: 10px;
  border-bottom: none; 
}

.project-item p, .certification-item p {
  color: #e0e0e0;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.project-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.3);
  border-radius: 6px;
  color: #00ccff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-links a:hover {
  background: rgba(0, 255, 153, 0.2);
  border-color: #00ff99;
  color: #00ff99;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.1);
  text-decoration: none;
}

.project-links a i {
  font-size: 1.1em;
}

#certifications .card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 30px;
}

.certification-item {
  background: rgba(0, 20, 10, 0.3);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid rgba(0, 255, 153, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.certification-item:hover {
  background: rgba(0, 30, 15, 0.5);
  border-color: rgba(0, 255, 153, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 153, 0.1);
}

.certification-item h3 {
  color: #00ff99;
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  padding-bottom: 10px;
  border-bottom: none; 
}

.certification-item p {
  color: #e0e0e0;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.certification-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.3);
  border-radius: 6px;
  color: #00ccff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  width: fit-content;
}

.certification-item a:hover {
  background: rgba(0, 255, 153, 0.2);
  border-color: #00ff99;
  color: #00ff99;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.1);
  text-decoration: none;
}

.certification-item a i {
  font-size: 1.1em;
}

@media (max-width: 1024px) {
  #certifications .card {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  #projects .card, #certifications .card {
    padding: 20px 15px;
  }
  
  .project-item, .certification-item {
    padding: 20px;
  }
  
  #projects h2, #certifications h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  #certifications .card {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links a, .certification-item a {
    width: 100%;
    justify-content: center;
  }
}

footer {
  position: static; 
  width: 100%;
  text-align: center;
  padding: 16px 12px 18px;
  background: transparent !important; 
  border-top: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

footer p {
  color: #00cc99;
  font-size: 0.9rem;
  margin-top: 6px;
}

footer .social-links {
  margin: 0 auto;
}

footer .social-icons {
  gap: 18px;
  margin: 10px 0 2px;
}

.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  margin-bottom: 30px;
}

.contact-form-container {
  flex: 2;
  min-width: 300px;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 8px;
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 255, 153, 0.3);
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 24px;
  background: #00ff99;
  border-radius: 3px;
  opacity: 1;
  left: 10px;
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  top: 15px;
  transform-origin: center;
}

.hamburger span:nth-child(2) {
  top: 21px;
  opacity: 1;
  transform-origin: center;
}

.hamburger span:nth-child(3) {
  top: 27px;
  transform-origin: center;
}

.hamburger.active {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 153, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.2);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 24px;
  left: 10px;
  background: #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 24px;
  left: 10px;
  top: 27px;
  background: #00ff99;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 999;
}

.nav-links li a {
  color: #00ff99;
  text-decoration: none;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .contact-form {
    padding: 20px 15px;
  }
  
  #contact-form-section h2 {
    font-size: 1.8rem;
  }
  
  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

.hamburger:hover {
  background: rgba(0, 30, 60, 0.9);
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.2);
}

.hamburger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.5);
}


@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: transparent;
    backdrop-filter: none;
    flex-direction: column;
    padding: 100px 20px 30px;
    margin: 0;
    list-style: none;
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    display: flex !important;
    box-shadow: none;
  }
  
  .nav-links.show { left: 0; }
  
  .nav-links li {
    margin: 10px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }
  
  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease 0.1s;
  }
  
  .nav-links li a {
    display: block;
    padding: 12px 15px;
    color: #00ff99;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: #fff;
    background: rgba(0, 255, 153, 0.1);
    border-radius: 4px;
    transform: translateX(5px);
  }
  
  .nav-links a {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #00ff99;
    text-decoration: none;
  }
  
  .nav-links a i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
  }
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #00ff99;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  gap: 10px;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 30px;
    height: 20px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    transition: left 0.3s ease-in-out;
    z-index: 950;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 10px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 12px 15px;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(0, 255, 153, 0.1);
    transform: translateX(5px);
  }

  .nav-links {
    width: 280px;
    height: 100vh;
    background: #0a0f1a;
    flex-direction: column;
    padding: 80px 20px 30px;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    margin: 0;
    list-style: none;
    border-left: 1px solid rgba(0, 255, 153, 0.1);
    display: flex !important;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
  }
  
  .nav-links li {
    margin: 10px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    width: 100%;
  }
  
  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links li:nth-child(5) { transition-delay: 0.3s; }
  .nav-links li:nth-child(6) { transition-delay: 0.35s; }
  .nav-links li:nth-child(7) { transition-delay: 0.4s; }
  
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin: 6px 12px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    font-size: 1rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 153, 0.1);
    backdrop-filter: blur(5px);
  }
  
  .nav-links a:hover {
    background: rgba(0, 255, 153, 0.1);
    color: #00ffcc;
  }
  
  .nav-links a i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #00ff99;
    transition: all 0.3s ease;
  }
}

@media (min-width: 993px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hamburger {
    display: none !important;
  }
  
  .nav-links li {
    margin: 0 5px;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .nav-links a {
    padding: 8px 15px;
    color: #00ff99;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
  }
  
  .nav-links a:hover {
    background: rgba(0, 255, 153, 0.1);
    color: #00ffcc;
  }
}

.nav-links.show {
  right: 0;
}

.nav-links li {
  margin: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.nav-links.show li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.nav-links li:nth-child(2) { transition-delay: 0.1s; }
.nav-links li:nth-child(3) { transition-delay: 0.15s; }
.nav-links li:nth-child(4) { transition-delay: 0.2s; }
.nav-links li:nth-child(5) { transition-delay: 0.25s; }
.nav-links li:nth-child(6) { transition-delay: 0.3s; }
.nav-links li:nth-child(7) { transition-delay: 0.35s; }
.nav-links li:nth-child(8) { transition-delay: 0.4s; }

.nav-links a {
  display: block;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #00ff99;
  text-decoration: none;
}

.nav-links a i {
  width: 25px;
  margin-right: 10px;
  text-align: center;
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
  
  body {
    overflow-x: hidden;
    padding-top: 80px;
  }
  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 1001;
    background: rgba(10, 25, 47, 0.9);
    border-radius: 5px;
    padding: 10px;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00ff99;
    margin: 3px 0;
    transition: all 0.3s ease;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(0, 10, 5, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 255, 153, 0.2);
    z-index: 1000;
    margin: 0;
    overflow-y: auto;
  }
  
  .nav-links.show {
    right: 0;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  
  .nav-overlay.active {
    display: block;
  }

  #projects, #certifications {
    display: none;
    opacity: 0;
    visibility: hidden;
  }
  #projects.active, #certifications.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 30px;
    border-radius: 0;
    border-left: 3px solid transparent;
  }
  
  .nav-links a.active {
    border-left-color: #00ff99;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }
  
  .profile-pic {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
  }
  
  .hero-text {
    padding: 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .about-list {
    text-align: left;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-buttons a {
    width: 100%;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 30px 15px;
  }
  
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .terminal-section {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  .terminal-window {
    border-radius: 10px;
  }
  
  .terminal {
    padding: 15px;
    min-height: 250px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .about-list li {
    font-size: 1rem;
  }
  
  .section h2 {
    font-size: 1.6rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 255, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0); }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 20, 10, 0.5);
}

::-webkit-scrollbar-thumb {
  background: #00aa77;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff99;
}

::selection {
  background: #00ff99;
  color: #000;
  text-shadow: none;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info, .contact-form-container {
  flex: 1;
  min-width: 300px;
  background: rgba(30, 30, 45, 0.6);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
  font-size: 1.8rem;
  color: #00ff99;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.contact-info h3::after {
  content: none;
  display: none;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-item i {
  font-size: 1.4rem;
  color: #00ff99;
  margin-right: 1.2rem;
  margin-top: 0.3rem;
  min-width: 24px;
  text-align: center;
}

.contact-item h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-item p, .contact-item a {
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #00ff99;
  text-decoration: none;
}

.social-links h4 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.cv-download {
  margin: 25px 0;
  text-align: center;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffcc 0%, #00ccff 100%);
  color: #0a192f;
  border: none;
  border-radius: 30px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-download-btn i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.cv-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.4);
  background: linear-gradient(135deg, #00e6b8 0%, #00b3e0 100%);
}

.cv-download-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 255, 204, 0.4);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: #00ff99;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.contact-form-container h3 {
  font-size: 1.5rem;
  color: #00ff99;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  position: relative;
}

.contact-form-container h3::after {
  content: none;
  display: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group .required {
  color: #ff4d4d;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(20, 20, 35, 0.8);
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.2);
}

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

.submit-btn {
  background: linear-gradient(45deg, #00ff99, #00ccff);
  color: #111;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.submit-btn i {
  font-size: 1.1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 153, 0.4);
}

footer.legacy-layout {
  background: #0a0a1a;
  color: #b3b3b3;
  padding: 4rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.footer-section h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  position: relative;
}

.footer-section h4::after {
  content: none;
  display: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

.footer-section ul li a:hover {
  color: #00ff99;
  padding-left: 5px;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-section p i {
  color: #00ff99;
  min-width: 20px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #b3b3b3;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: #00ff99;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-credits {
  color: #666;
  font-size: 0.85rem !important;
}

.footer-credits i {
  color: #ff4d4d;
  margin: 0 3px;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info, .contact-form-container {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h4::after {
    content: none;
    display: none;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-icons, .footer-social {
    justify-content: center;
  }
  
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .navbar {
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
  }
  .logo {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-left: 70px; /* Match the desktop margin */
    padding-right: 20px; /* Reduced from 56px to prevent overflow */ 
    white-space: nowrap;
  }
  .hamburger {
    position: fixed !important;
    top: 8px !important;
    left: 0px !important;
    right: auto !important;
    transform: none !important;
    z-index: 1201;
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
  }
  .page-container {
    padding-top: 88px !important; 
  }
}
