:root {
  --bg-color: #0a192f;
  --bg-color-light: #112240;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --accent: #64ffda;
  --accent-tint: rgba(100, 255, 218, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --nav-height: 80px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Canvas */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

h1.big-heading {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

/* Utility Classes */
.section {
  padding: 100px 0;
  max-width: 1000px;
  margin: 0 auto;
  width: 90%;
}

.section-title {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 32px);
  color: var(--text-primary);
  margin-bottom: 40px;
  white-space: nowrap;
}

.section-title::after {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background-color: var(--text-secondary);
  margin-left: 20px;
  opacity: 0.2;
}

.highlight {
  color: var(--accent);
}

.center-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  color: var(--accent);
  background-color: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 20px;
}

.btn:hover {
  background-color: var(--accent-tint);
}

.big-btn {
  padding: 1.25rem 1.75rem;
  font-size: 16px;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  z-index: 100;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.logo {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
}

.nav-links li a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 150px; /* Large padding for desktop */
}

.greeting {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 20px;
}

.name {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--text-primary);
  line-height: 1.1;
}

.role {
  font-size: clamp(30px, 6vw, 60px);
  color: var(--text-secondary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.summary {
  max-width: 500px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.profile-frame {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color-light);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.profile-frame::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 4px;
  top: 20px;
  left: 20px;
  z-index: 1;
  transition: var(--transition);
}

.profile-frame:hover .profile-img-placeholder {
  transform: translate(-5px, -5px);
}

.profile-frame:hover::after {
  transform: translate(5px, 5px);
}

.initials {
  font-size: 80px;
  font-weight: bold;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--bg-color-light);
  top: 0;
  bottom: 0;
  left: 0; /* Changed for simpler left alignment design on all screens */
  margin-left: 20px;
}

.timeline-item {
  position: relative;
  background-color: inherit;
  width: 100%;
  padding-left: 50px;
  padding-bottom: 50px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 13px;
  background-color: var(--bg-color);
  border: 2px solid var(--accent);
  top: 5px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover::after {
  background-color: var(--accent);
}

.job-title {
  font-size: 22px;
  color: var(--text-primary);
}

.company {
  color: var(--accent);
}

.duration {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 10px;
  display: inline-block;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.skill-card {
  background-color: var(--bg-color-light);
  padding: 20px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-name {
  color: var(--accent);
  font-family: var(--font-mono);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--bg-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  width: 0; /* Animated later */
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Projects Section */
.projects-grid {
  display: grid;
  gap: 50px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: center;
  background-color: var(--bg-color-light);
  padding: 20px;
  border-radius: 10px;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  background-color: #233554;
  height: 200px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  border: 1px solid transparent;
  transition: var(--transition);
}

.project-card:hover .project-image {
  border-color: var(--accent);
  color: var(--accent);
}

.project-content {
  padding: 10px;
}

.project-title {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 10px;
}

.project-desc {
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 20px;
}

.project-tech {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
}

.project-links a {
  margin-right: 20px;
  font-size: 20px;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  #navbar {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    right: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--bg-color-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
  }

  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }

  #hero {
    padding: 0 50px;
  }

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

  .about-visual {
    margin-top: 50px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }
}
