/**
Basic Components ana root elements
*/
:root {
  --primary-black: #000000;
  --primary-pink: #ec576b;
  --primary-aqua: #4ec5c1;
  --primary-lime: #e5e338;
  --primary-white: #ffffff;
  --primary-whitel: #f0f0f0;
  --secondary-black: #000000;
  --secondary-pink: #ec576b;
  --secondary-aqua: #4ec5c1;
  --secondary-lime: #e5e338;
  --secondary-white: #ffffff;
  --secondary-whitel: #f0f0f0;
  --primary-screen: #c5c1c0;
  --primary-steel: #0a1612;
  --primary-denim: #1a2930;
  --primary-marigold: #f7ce3e;
  --secondary-screen: #c5c1c0;
  --secondary-steel: #0a1612;
  --secondary-denim: #1a2930;
  --secondary-marigold: #f5d561;
}

/* Dark Theme (Default) */
body, :root {
  --primary-accent: #3b82f6;
  --secondary-accent: #6366f1;
  --bg-primary: #0a0f1e;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --card-bg: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --overlay-bg: rgba(10, 15, 30, 0.95);
}

/* Light Theme */
body[data-theme="light"], :root[data-theme="light"] {
  --primary-accent: #2563eb;
  --secondary-accent: #4f46e5;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-bg: rgba(255, 255, 255, 0.95);
}

/* Legacy variables for backwards compatibility */
:root {
  --dark-bg: var(--bg-secondary);
  --darker-bg: var(--bg-primary);
  --light-text: var(--text-primary);
  --muted-text: var(--text-secondary);
}

html,
body {
  /* height: 100%; */
  padding: 0;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Quicksand", sans-serif;
  box-sizing: content-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}
*,
::before,
::after {
  list-style: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
ul {
  padding: 0;
  margin: 0;
}
li {
  list-style: none;
}
ul li a {
  position: relative;
  display: block;
  text-decoration: none;
  transition: 0.5s;
}
ul li a::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  top: 100%;
  left: 0;
  background: var(--primary-marigold);
  transition: transform 0.5s;
  transform: scaleX(0);
  transform-origin: right;
}
ul li a:hover {
  color: #95a5a6;
}
ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
section {
  min-height: calc(100vh);
  position: relative;
  height: fit-content;
  /* min-height: calc(100vh - 64px); */
  /* margin-bottom: 6rem; */
}

.z-1 {
  z-index: 1;
}
.section-title {
  color: var(--light-text);
  text-align: center;
  font-size: 4rem;
  margin: 0.5em 0;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s ease;
}

.section-title:hover {
  letter-spacing: 6px;
  transform: scale(1.05);
}

.section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border: 3px solid var(--primary-accent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s ease;
}

.section-title:hover::before {
  width: 120%;
  height: 120%;
  opacity: 0.3;
}
.section-title-small {
  font-size: 4rem;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.section-container {
  padding: 2rem 5rem;
}
.flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.align-self-center {
  align-self: center;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.flex-dir-col {
  flex-direction: column;
}
.show {
  display: block;
}
.hide {
  display: none;
}
.fixed-header {
  position: fixed;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(25px) saturate(180%);
  width: 100%;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  z-index: 200;
}
.overlay-static {
  /* height: 100vh; */
  overflow: overlay;
}
a,
a:link,
a:active,
a:visited,
a:hover {
  text-decoration: none;
}

/* resp navbar */
/* NAVBAR STYLING STARTS */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: teal;
  color: #fff;
}
.nav-links a {
  color: #fff;
}
/* LOGO */
.logo {
  font-size: 32px;
}
/* NAVBAR MENU */
.menu {
  display: flex;
  gap: 1em;
  font-size: 18px;
}
.menu li:hover {
  background-color: #4c9e9e;
  border-radius: 5px;
  transition: 0.3s ease;
}
.menu li {
  padding: 5px 14px;
}
/* DROPDOWN MENU */
.services {
  position: relative;
}
.dropdown {
  background-color: rgb(1, 139, 139);
  padding: 1em 0;
  position: absolute; /*WITH RESPECT TO PARENT*/
  display: none;
  border-radius: 8px;
  top: 35px;
}
.dropdown li + li {
  margin-top: 10px;
}
.dropdown li {
  padding: 0.5em 1em;
  width: 8em;
  text-align: center;
}
.dropdown li:hover {
  background-color: #4c9e9e;
}
.services:hover .dropdown {
  display: block;
}

/*RESPONSIVE NAVBAR MENU STARTS*/
/* CHECKBOX HACK */
input[type="checkbox"] {
  display: none;
}
/*HAMBURGER MENU*/
.hamburger {
  display: none;
  font-size: 24px;
  user-select: none;
}

.sidebar {
  position: absolute;
  z-index: 250;
  background: var(--primary-steel);
  height: 100vh;
  width: 0;
  overflow: scroll;
  top: 0;
  right: 0;
}
.sidebar.close {
  width: 0%;
  transition: all 0.2s ease-out;
}
.sidebar.open {
  width: 100%;
  transition: all 0.2s ease-out;
  position: fixed;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  /* place-content: center; */
  align-items: center;
  height: 100%;

  overflow: scroll;
  position: relative;
  padding: 3rem 0;
  /* top: 3rem;
  bottom: 3rem; */
}
.sidebar-link {
  padding: 0.8rem 2rem;
  margin: 1rem;
  cursor: pointer;
}
.sidebar-link a {
  color: #fff !important;
}
.close-icon {
  position: absolute;
  right: 5%;
  top: 3%;
  z-index: 260;
  cursor: pointer;
}

/* APPLYING MEDIA QUERIES */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    background-color: teal;
    right: 0;
    left: 0;
    text-align: center;
    padding: 16px 0;
  }
  .menu li:hover {
    display: inline-block;
    background-color: #4c9e9e;
    transition: 0.3s ease;
  }
  .menu li + li {
    margin-top: 12px;
  }
  input[type="checkbox"]:checked ~ .menu {
    display: block;
  }
  .hamburger {
    display: block;
  }
  .dropdown {
    left: 50%;
    top: 30px;
    transform: translateX(35%);
  }
  .dropdown li:hover {
    background-color: #4c9e9e;
  }
}
/* end of resp navbar */

