/* Floating Resume Button */
.floating-resume-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background-color: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 32px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.13);
  text-decoration: none;
  border: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.floating-resume-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 10px 24px rgba(66, 153, 225, 0.18);
}
:root {
  --primary: #2d3748;
  --secondary: #4a5568;
  --accent: #4299e1;
  --accent-dark: #2b6cb0;
  --light: #f7fafc;
  --dark: #1a202c;
  --success: #48bb78;
  --code-bg: #edf2f7;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Header Styles */
header {
  background-color: rgba(45, 55, 72, 0.95);
  color: white;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

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

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1001;
  transition: all 0.3s;
}

.mobile-nav-toggle:hover {
  color: var(--accent);
}

.mobile-nav-toggle i {
  display: block;
}

.mobile-nav-toggle .fa-times {
  display: none;
}

.mobile-nav-toggle.active .fa-bars {
  display: none;
}

.mobile-nav-toggle.active .fa-times {
  display: block;
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(45, 55, 72, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
  }

  nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li a {
    display: block;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
  }

  nav ul li a:hover {
    color: var(--accent);
    padding-left: 10px;
  }

  nav ul li a::after {
    display: none;
  }

  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    pointer-events: all;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* ENHANCED HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  padding-top: 80px;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  position: relative;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.hero .btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  font-size: 1rem;
}

.hero .btn:hover {
  background-color: transparent;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.2);
}

.hero .btn-outline {
  background-color: transparent;
  border-color: white;
}

.hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* IMPROVED FLOATING CODE SNIPPETS */
.code-snippet {
  position: absolute;
  background: rgba(26, 32, 44, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 15px;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 0.7;
  border: 1px solid rgba(66, 153, 225, 0.2);
  max-width: 220px;
  pointer-events: none;
}

.code-snippet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(
    to bottom,
    rgba(26, 32, 44, 0.9),
    transparent
  );
  border-radius: 8px 8px 0 0;
}

.snippet-1 {
  top: 15%;
  left: 5%;
  animation: float 12s ease-in-out infinite;
}

.snippet-2 {
  top: 65%;
  left: 8%;
  animation: float 14s ease-in-out infinite 3s;
}

.snippet-3 {
  top: 25%;
  right: 5%;
  animation: float 10s ease-in-out infinite 2s;
}

.snippet-4 {
  top: 70%;
  right: 10%;
  animation: float 16s ease-in-out infinite 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, 10px) rotate(1deg);
  }
  50% {
    transform: translate(10px, 5px) rotate(-1deg);
  }
  75% {
    transform: translate(5px, -5px) rotate(1deg);
  }
}

/* Syntax highlighting */
.code-keyword {
  color: #4299e1;
}
.code-string {
  color: #68d391;
}
.code-function {
  color: #f6ad55;
}
.code-comment {
  color: #a0aec0;
}
.code-number {
  color: #9f7aea;
}

/* Subtle grid background */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(66, 153, 225, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(66, 153, 225, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* Rest of your CSS remains the same */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn:hover {
  opacity: 0.8;
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.2);
}

.btn-small {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 10px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-small:hover {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

/* Section Styles */
section {
  padding: 100px 0;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  text-align: center;
  color: var(--primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Experience Section */
.experience {
  background-color: var(--code-bg);
}

.companies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.company-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}

.company-card:hover {
  transform: translateY(-10px);
}

.company-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.company-logo {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Adjusted Company Card Layout */
.company-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.company-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.company-info p {
  color: var(--secondary);
  font-size: 0.95rem;
  opacity: 0.9;
}

.company-details {
  margin-top: 15px;
}

.company-details p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.company-details p i {
  margin-right: 10px;
  color: var(--accent);
  margin-top: 3px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.skill-category h3 i {
  margin-right: 10px;
  color: var(--accent);
}

.skill-category ul {
  list-style: none;
}

.skill-category ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}

.skill-category ul li i {
  margin-right: 10px;
  color: var(--success);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-logo {
  max-width: 60px;
  margin-bottom: 10px;
  display: block;
}

.project-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.project-card p {
  margin-bottom: 20px;
  color: var(--secondary);
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
  margin: 10px 0 20px;
}

.tech-stack span {
  background-color: var(--code-bg);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
  color: var(--primary);
}

.project-links {
  display: flex;
  margin-top: auto;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-content {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info p {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.contact-info p i {
  margin-right: 15px;
  color: var(--accent);
  font-size: 1.3rem;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-links a {
  color: var(--primary);
  font-size: 1.8rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

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

.contact-info p a {
  color: inherit;
  text-decoration: none;
}

.contact-info p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 30px 0;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

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

  .hero p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-image {
    order: -1;
  }

  .code-snippet {
    display: none;
  }

  nav ul li {
    margin-left: 15px;
  }

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

  .company-card {
    padding: 20px;
  }

  .company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .company-info h3 {
    font-size: 1.3rem;
  }

  .company-info p {
    font-size: 0.9rem;
  }

  .tech-stack {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tech-stack span {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

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

  .skill-category {
    padding: 20px;
  }

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

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

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

  .hero-buttons {
    gap: 10px;
  }

  .hero .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .floating-resume-btn {
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .company-card {
    padding: 15px;
  }

  .company-info h3 {
    font-size: 1.2rem;
  }

  .company-info p {
    font-size: 0.85rem;
  }

  .tech-stack span {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .project-card {
    padding: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

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

section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}