/* navbar */
header {
  padding: 0px 2rem;
  height: 100%;
}
nav {
  display: flex;
  justify-content: center;
  flex: auto;
}
#header {
  height: 64px;
  /* position: sticky; */
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.header-logo-img {
  width: 38px;
  height: 38px;
  filter: invert(1) brightness(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
  transition: all 0.3s ease;
}

.header-logo-img:hover {
  filter: invert(1) brightness(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
  transform: scale(1.1);
}
.header-menu-icon {
  width: 32px;
  height: 32px;
  display: none;
  filter: invert(1) brightness(1.2);
  transition: all 0.3s ease;
}
/* .scroll-header {
  height: 13%;
} */

/* .fixed-header {
  box-shadow: 2px 2px 0px 0px #ffbdbd70;
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #f0f0f0;
  height: 64px;
  display: none;
  transition: height 0.4s linear;
} */
.scroll-header {
  /* display: none; */
}
.header-links {
  justify-content: center;
}
.header-link a {
  padding: 0.8rem 2rem;
  margin: 0rem 1rem;
  cursor: pointer;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.header-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.header-link a:hover {
  color: var(--primary-accent) !important;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.header-link a:hover::after {
  width: 80%;
}

/* Theme Toggle Button */
.theme-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

/* Theme Toggle Switch Styles */
.theme-toggle-switch {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.toggle-track {
  position: relative;
  width: 60px;
  height: 30px;
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid var(--primary-accent);
  border-radius: 30px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.theme-toggle-switch:hover .toggle-track {
  background: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.toggle-thumb {
  position: absolute;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .toggle-thumb {
  left: calc(100% - 25px);
}

.toggle-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: all 0.3s ease;
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #0a0f1e;
}

.sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  color: #ffffff;
}

body[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

body[data-theme="light"] .toggle-track {
  background: rgba(255, 193, 7, 0.2);
  border-color: #fbbf24;
}

body[data-theme="light"] .toggle-thumb {
  background: #fbbf24;
}

/* Light Mode Specific Adjustments */
body[data-theme="light"] {
  /* Header */
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] #header {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
}

body[data-theme="light"] .fixed-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .header-link a {
  color: var(--text-primary) !important;
  text-shadow: none;
}

body[data-theme="light"] .background-text-line {
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.15);
  text-stroke: 1px rgba(59, 130, 246, 0.15);
}

body[data-theme="light"] .background-text {
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.12);
  text-stroke: 1px rgba(59, 130, 246, 0.12);
}

body[data-theme="light"] .timeline-main-line {
  background: linear-gradient(to bottom,
    var(--primary-accent) 0%,
    var(--secondary-accent) 50%,
    var(--primary-accent) 100%);
  opacity: 0.3;
}

body[data-theme="light"] .node-dot {
  background: var(--primary-accent);
  box-shadow:
    0 0 15px var(--primary-accent),
    0 0 30px rgba(59, 130, 246, 0.3),
    inset 0 0 8px rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .sidebar {
  background: var(--bg-tertiary);
}

body[data-theme="light"] .sidebar-link a {
  color: var(--text-primary) !important;
}

body[data-theme="light"] .tech-tag {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary-accent);
}

body[data-theme="light"] .tech-tag:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* News Cards */
body[data-theme="light"] .news-card {
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

body[data-theme="light"] .news-card__title {
  color: var(--text-primary);
}

body[data-theme="light"] .news-card__excerpt {
  color: var(--text-secondary);
}

/* Social Cards */
body[data-theme="light"] .social-card {
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

body[data-theme="light"] .social-title,
body[data-theme="light"] .social-desc,
body[data-theme="light"] .social-id {
  color: var(--text-primary) !important;
}

/* Contact Form */
body[data-theme="light"] .screen {
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

body[data-theme="light"] .app-title span {
  color: var(--text-primary);
}

body[data-theme="light"] .app-form-control {
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

body[data-theme="light"] .app-form-button {
  color: var(--text-primary);
  border-color: var(--primary-accent);
  background: transparent;
}

body[data-theme="light"] .app-form-button:hover {
  background: var(--primary-accent);
  color: #ffffff;
}

/* Preview Modal */
body[data-theme="light"] .preview-modal {
  background: var(--overlay-bg);
}

body[data-theme="light"] .preview-modal__container {
  background: var(--card-bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .preview-modal__title,
body[data-theme="light"] .preview-modal__description,
body[data-theme="light"] .preview-modal__tech-title,
body[data-theme="light"] .preview-modal__features-title {
  color: var(--text-primary);
}

body[data-theme="light"] .preview-modal__details {
  background: var(--bg-tertiary);
  border-left: 1px solid var(--border-color);
}

body[data-theme="light"] .tech-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
}

body[data-theme="light"] .preview-modal__btn--primary {
  background: var(--primary-accent);
  color: #ffffff;
}

body[data-theme="light"] .preview-modal__close,
body[data-theme="light"] .preview-modal__nav {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Particles */
body[data-theme="light"] .particle,
body[data-theme="light"] .flow-particle {
  background: var(--primary-accent);
  opacity: 0.4;
}

/* About Section Particles */
body[data-theme="light"] .about-particles .particle {
  background: var(--primary-accent);
  opacity: 0.3;
}

/* Hero Section */
body[data-theme="light"] .name {
  color: var(--primary-accent);
}

body[data-theme="light"] .greeting,
body[data-theme="light"] .prefix,
body[data-theme="light"] .action,
body[data-theme="light"] .hero-subtitle {
  color: var(--text-primary);
}

body[data-theme="light"] .code-bracket,
body[data-theme="light"] .rotating-role {
  color: var(--text-secondary);
}

body[data-theme="light"] .prompt-symbol {
  color: var(--primary-accent);
}

body[data-theme="light"] .cta-text {
  color: var(--text-secondary);
}

body[data-theme="light"] .scroll-indicator .mouse {
  border-color: var(--primary-accent);
}

body[data-theme="light"] .scroll-indicator .wheel {
  background: var(--primary-accent);
}

body[data-theme="light"] .scroll-indicator .scroll-text {
  color: var(--primary-accent);
}

/* About Section */
body[data-theme="light"] .about-title {
  color: var(--text-primary);
}

body[data-theme="light"] .about-description {
  color: var(--text-secondary);
}

/* Social Icons */
body[data-theme="light"] .social-icon.dark img {
  filter: brightness(0) invert(0);
}

body[data-theme="light"] .social-icon img {
  filter: brightness(0.2);
}

/* Section Title */
body[data-theme="light"] .section-title {
  color: var(--text-primary);
}

/* Works Section Background */
body[data-theme="light"] #works {
  background: var(--bg-secondary);
}

body[data-theme="light"] #about {
  background: var(--bg-secondary);
}

body[data-theme="light"] #social-network {
  background: var(--bg-secondary);
}

body[data-theme="light"] #footer {
  background: var(--bg-tertiary);
}

/* Wave Animation Background */
body[data-theme="light"] .wave {
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(59, 130, 246, 0.1));
}

/* SVG Lines in Works Section */
body[data-theme="light"] #home-anim line {
  stroke: rgba(59, 130, 246, 0.2);
}

/* Close Icon */
body[data-theme="light"] .close-icon img {
  filter: brightness(0.3);
}

/* Screen Header Buttons */
body[data-theme="light"] .screen-header-button {
  background: var(--border-color);
}

body[data-theme="light"] .screen-header-button.close {
  background: #ff5f57;
}

body[data-theme="light"] .screen-header-button.maximize {
  background: #ffbd2e;
}

body[data-theme="light"] .screen-header-button.minimize {
  background: #28ca42;
}

/* Circles Animation */
body[data-theme="light"] .circles li {
  background: rgba(59, 130, 246, 0.1);
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
  margin-top: auto;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle-mobile {
  display: none;
}

/* Show mobile toggle only on small screens */
@media (max-width: 768px) {
  .theme-toggle-container {
    display: none !important;
  }

  .theme-toggle-mobile {
    display: flex;
  }

  .sidebar-theme-toggle {
    display: flex;
  }
}

/* Desktop - hide mobile toggle */
@media (min-width: 769px) {
  .sidebar-theme-toggle {
    display: none;
  }
}

/* .header-link:hover { */
/* transition: color 0.2s, background-color 1s ease-out 100ms; */
/* background-color: #ff416c; */
/* fallback for old browsers */
/* background-color: -webkit-linear-gradient(to top, #ff4b2b, #ff416c); */
/* Chrome 10-25, Safari 5.1-6 */
/* background-color: linear-gradient(to top, #ff4b2b, #ff416c); */
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
/* color: #f0f0f0; */
/* } */

/* navbar end */

/* intro-section */
#intro-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: background-color 0.3s ease;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  padding: 2rem 5rem;
  position: relative;
  z-index: 1;
}

/* Hero Decorations */
.hero-decorations {
  display: none;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.start-line {
  animation-delay: 0.3s;
}

.end-line {
  position: absolute;
  bottom: -25vh;
  left: 0;
  animation-delay: 1.5s;
}

.line-number {
  color: var(--primary-accent);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.8;
}

.code-text {
  color: var(--muted-text);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Hide the old vertical line in hero section */
.vertical-line {
  display: none;
}

/* Global Timeline - Starts below header */
.global-timeline {
  position: fixed;
  left: 5%;
  top: 64px;
  bottom: 0;
  width: 3px;
  z-index: 100;
  pointer-events: none;
}

/* Main timeline line */
.timeline-main-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    var(--primary-accent) 0%,
    var(--secondary-accent) 50%,
    var(--primary-accent) 100%);
  opacity: 0.5;
}

/* Flowing particles */
.timeline-flow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.flow-particle {
  position: absolute;
  left: -2px;
  width: 7px;
  height: 7px;
  background: var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-accent);
  opacity: 0;
}

.flow-particle:nth-child(1) {
  animation: flow-down 5s ease-in-out infinite;
}

.flow-particle:nth-child(2) {
  animation: flow-down 6s ease-in-out infinite 2s;
}

.flow-particle:nth-child(3) {
  animation: flow-down 5.5s ease-in-out infinite 4s;
}

@keyframes flow-down {
  0% {
    top: 0;
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Section Timeline Nodes */
.timeline-node {
  position: absolute;
  left: 5%;
  top: 10%;
  z-index: 101;
  pointer-events: auto;
}

/* Node dot */
.node-dot {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--primary-accent);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--primary-accent),
    0 0 40px rgba(59, 130, 246, 0.4),
    inset 0 0 8px rgba(255, 255, 255, 0.6);
  animation: node-pulse 2s ease-in-out infinite;
  cursor: pointer;
  transform: translateX(-8px);
}

.node-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  animation: node-ring 2s ease-out infinite;
}

@keyframes node-pulse {
  0%, 100% {
    transform: translateX(-8px) scale(1);
  }
  50% {
    transform: translateX(-8px) scale(1.1);
  }
}

@keyframes node-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }
  100% {
    width: 250%;
    height: 250%;
    opacity: 0;
  }
}

/* Connecting branch */
.node-branch {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right,
    var(--primary-accent),
    transparent);
  opacity: 0;
  animation: branch-draw 1s ease forwards;
}

.node-branch::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-accent);
  animation: branch-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes branch-draw {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 60px;
    opacity: 0.7;
  }
}

@keyframes branch-dot-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Label on hover */
.timeline-node::after {
  content: attr(data-label);
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.timeline-node:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Active node state */
.timeline-node.active .node-dot {
  background: var(--secondary-accent);
  box-shadow:
    0 0 30px var(--secondary-accent),
    0 0 50px rgba(99, 102, 241, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.8);
  animation: node-pulse-active 1.5s ease-in-out infinite;
}

.timeline-node.active .node-branch {
  background: linear-gradient(to right,
    var(--secondary-accent),
    transparent);
  opacity: 1;
}

@keyframes node-pulse-active {
  0%, 100% {
    transform: translateX(-8px) scale(1);
  }
  50% {
    transform: translateX(-8px) scale(1.2);
  }
}

/* Hero Content */
.hero-content {
  margin-left: 0;
  position: relative;
  z-index: 3;
}

.hero-title {
  margin-bottom: 1rem;
}

.greeting {
  display: block;
  font-size: 2rem;
  font-weight: 400;
  color: var(--light-text);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

.name {
  display: block;
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-accent);
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.7s;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.prefix {
  color: var(--light-text);
  font-style: italic;
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.action {
  color: var(--light-text);
  font-style: italic;
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1s;
}

.and {
  color: var(--light-text);
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.1s;
}

.develop-text {
  color: var(--light-text);
  font-family: 'Courier New', monospace;
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.2s;
}

.suffix {
  color: var(--light-text);
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.3s;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--muted-text);
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.4s;
}

/* Rotating Role */
.role-container {
  min-height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.code-bracket {
  color: var(--primary-accent);
  font-size: 2.5rem;
  font-weight: 700;
}

.rotating-role {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--muted-text);
  display: inline-block;
  padding: 0 0.5rem;
}

/* Tech Stack Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.5s;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--primary-accent);
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: techTagPop 0.5s ease forwards;
}

.tech-tag:nth-child(1) { animation-delay: 1.6s; }
.tech-tag:nth-child(2) { animation-delay: 1.7s; }
.tech-tag:nth-child(3) { animation-delay: 1.8s; }
.tech-tag:nth-child(4) { animation-delay: 1.9s; }
.tech-tag:nth-child(5) { animation-delay: 2s; }
.tech-tag:nth-child(6) { animation-delay: 2.1s; }
.tech-tag:nth-child(7) { animation-delay: 2.2s; }
.tech-tag:nth-child(8) { animation-delay: 2.3s; }

.tech-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  border-color: var(--primary-accent);
  background: rgba(59, 130, 246, 0.2);
}

/* CTA with cursor */
.hero-cta {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--muted-text);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 2.4s;
}

.prompt-symbol {
  color: var(--primary-accent);
  margin-right: 0.5rem;
  animation: pulse-opacity 2s ease-in-out infinite;
}

.cta-text {
  color: var(--muted-text);
}

.cursor-blink {
  margin-left: 0.25rem;
  animation: blink-cursor 1s step-end infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards, float-up-down 2s ease-in-out infinite;
  animation-delay: 2s, 2.5s;
  z-index: 50;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-accent);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-accent);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--primary-accent);
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Hero Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 50%;
  opacity: 0.3;
}

.particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation: twinkle 3s ease-in-out infinite;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation: twinkle 4s ease-in-out infinite 1s;
}

.particle:nth-child(3) {
  top: 40%;
  right: 20%;
  animation: twinkle 3.5s ease-in-out infinite 0.5s;
}

.particle:nth-child(4) {
  bottom: 30%;
  left: 70%;
  animation: twinkle 4.5s ease-in-out infinite 1.5s;
}

.particle:nth-child(5) {
  top: 80%;
  left: 40%;
  animation: twinkle 3.8s ease-in-out infinite 0.8s;
}
/* .img-border {
  height: 100%;
  width: 60%;
  position: absolute;
  left: 10%;
  bottom: -10%;
  border: 15px solid var(--primary-marigold);
  z-index: 0;
} */
.intro-content {
  font-size: 2.5rem;
  line-height: 2em;
  animation: slide-in-left 1s ease-out;
}

.intro-content p {
  color: var(--muted-text);
  font-weight: 500;
  line-height: 1.6;
}
/* @import url("https://fonts.googleapis.com/css?family=Montserrat:700"); */

.hero {
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__title {
  color: #383838;
  font-size: 50px;
  /* z-index: 1; */
  display: grid;
  grid-template-columns: 50% 50%;
}
.wrapper {
  width: 100%;
}
/* intro section end  */

/* about me  */
#about {
  /* height: 100%; */
  /* background-color: var(--primary-marigold);
  color: var(--primary-denim); */
  overflow: hidden;
  position: relative;
  background: var(--dark-bg);
}

#about::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  opacity: 0.12;
  animation: float-up-down 15s ease-in-out infinite;
  filter: blur(80px);
  z-index: 0;
}

#about::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  opacity: 0.12;
  animation: float-up-down 12s ease-in-out infinite reverse;
  filter: blur(80px);
  z-index: 0;
}

/* About Particles */
.about-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.about-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 50%;
  opacity: 0.4;
}

.about-particles .particle:nth-child(1) {
  top: 15%;
  left: 20%;
  animation: twinkle 4s ease-in-out infinite;
}

.about-particles .particle:nth-child(2) {
  top: 70%;
  left: 85%;
  animation: twinkle 3.5s ease-in-out infinite 1s;
}

.about-particles .particle:nth-child(3) {
  top: 35%;
  right: 25%;
  animation: twinkle 5s ease-in-out infinite 0.5s;
  background: var(--secondary-accent);
}

.about-particles .particle:nth-child(4) {
  bottom: 40%;
  left: 75%;
  animation: twinkle 4.2s ease-in-out infinite 1.5s;
}

.about-particles .particle:nth-child(5) {
  top: 85%;
  left: 35%;
  animation: twinkle 3.8s ease-in-out infinite 0.8s;
  background: var(--secondary-accent);
}

.about-particles .particle:nth-child(6) {
  top: 50%;
  left: 10%;
  animation: twinkle 4.5s ease-in-out infinite 2s;
}

.about-content {
  /* padding: 0rem 4rem; */
  display: grid;
  grid-template-columns: 50% 50%;
  position: relative;
  z-index: 2;
}
.about-title {
  font-size: 7rem;
  color: var(--light-text);
  font-weight: 900;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-title:hover {
  transform: translateX(10px);
  color: var(--primary-accent);
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  transition: width 0.6s ease;
  z-index: -1;
  opacity: 0.3;
}

.about-title:hover::after {
  width: 100%;
}

.about-description {
  font-size: 32px;
  line-height: 1.8;
  color: var(--muted-text);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.about-description::first-letter {
  font-size: 2.5em;
  font-weight: 900;
  color: var(--primary-accent);
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.1em;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: ripple 15s infinite;
  box-shadow: 0px 0px 1px 0px #508fb9;
}

.small {
  width: 200px;
  height: 200px;
  left: -100px;
  bottom: -100px;
}

.medium {
  width: 400px;
  height: 400px;
  left: -200px;
  bottom: -200px;
}

.large {
  width: 600px;
  height: 600px;
  left: -300px;
  bottom: -300px;
}

.xlarge {
  width: 800px;
  height: 800px;
  left: -400px;
  bottom: -400px;
}

.xxlarge {
  width: 1000px;
  height: 1000px;
  left: -500px;
  bottom: -500px;
}

.shade1 {
  opacity: 0.2;
}

.shade2 {
  opacity: 0.5;
}

.shade3 {
  opacity: 0.7;
}

.shade4 {
  opacity: 0.8;
}

/* Experience Section Styles */
.experience-content {
  padding: 4rem;
  position: relative;
  z-index: 2;
}

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

.section-title {
  font-size: 5rem;
  color: var(--light-text);
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--muted-text);
  font-weight: 400;
}

.experience-timeline {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 200px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--primary-accent) 0%,
    var(--secondary-accent) 50%,
    var(--primary-accent) 100%);
  opacity: 0.3;
}

.experience-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 3rem;
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 193px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px var(--primary-accent);
  z-index: 2;
}

.experience-date {
  font-size: 1rem;
  color: var(--primary-accent);
  font-weight: 600;
  text-align: right;
  padding-top: 0.5rem;
  letter-spacing: 0.5px;
}

.experience-details {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary-accent);
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.3s ease;
}

.experience-details:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.3);
  border-left-color: var(--secondary-accent);
}

.experience-role {
  font-size: 1.8rem;
  color: var(--light-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experience-company {
  font-size: 1.2rem;
  color: var(--primary-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.experience-highlights {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.experience-highlights li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted-text);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.experience-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-accent);
  font-size: 1.2rem;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--primary-accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.background-text--experience {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.06);
  text-stroke: 1px rgba(59, 130, 246, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Experience Particles */
.experience-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.experience-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 50%;
  opacity: 0.4;
}

.experience-particles .particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation: twinkle 4s ease-in-out infinite;
}

.experience-particles .particle:nth-child(2) {
  top: 65%;
  left: 80%;
  animation: twinkle 3.5s ease-in-out infinite 1s;
}

.experience-particles .particle:nth-child(3) {
  top: 40%;
  right: 20%;
  animation: twinkle 5s ease-in-out infinite 0.5s;
  background: var(--secondary-accent);
}

.experience-particles .particle:nth-child(4) {
  bottom: 35%;
  left: 70%;
  animation: twinkle 4.2s ease-in-out infinite 1.5s;
}

.experience-particles .particle:nth-child(5) {
  top: 80%;
  left: 40%;
  animation: twinkle 3.8s ease-in-out infinite 0.8s;
  background: var(--secondary-accent);
}

.experience-particles .particle:nth-child(6) {
  top: 55%;
  left: 8%;
  animation: twinkle 4.5s ease-in-out infinite 2s;
}

/* Skills Section Styles */
.skills-content {
  padding: 4rem;
  position: relative;
  z-index: 2;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.skill-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-accent);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card-highlight {
  border: 2px solid var(--primary-accent);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.skill-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-card-icon {
  background: var(--primary-accent);
  color: var(--bg-primary);
  transform: rotate(5deg) scale(1.1);
}

.skill-card-title {
  font-size: 1.5rem;
  color: var(--light-text);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.background-text--skills {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.06);
  text-stroke: 1px rgba(59, 130, 246, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Skills Particles */
.skills-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.skills-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 50%;
  opacity: 0.4;
}

.skills-particles .particle:nth-child(1) {
  top: 18%;
  left: 25%;
  animation: twinkle 4s ease-in-out infinite;
}

.skills-particles .particle:nth-child(2) {
  top: 75%;
  left: 88%;
  animation: twinkle 3.5s ease-in-out infinite 1s;
}

.skills-particles .particle:nth-child(3) {
  top: 30%;
  right: 18%;
  animation: twinkle 5s ease-in-out infinite 0.5s;
  background: var(--secondary-accent);
}

.skills-particles .particle:nth-child(4) {
  bottom: 45%;
  left: 78%;
  animation: twinkle 4.2s ease-in-out infinite 1.5s;
}

.skills-particles .particle:nth-child(5) {
  top: 88%;
  left: 30%;
  animation: twinkle 3.8s ease-in-out infinite 0.8s;
  background: var(--secondary-accent);
}

.skills-particles .particle:nth-child(6) {
  top: 48%;
  left: 5%;
  animation: twinkle 4.5s ease-in-out infinite 2s;
}

/* Project Tech Tags */
.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.news-card__excerpt {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Project Tabs */
.projects-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto 4rem;
  position: relative;
  max-width: 400px;
}

.tab-btn {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--muted-text);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  outline: none;
}

.tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-accent);
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  font-weight: 700;
}

.tab-indicator {
  position: absolute;
  bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.projects-grid {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Projects Placeholder */
.projects-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.placeholder-content {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
}

.placeholder-content svg {
  color: var(--primary-accent);
  opacity: 0.5;
  margin-bottom: 2rem;
}

.placeholder-content h3 {
  font-size: 2rem;
  color: var(--light-text);
  font-weight: 700;
  margin-bottom: 1rem;
}

.placeholder-content p {
  font-size: 1.1rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.shade5 {
  opacity: 0.9;
}

/* about me end  */

/* my works  */
#works {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#works::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
  border-radius: 50%;
  top: 10%;
  left: 5%;
  opacity: 0.08;
  animation: float-up-down 8s ease-in-out infinite;
  filter: blur(60px);
}

#works::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  right: 5%;
  opacity: 0.08;
  animation: float-up-down 10s ease-in-out infinite reverse;
  filter: blur(80px);
}

.work-content {
  /* padding: 0rem 4rem; */
  display: grid;
  z-index: 1;
  position: relative;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  /* padding: 0.5rem; */
}

.news-card {
  border: 2px solid var(--border-color);
  margin: 0.5rem;
  position: relative;
  height: 12rem;
  overflow: hidden;
  border-radius: 1rem;
  flex: 1;
  min-width: 290px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--card-bg);
  cursor: pointer;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(59, 130, 246, 0.2),
    transparent);
  transition: left 0.8s ease;
  z-index: 2;
}

.news-card:hover::before {
  left: 100%;
}

.news-card:hover {
  transform: translateY(-15px) scale(1.05) rotateZ(1deg);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-accent);
}

.news-card:nth-child(odd):hover {
  transform: translateY(-15px) scale(1.05) rotateZ(-1deg);
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0)
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 80%);
  z-index: 0;
}

.news-card__card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /*     background: rgba(255,0,0,.5); */
}

.news-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: -1;
}

.news-card__text-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  transition: background-color 1.5s ease;
}

.news-card__title {
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  position: relative;
  display: block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.news-card:hover .news-card__title {
  transform: translateX(10px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-card__post-date {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.news-card__details-wrapper {
  max-height: 0;
  opacity: 0;
  transition: max-height 1.5s ease, opacity 1s ease;
}

.news-card__excerpt {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.95rem;
}


#home-bg {
  clip-path: url(#cache);
}

#red {
  fill: none;
  opacity: 0.15;
  stroke: var(--primary-accent);
  stroke-width: 12;
  stroke-miterlimit: 10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#blue {
  fill: none;
  opacity: 0.15;
  stroke: var(--secondary-accent);
  stroke-width: 12;
  stroke-miterlimit: 10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#light-blue {
  fill: none;
  opacity: 0.12;
  stroke: var(--primary-accent);
  stroke-width: 6;
  stroke-miterlimit: 10;
  stroke-dasharray: 200;
  stroke-dashoffset: 800;
  animation: draw 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#home-anim {
  position: absolute;
  z-index: 0;
  height: 100%;
}

/* my works end  */

/* testimonial  */
#testimonial {
  position: relative;
  z-index: 1;
  /* background-color: rgb(1, 139, 139); */
}
a:link,
a:active,
a:visited,
a:hover {
  color: #3f51b5;
}

.outerdiv {
  width: 100%;
  /* min-height: 100vh; */
  background: #edf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.innerdiv {
  margin: 1rem;
  display: grid;
  grid-gap: 1.5rem;
  grid-template-rows: repeat(2, 22rem);
  grid-template-columns: repeat(4, 17rem);
  grid-template-rows: min-content;
}

.eachdiv {
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 5px 5px 20px #6d6b6b6b;
  color: white;
}

.div1 {
  background: var(--primary-marigold);
  grid-column: 1/3;
  grid-row: 1/2;
  background-image: url("./img/bg-pattern-quotation.svg");
  background-repeat: no-repeat;
  background-position-x: 25rem;
}

.div2 {
  background: var(--primary-denim);
  grid-column: 3/4;
  grid-row: 1/2;
}

.div3 {
  background: var(--primary-white);
  grid-column: 4/5;
  grid-row: 1/3;
  color: black;
}

.div4 {
  background: white;
  grid-column: 1/2;
  grid-row: 2/3;
  color: black;
}

.div5 {
  background: var(--primary-steel);
  grid-column: 2/4;
  grid-row: 2/3;
}

.userdetails {
  display: flex;
}

.imgbox {
  margin-right: 1rem;
}

.imgbox img {
  border-radius: 50%;
  width: 2rem;
  border: 2px solid #cec5c5;
}

.detbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detbox p {
  margin: 0;
}

.detbox .name {
  color: hsl(0, 0%, 81%);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  font-weight: 600;
}

.detbox .name.dark {
  color: var(--primary-steel);
}

.detbox .designation {
  color: var(--primary-white);
  opacity: 50%;
  font-size: 0.8rem;
}

.detbox .designation.dark {
  color: var(--primary-steel);
}

.review h4 {
  font-size: 1.4rem;
  color: var(--primary-whitel);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.review.dark h4 {
  color: #4b5258;
}

.review p {
  font-size: 0.95rem;
  color: var(--primary-whitel);
  font-weight: 500;
  opacity: 50%;
  line-height: 1.5;
}

.review.dark p {
  color: #0e0e0e;
}

.attribution {
  font-size: 1rem;
  line-height: 1.5;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  text-align: right;
}

.attribution a {
  text-decoration: none;
}

/* testimonial end  */

/* skills  */
#skills {
  padding: 0rem 4rem;
  display: grid;
  height: 100%;
  align-items: center;
}
/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}
/* skills end  */

/* my blog  */
#blogs {
  /* padding: 0rem 4rem; */
  position: relative;
  min-height: 100vh;
  contain: content;
  /* display: grid;
  height: 100%;
  align-items: center; */
}
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* max-width: 1200px; */
  margin-block: 2rem;
  gap: 2rem;

  /* display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px; */
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.card {
  display: flex;
  flex-direction: column;
  width: clamp(20rem, calc(20rem + 2vw), 22rem);
  overflow: hidden;
  box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: 1em;
  background: #ece9e6;
  z-index: 1;
  background: linear-gradient(to right, #ffffff, #ece9e6);
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.75rem;
}

.tag + .tag {
  margin-left: 0.5em;
}

.tag-blue {
  background: #56ccf2;
  background: linear-gradient(to bottom, #2f80ed, #56ccf2);
  color: #fafafa;
}

.tag-brown {
  background: #d1913c;
  background: linear-gradient(to bottom, #ffd194, #d1913c);
  color: #fafafa;
}

.tag-red {
  background: #cb2d3e;
  background: linear-gradient(to bottom, #ef473a, #cb2d3e);
  color: #fafafa;
}

.card__body h4 {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.card__footer {
  display: flex;
  padding: 1rem;
  margin-top: auto;
}

.user {
  display: flex;
  gap: 0.5rem;
}

.user__image {
  border-radius: 50%;
}

.user__info > small {
  color: #666;
}

/* my blog end  */

/** social media */
#social-network {
  position: relative;
  min-height: 100vh;
}
.social-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 2em;
  z-index: 1;
  position: relative;
  justify-items: center;
}
.sc-1 {
  background-color: var(--primary-denim);
  color: var(--primary-white) !important;
}
.sc-2 {
  background-color: var(--primary-marigold);
  color: var(--primary-steel) !important;
}
.sc-3 {
  background-color: var(--primary-whitel);
  color: var(--primary-denim) !important;
}
.social-card {
  height: 450px;
  width: 350px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 1em 2em;
  border: 2px solid var(--border-color);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background: var(--card-bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(45deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent);
  transform: rotate(0deg);
  transition: transform 0.6s ease;
}

.social-card:hover::after {
  transform: rotate(180deg);
}

.social-card:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-accent);
}

.social-icon {
  width: 48px;
  margin: 2em auto;
  transition: all 0.4s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.2) rotateY(360deg);
}
.social-card .dark {
  color: var(--primary-whitel);
}

.social-icon.dark img {
  filter: brightness(0) invert(1);
}

.social-icon {
  width: 48px;
  margin: 2em auto;
}
.social-title {
  font-size: 30px;
  font-weight: 800;
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.social-card:hover .social-title {
  transform: scale(1.1);
  color: var(--primary-accent);
}
.social-desc {
  line-height: 1.6;
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted-text);
  transition: all 0.3s ease;
}

.social-detail.dark .social-desc {
  color: var(--light-text);
}

.social-card:hover .social-desc {
  color: var(--light-text);
  transform: translateY(-5px);
}
.social-id {
  margin-bottom: 1rem;
  color: var(--muted-text);
  font-size: 18px;
  font-weight: 600;
}

.social-id.dark {
  color: var(--light-text) !important;
}

/* end of social media */

/* footer  */

footer {
  display: flex;
  min-height: 100vh;
  height: 100%;
  position: relative;
  background: var(--darker-bg);
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
  border-radius: 50%;
  top: 15%;
  left: 5%;
  opacity: 0.08;
  animation: float-up-down 10s ease-in-out infinite;
  filter: blur(70px);
  z-index: 0;
}

footer::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 20%;
  right: 10%;
  opacity: 0.08;
  animation: float-up-down 12s ease-in-out infinite reverse;
  filter: blur(80px);
  z-index: 0;
}

.background {
  display: flex;
  /* min-height: 100vh; */
  width: 90%;
  max-width: 1400px;
  justify-content: center;
}

/* .container {
  flex: 0 1 700px;
  margin: auto;
  padding: 10px;
} */

.screen {
  position: relative;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid var(--border-color);
  /* width: 100%; */
  width: 1200px;
  max-width: min(1200px, 95vw);
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.screen:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  /* left: 20px;
  right: 20px; */
  bottom: 0;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.screen-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--card-bg);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 2px solid var(--border-color);
}

.screen-header-left {
  margin-right: auto;
}

.screen-header-button {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  border-radius: 8px;
  background: white;
}

.screen-header-button.close {
  background: #ed1c6f;
}

.screen-header-button.maximize {
  background: #e8e925;
}

.screen-header-button.minimize {
  background: #74c54f;
}

.screen-header-right {
  display: flex;
}

.screen-header-ellipsis {
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 8px;
  background: #999;
}

.screen-body {
  display: flex;
}

.screen-body-item {
  flex: 1;
  padding: 60px;
}

.screen-body-item.left {
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 3.5em;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--light-text);
  font-weight: 700;
}

.app-title:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 2px;
}

.app-contact {
  margin-top: auto;
  font-size: 0.8em;
  color: var(--muted-text);
}

.app-form-group {
  margin-bottom: 25px;
}

.app-form-group.message {
  margin-top: 50px;
}

.app-form-group.buttons {
  margin-bottom: 0;
  text-align: right;
}

.app-form-control {
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--light-text);
  font-size: 16px;
  /* text-transform: uppercase; */
  outline: none;
  transition: border-color 0.3s ease;
}

.app-form-control::placeholder {
  color: var(--muted-text);
}

.app-form-control:focus {
  border-bottom-color: var(--primary-accent);
}

.app-form-button {
  border: 2px solid var(--primary-accent);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background: var(--primary-accent);
  padding: 16px 32px;
  margin: 10px 10px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-form-button:hover {
  transform: scale(1.05);
  background: var(--secondary-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--secondary-accent);
}

.credits {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  color: #ffa4bd;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: normal;
}

.credits-link {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.dribbble {
  width: 20px;
  height: 20px;
  margin: 0 5px;
}

.context {
  padding: 4em 0em;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
  align-items: center;
  z-index: 1;
  align-self: center;
}

.context h1 {
  text-align: center;
  color: #fff;
  font-size: 50px;
}

.area {
  position: absolute;
  background: transparent;
  /* background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8); */
  width: 100%;
  height: 100%;
}

/* footer end  */

/* animations element */
.cube {
  position: absolute;
  top: 80vh;
  left: 45vw;
  width: 10px;
  height: 10px;
  border: solid 2px var(--primary-accent);
  transform-origin: top left;
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
  -webkit-animation: cube 12s ease-in forwards infinite;
  animation: cube 12s ease-in forwards infinite;
}

.cube:nth-child(2n) {
  border-color: var(--secondary-accent);
}

.cube:nth-child(3n) {
  border-color: var(--primary-accent);
}

.cube:nth-child(4n) {
  border-color: var(--secondary-accent);
}

.cube:nth-child(2) {
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  left: 25vw;
  top: 40vh;
}

.cube:nth-child(3) {
  -webkit-animation-delay: 4s;
  animation-delay: 4s;
  left: 75vw;
  top: 50vh;
}

.cube:nth-child(4) {
  -webkit-animation-delay: 6s;
  animation-delay: 6s;
  left: 90vw;
  top: 10vh;
}

.cube:nth-child(5) {
  -webkit-animation-delay: 8s;
  animation-delay: 8s;
  left: 10vw;
  top: 85vh;
}

.cube:nth-child(6) {
  -webkit-animation-delay: 10s;
  animation-delay: 10s;
  left: 50vw;
  top: 10vh;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: var(--primary-accent);
  animation: animate 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
  opacity: 0.15;
}

.circles li:nth-child(even) {
  background: var(--secondary-accent);
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

.box {
  position: absolute;
  top: 5%;
  transform: rotate(80deg);
  z-index: 0;
}

.right {
  right: -10%;
}

.wave {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.1;
  position: absolute;
  top: 3%;
  left: 10%;
  background: var(--primary-accent);
  width: 375px;
  height: 325px;
  /* margin-left: -150px;
  margin-top: -250px; */
  transform-origin: 50% 48%;
  border-radius: 43%;
  animation: drift 7000ms infinite linear;
}

.wave.-three {
  animation: drift 7500ms infinite linear;
  position: fixed;
  background: var(--secondary-accent);
  opacity: 0.1;
}

.wave.-two {
  animation: drift 3000ms infinite linear;
  opacity: 0.08;
  background: var(--primary-accent);
  position: fixed;
}

.box:after {
  content: "";
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  transform: translate3d(0, 0, 0);
}

.icon {
  width: 100px;
  height: 100px;
  margin: 0 5px;
}

.icon:nth-child(2) img {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

.icon:nth-child(3) img {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.icon:nth-child(4) img {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.icon img {
  -webkit-animation: anim 2s ease infinite;
  animation: anim 2s ease infinite;
  -webkit-transform: scale(0, 0) rotateZ(180deg);
  transform: scale(0, 0) rotateZ(180deg);
}

.typing-demo {
  width: 18ch;
  animation: typing 2s steps(22), blink 0.5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--primary-accent);
  font-family: monospace;
  font-size: 0.8em;
  color: var(--primary-accent);
  font-weight: 700;
}

/* animations element end  */

/* animations  */
@-webkit-keyframes cube {
  from {
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }

  to {
    transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}

@keyframes cube {
  from {
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }

  to {
    transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(0.8);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes show {
  0% {
    opacity: 0.15;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.15;
  }
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }

  from {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0;
  }

  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }

  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0;
  }
}

@keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0;
  }

  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }

  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* New Ultrathink Animations */
@keyframes neon-glow {
  0%, 100% {
    text-shadow:
      0 0 10px var(--neon-blue),
      0 0 20px var(--neon-blue),
      0 0 30px var(--neon-blue),
      0 0 40px var(--neon-purple);
  }
  50% {
    text-shadow:
      0 0 20px var(--neon-pink),
      0 0 30px var(--neon-pink),
      0 0 40px var(--neon-pink),
      0 0 50px var(--hot-pink);
  }
}

@keyframes float-up-down {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes border-glow {
  0%, 100% {
    box-shadow:
      0 0 5px var(--neon-blue),
      0 0 10px var(--neon-blue),
      0 0 15px var(--neon-blue),
      0 0 20px var(--neon-blue);
  }
  50% {
    box-shadow:
      0 0 10px var(--neon-pink),
      0 0 20px var(--neon-pink),
      0 0 30px var(--neon-pink),
      0 0 40px var(--hot-pink);
  }
}

@keyframes glitch {
  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);
  }
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes rotate-gradient {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(360deg);
    opacity: 0;
  }
}

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

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

@keyframes scroll-wheel {
  0% {
    top: 8px;
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    top: 28px;
    opacity: 0;
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* Text Rotation Animations */
@keyframes textExit {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) rotateX(-90deg);
  }
}

@keyframes textEnter {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Reveal Animation for Scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  filter: blur(5px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered reveal for children */
.reveal-visible:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-visible:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-visible:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-visible:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal-visible:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal-visible:nth-child(6) {
  transition-delay: 0.6s;
}

/* Rotating text style */
.rotating-text {
  display: inline-block;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Tech Tag Pop Animation */
@keyframes techTagPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  70% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Pulse Opacity for Prompt Symbol */
@keyframes pulse-opacity {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Blinking Cursor */
@keyframes blink-cursor {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Scale Pulse */
@keyframes scale-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Glow Pulse */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(59, 130, 246, 0.3),
      0 0 20px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow:
      0 0 20px rgba(59, 130, 246, 0.6),
      0 0 40px rgba(59, 130, 246, 0.4),
      0 0 60px rgba(59, 130, 246, 0.2);
  }
}

/* Slide in from left */
@keyframes slide-in-from-left {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slide-in-from-right {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Flip in */
@keyframes flip-in {
  0% {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: perspective(400px) rotateY(0);
    opacity: 1;
  }
}

/* Zoom in */
@keyframes zoom-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* animations end  */

/* Preview Modal - Full Viewport Split Screen */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: var(--darker-bg);
  animation: fadeIn 0.3s ease;
}

.preview-modal.active {
  display: block;
}

/* Close Button */
.preview-modal__close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.preview-modal__close:hover {
  background: var(--primary-accent);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.8);
}

/* Navigation Arrows */
.preview-modal__nav {
  position: absolute;
  top: 30px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  color: var(--muted-text);
}

.preview-modal__nav svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.preview-modal__nav--prev {
  left: 30px;
}

.preview-modal__nav--next {
  left: 90px;
}

.preview-modal__nav-separator {
  position: absolute;
  top: 30px;
  left: 70px;
  color: var(--muted-text);
  font-size: 1.5rem;
  line-height: 40px;
  user-select: none;
}

.preview-modal__nav:hover {
  transform: scale(1.2);
  color: var(--primary-accent);
}

.preview-modal__nav:active {
  transform: scale(0.9);
}

/* Split Screen Container */
.preview-modal__container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Left Side - Preview Image (70%) */
.preview-modal__preview {
  width: 70%;
  height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f5;
  scroll-behavior: smooth;
}

/* Custom scrollbar for preview - subtle and minimal */
.preview-modal__preview::-webkit-scrollbar {
  width: 4px;
}

.preview-modal__preview::-webkit-scrollbar-track {
  background: transparent;
}

.preview-modal__preview::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.preview-modal__preview::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

.preview-modal__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: fadeIn 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.preview-modal__image-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid var(--primary-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 15px;
}

.preview-modal__counter {
  color: var(--light-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.preview-modal__counter span {
  color: var(--primary-accent);
}

.preview-modal__scroll-hint {
  color: var(--muted-text);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 2px solid var(--border-color);
  padding-left: 15px;
  animation: bounce-hint 2s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

@keyframes bounce-hint {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Right Side - Project Details (30%) */
.preview-modal__details {
  width: 30%;
  height: 100vh;
  background: var(--card-bg);
  border-left: 3px solid var(--primary-accent);
  overflow-y: auto;
  position: relative;
  animation: slide-in-from-right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-modal__details::-webkit-scrollbar {
  width: 8px;
}

.preview-modal__details::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

.preview-modal__details::-webkit-scrollbar-thumb {
  background: var(--primary-accent);
  border-radius: 4px;
}

.preview-modal__details-content {
  padding: 100px 40px 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Project Info */
.preview-modal__info {
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.preview-modal__category {
  display: inline-block;
  background: var(--primary-accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.preview-modal__title {
  color: var(--light-text);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.preview-modal__description {
  color: var(--muted-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* Tech Stack */
.preview-modal__tech {
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.preview-modal__tech-title {
  color: var(--light-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.preview-modal__tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  background: var(--darker-bg);
  color: var(--primary-accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
  color: white;
  transform: translateY(-2px);
}

/* Features */
.preview-modal__features {
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.preview-modal__features-title {
  color: var(--light-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.preview-modal__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-modal__features-list li {
  color: var(--muted-text);
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 30px;
  transition: all 0.3s ease;
}

.preview-modal__features-list li:hover {
  color: var(--light-text);
  padding-left: 40px;
}

.preview-modal__features-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Actions */
.preview-modal__actions {
  animation: fadeInUp 0.6s ease 0.5s backwards;
  margin-top: 20px;
}

.preview-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-accent);
  cursor: pointer;
}

.preview-modal__btn--primary {
  background: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.preview-modal__btn--primary svg {
  color: #ffffff;
}

.preview-modal__btn--primary svg path,
.preview-modal__btn--primary svg polyline,
.preview-modal__btn--primary svg line {
  stroke: #ffffff !important;
}

.preview-modal__btn--primary:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.preview-modal__btn svg {
  transition: transform 0.3s ease;
}

.preview-modal__btn:hover svg {
  transform: translateX(5px);
}

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

/* resposive  */

/* Modal Responsive */
@media only screen and (max-width: 1024px) {
  .preview-modal__container {
    flex-direction: column;
  }

  .preview-modal__preview {
    width: 100%;
    height: 50vh;
  }

  .preview-modal__details {
    width: 100%;
    height: 50vh;
    border-left: none;
    border-top: 3px solid var(--primary-accent);
  }

  .preview-modal__details-content {
    padding: 80px 20px 30px 20px;
    gap: 25px;
  }

  .preview-modal__title {
    font-size: 2rem;
  }

  .preview-modal__nav {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .preview-modal__nav--prev {
    left: 20px;
  }

  .preview-modal__nav--next {
    left: 70px;
  }

  .preview-modal__nav-separator {
    left: 55px;
    font-size: 1.2rem;
  }

  .preview-modal__close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .preview-modal__image-overlay {
    padding: 10px 20px;
  }

  .preview-modal__scroll-hint {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  .preview-modal__details-content {
    padding: 70px 15px 20px 15px;
    gap: 20px;
  }

  .preview-modal__title {
    font-size: 1.5rem;
  }

  .preview-modal__description {
    font-size: 0.95rem;
  }

  .preview-modal__nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .preview-modal__nav--prev {
    left: 15px;
  }

  .preview-modal__nav--next {
    left: 60px;
  }

  .preview-modal__nav-separator {
    left: 47px;
    font-size: 1rem;
  }

  .preview-modal__close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }

}

/* Tablets and small screens */
@media only screen and (max-width: 768px) {
  .hero-content {
    margin-left: 0;
  }

  .scroll-indicator {
    bottom: 3rem;
  }

  .mouse {
    width: 25px;
    height: 42px;
  }

  .scroll-text {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 400px) {
  .hero-container {
    padding: 2rem 1.5rem;
  }

  .hero-content {
    margin-left: 0;
  }

  .greeting {
    font-size: 1.2rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .code-line {
    gap: 0.5rem;
  }

  .line-number {
    font-size: 1rem;
  }

  .code-text {
    font-size: 0.7rem;
  }

  .code-bracket {
    font-size: 1.5rem;
  }

  .rotating-role {
    font-size: 1.5rem;
  }

  .role-container {
    min-height: 50px;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-cta {
    font-size: 0.9rem;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .mouse {
    width: 22px;
    height: 38px;
  }

  .scroll-text {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }

  .global-timeline {
    left: 1rem;
  }

  .timeline-marker {
    display: none;
  }

  .intro-content {
    font-size: 0.4em;
  }
  /* .header-logo-img {
    display: none;
  } */
  .header {
    display: flex;
    justify-content: space-between;
  }
  .header-menu-icon {
    display: block;
  }
  nav {
    display: none;
  }
  .section-container {
    padding: 0;
  }
  .hero__title {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 0 0.7em;
  }
  .hero__title .intro-content {
    padding: 1em 0em 0em 0em;
  }
  .typing-demo {
    /* font-size: 0.9em; */
    font-size: 1em;
  }
  .profile-img {
    /* justify-content: center; */
    /* position: absolute;
    bottom: 5%;
    right: 5%; */
    /* position: relative; */
  }
  /* .img-border {
    width: 80%;
    left: -6%;
    bottom: -8%;
  } */
  .intro-img {
    width: 240px;
  }
  header {
    padding: 0 1em;
  }

  .about-content {
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto;
  }
  .about-title {
    font-size: 3em;
  }
  .about-description {
    font-size: 1.2em;
  }
  #about {
    padding: 0 2em;
  }

  .section-title {
    font-size: 2em;
  }

  .news-card {
    margin: 1em;
    min-width: fit-content;
  }
  .innerdiv {
    display: flex;
    flex-direction: column;
    transform: scale(1);
    margin: 2rem;
    margin-bottom: 5rem;
  }
  .card {
    margin: 1.5em;
  }
  .box {
    z-index: -1;
  }
  .container {
    gap: 0;
  }
  .social-container {
    grid-template-columns: 1fr;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 1em;
    width: fit-content;
  }

  .screen-body {
    padding: 20px;
  }

  .background {
    width: 90%;
  }

  .screen-body-item {
    padding: 20px;
  }
  .app-title {
    font-size: 2.5em;
  }
  .app-contact {
    font-size: 0.8em;
  }
  .app-form-control {
    font-size: 14px;
    padding: 12px 0;
  }
  .app-form-button {
    font-size: 14px;
    padding: 12px 24px;
    margin: 8px;
  }

  .screen {
    max-width: min(1200px, 98vw);
  }
  .screen-body {
    flex-direction: column;
  }

  .screen-body-item.left {
    margin-bottom: 30px;
  }

  .app-title {
    flex-direction: row;
  }

  .app-title span {
    margin-right: 12px;
  }

  .app-title:after {
    display: none;
  }
  .cont-container {
    width: 90%;
    max-width: 1200px;
  }
}
@media only screen and (min-width: 400px) and (max-width: 600px) {
  .hero-container {
    padding: 2rem 2rem;
  }

  .hero-content {
    margin-left: 4rem;
  }

  .greeting {
    font-size: 1.5rem;
  }

  .name {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .code-bracket {
    font-size: 2rem;
  }

  .rotating-role {
    font-size: 2rem;
  }

  .role-container {
    min-height: 60px;
  }

  .tech-tag {
    font-size: 0.85rem;
  }

  .hero-cta {
    font-size: 1rem;
  }

  .global-timeline {
    left: 2rem;
  }

  /* .header-logo-img {
    display: none;
  } */
  .header {
    display: flex;
    justify-content: space-between;
  }
  .header-menu-icon {
    display: block;
  }
  nav {
    display: none;
  }
  .section-container {
    padding: 0;
  }
  .intro-content {
    font-size: 0.5em;
  }
  .profile-img {
    /* position: absolute;
    bottom: 5%;
    right: 5%; */
    /* justify-content: center; */
    /* position: relative; */
  }
  /* .img-border {
    width: 60%;
    left: 4%;
    bottom: -12%;
    height: 90%;
  } */
  .intro-img {
    width: 240px;
  }
  header {
    padding: 0 1em;
  }

  .about-content {
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto;
  }
  .about-title {
    font-size: 3em;
  }

  .about-description {
    font-size: 1.2em;
  }
  #about {
    padding: 0 2em;
  }
  .news-card {
    min-width: fit-content;
    margin: 1.5em;
  }
  .section-title {
    font-size: 3em;
  }
  .innerdiv {
    display: flex;
    flex-direction: column;
    transform: scale(1);
    margin: 2rem;
    margin-bottom: 5rem;
  }
  .social-container {
    grid-template-columns: 1fr;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 2em;
    width: fit-content;
  }

  .screen-body {
    padding: 20px;
  }

  .background {
    width: 90%;
  }

  .screen-body-item {
    padding: 20px;
  }
  .app-title {
    font-size: 2.5em;
  }
  .app-contact {
    font-size: 0.8em;
  }
  .app-form-control {
    font-size: 14px;
    padding: 12px 0;
  }
  .app-form-button {
    font-size: 14px;
    padding: 12px 24px;
    margin: 8px;
  }

  .screen {
    max-width: min(1200px, 98vw);
  }
  .screen-body {
    flex-direction: column;
  }

  .screen-body-item.left {
    margin-bottom: 30px;
  }

  .app-title {
    flex-direction: row;
  }

  .app-title span {
    margin-right: 12px;
  }

  .app-title:after {
    display: none;
  }
  .cont-container {
    width: 90%;
    max-width: 1200px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .hero-container {
    padding: 2rem 3rem;
  }

  .hero-content {
    margin-left: 6rem;
  }

  .greeting {
    font-size: 1.8rem;
  }

  .name {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 3rem;
  }

  .code-bracket {
    font-size: 2.2rem;
  }

  .rotating-role {
    font-size: 2.2rem;
  }

  .role-container {
    min-height: 70px;
  }

  .global-timeline {
    left: 3rem;
  }

  .timeline-marker {
    display: block;
  }

  /* .header-logo-img {
    display: none;
  } */
  .section-container {
    padding: 1rem 1rem;
  }
  .header {
    display: flex;
    justify-content: space-between;
  }
  .header-menu-icon {
    display: block;
  }
  nav {
    display: none;
  }
  .intro-content {
    font-size: 0.5em;
  }
  .about-title {
    font-size: 5em;
  }
  .about-description {
    font-size: 1.3em;
  }
  .innerdiv {
    display: flex;
    flex-direction: column;
    transform: scale(1);
    margin: 2rem;
    margin-bottom: 5rem;
  }

  .social-container {
    grid-template-columns: 1fr;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 2em;
    width: fit-content;
  }

  .app-title {
    font-size: 2em;
  }
  .app-contact {
    font-size: 0.6em;
  }
  .app-form-button {
    padding: 10px;
    margin: 5px;
    font-size: 0.7em;
  }
  .app-form {
    min-width: 180px;
  }
  .intro-img {
    width: 300px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  /* .header-logo-img {
    display: none;
  } */
  .intro-img {
    width: 300px;
  }
  .section-container {
    padding: 1rem 1rem;
  }
  .header {
    display: flex;
    justify-content: space-between;
  }
  .header-menu-icon {
    display: block;
  }
  nav {
    display: none;
  }
  .typing-demo {
    font-size: 1.2em;
    /* font-size: 0.9em; */
  }
  .intro-content {
    font-size: 0.5em;
  }
  .innerdiv {
    margin: 1rem;
    display: grid;
    grid-gap: 1.5rem;
    grid-template-rows: repeat(2, 22rem);
    grid-template-columns: repeat(3, 18rem);
    grid-template-rows: min-content;
  }
  .innerdiv {
    transform: scale(0.75);
  }
  .div2 {
    grid-column: 3/4;
  }
  .div3 {
    grid-row: 3/4;
    grid-column: 1/4;
  }
  .social-container {
    grid-template-columns: 1fr;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 2em;
    width: fit-content;
    height: fit-content;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .section-container {
    padding: 2rem 4rem;
  }
  .header-logo-img {
    display: block;
  }
  .header-menu-icon {
    display: none;
  }
  /* .img-border {
    left: 8%;
  } */
  nav {
    display: block;
  }
  .typing-demo {
    font-size: 1.5em;
    /* font-size: 0.9em; */
  }
  .intro-content {
    font-size: 0.5em;
  }
  .about-title {
    font-size: 6em;
  }
  .about-description {
    font-size: 1.6em;
  }
  .innerdiv {
    transform: scale(0.9);
  }

  .div2 {
    grid-column: 3/4;
  }
  .div3 {
    grid-row: 3/4;
    grid-column: 1/4;
  }
  .social-container {
    grid-template-columns: 1fr 1fr;
  }
  .sc-3 {
    grid-column: 1/3;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 2em;
    width: fit-content;
    height: fit-content;
  }

  .app-form-button {
    padding: 10px;
    margin: 5px;
    font-size: 0.8em;
  }
  .app-title {
    font-size: 3em;
  }
  .app-form {
    min-width: 240px;
  }
  .sidebar.open,
  .sidebar.close {
    width: 0%;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .header-links {
    font-size: 1.3em;
  }
  /* .img-border {
    width: 50%;
    left: 15%;
  } */
  .intro-content {
    font-size: 0.7em;
  }
  .typing-demo {
    /* font-size: 1em; */
    font-size: 1.5em;
  }
  .about-description {
    font-size: 1.6em;
    /* font-size: 2.3em; */
  }
  .about-title {
    font-size: 9em;
  }
  .section-title {
    font-size: 6em;
  }
  .innerdiv {
    margin: 1rem;
    display: grid;
    grid-gap: 1.5rem;
    grid-template-rows: repeat(2, 22rem);
    grid-template-columns: repeat(4, 17rem);
    grid-template-rows: min-content;
  }
  .div2 {
    grid-column: 3/4;
  }
  .div3 {
    grid-row: 1/3;
    grid-column: 4/5;
  }
  .innerdiv {
    transform: scale(1.1);
  }
  .social-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .sc-3 {
    grid-column: auto;
  }
  .social-card {
    padding: 1em 1.5em;
    margin: 2em;
    height: 450px;
    width: 350px;
  }
}
@media (min-width: 900px) {
  .news-card {
    height: 20rem;
  }
}
@media (min-width: 900px) {
  .news-card:hover .news-card__details-wrapper {
    max-height: 20rem;
    opacity: 1;
  }

  .news-card:hover .news-card__text-wrapper {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 70%, transparent 100%);
  }

  .news-card:hover .news-card__title {
    color: #ffd700;
  }

  .news-card:hover .news-card__image {
    transform: scale(1.2);
    z-index: -1;
  }
}

@media only screen and (max-width: 600px) {
  .div1 {
    background-position-x: 10rem;
  }

  .attribution {
    position: relative;
  }

  .screen {
    max-width: 85vw;
    border-radius: 10px;
  }

  .screen-body-item {
    padding: 15px !important;
  }

  .app-title {
    font-size: 2em !important;
  }

  .app-form-control {
    font-size: 14px !important;
  }

  .app-form-button {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}

@media screen and (max-width: 520px) {
}
@media screen and (max-width: 600px) {
  /* .screen-body {
    padding: 40px;
  }

  .screen-body-item {
    padding: 0;
  } */
}
/* responsive end  */

/* Background Text Effect */
.background-text {
  position: absolute;
  font-size: 15rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
  letter-spacing: -0.05em;
}

.background-text--hero {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 20s ease-in-out infinite;
}

.background-text--about {
  top: 20%;
  right: -10%;
  transform: rotate(-5deg);
  animation: slideRight 15s ease-in-out infinite;
}

.background-text--works {
  top: 30%;
  left: -5%;
  transform: rotate(5deg);
  animation: slideLeft 15s ease-in-out infinite;
}

.background-text--contact {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  opacity: 0.7;
}

/* Multiple background text lines */
.background-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.background-text-line {
  position: absolute;
  font-size: 10rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.08);
  text-stroke: 1px rgba(59, 130, 246, 0.08);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.05em;
  animation: scrollText 30s linear infinite;
}

.background-text-line:nth-child(1) {
  top: 10%;
  animation-duration: 25s;
}

.background-text-line:nth-child(2) {
  top: 35%;
  animation-duration: 35s;
  animation-direction: reverse;
  -webkit-text-stroke: 1px rgba(99, 102, 241, 0.07);
  text-stroke: 1px rgba(99, 102, 241, 0.07);
}

.background-text-line:nth-child(3) {
  top: 60%;
  animation-duration: 40s;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.06);
  text-stroke: 1px rgba(59, 130, 246, 0.06);
}

.background-text-line:nth-child(4) {
  top: 85%;
  animation-duration: 30s;
  animation-direction: reverse;
  -webkit-text-stroke: 1px rgba(99, 102, 241, 0.08);
  text-stroke: 1px rgba(99, 102, 241, 0.08);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.05);
  }
}

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0) rotate(-5deg);
  }
  50% {
    transform: translateX(50px) rotate(-5deg);
  }
}

@keyframes slideLeft {
  0%, 100% {
    transform: translateX(0) rotate(5deg);
  }
  50% {
    transform: translateX(-50px) rotate(5deg);
  }
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .background-text {
    font-size: 10rem;
  }
  .background-text-line {
    font-size: 7rem;
  }
}

@media (max-width: 768px) {
  .background-text {
    font-size: 6rem;
  }
  .background-text-line {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .background-text {
    font-size: 4rem;
  }
  .background-text-line {
    font-size: 3.5rem;
  }
}
