/* =================================================================
MODERN PORTFOLIO WEBSITE - ORGANIZED CSS STYLESHEET
================================================================= */

/* =================================================================
   1. CSS RESET & BASE STYLES
   ================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================================================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================================= */

:root {
  /* Color Palette */
  --primary-color: #00d4ff;
  --secondary-color: #ff6b35;
  --accent-color: #7c3aed;

  /* Background Colors */
  --dark-bg: #0a0a0a;
  --card-bg: rgba(15, 15, 15, 0.8);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* =================================================================
   3. GLOBAL STYLES
   ================================================================= */

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =================================================================
   4. ANIMATIONS & KEYFRAMES
   ================================================================= */

@keyframes gradientShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================================
   5. ANIMATED BACKGROUND
   ================================================================= */

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 58, 237, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 212, 255, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 107, 53, 0.3) 0%,
      transparent 50%
    );
  animation: gradientShift 15s ease infinite;
}

/* =================================================================
   6. NAVIGATION STYLES
   ================================================================= */

/* Main Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  height: 60px; /* Fixed height */
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Add to all pages' CSS */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Fixed height */
}

/* Logo Styles */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Add this to all pages' CSS */
.logo a {
  text-decoration: none;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Desktop Navigation Links */
/* Add to all pages' CSS */
/* Add to all pages' CSS */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  height: 100%;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

.mobile-nav.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
}

.mobile-nav-links a {
  color: var(--text-primary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =================================================================
   7. HERO SECTION
   ================================================================= */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite alternate;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* =================================================================
   8. BUTTONS & INTERACTIVE ELEMENTS
   ================================================================= */

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-3);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 1s both;
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* See More Button */
.see-more-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.see-more-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* =================================================================
   9. SECTION LAYOUTS
   ================================================================= */

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.see-more {
  text-align: center;
  margin-top: 3rem;
}

/* =================================================================
   10. SKILLS SECTION
   ================================================================= */

.skills-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* =================================================================
   11. PROJECTS SECTION
   ================================================================= */

.projects-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 200px;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 2rem;
}

.project-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(120, 58, 237, 0.2);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--accent-color);
}

/* =================================================================
   12. CONTACT SECTION
   ================================================================= */

.contact-preview {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

.contact-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 15px;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* =================================================================
   13. CHATBOT STYLES
   ================================================================= */

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
  color: white;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  text-align: left;
  word-wrap: break-word;
}

.message.user {
  background: #00d4ff;
  color: white;
  align-self: flex-end;
  text-align: right;
  border-bottom-right-radius: 5px;
}

.message.bot {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  gap: 0.5rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0.8rem 1rem;
  color: #ffffff;
  flex: 1;
  outline: none;
}

.chatbot-input input::placeholder {
  color: #a0a0a0;
}

.chatbot-send {
  background: #00d4ff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================================================================
   14. RESPONSIVE DESIGN
   ================================================================= */

/* Tablet Styles */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 3rem;
  }

  /* General Sections */
  section {
    padding: 3rem 1rem;
  }

  /* Grid Layouts */
  .skills-preview,
  .projects-preview {
    grid-template-columns: 1fr;
  }

  /* Contact Links */
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  /* Chatbot */
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 60vh;
    right: 20px;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .hero {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  h2 {
    font-size: 2.5rem;
    padding-top: 20px;
  }

  .skill-card,
  .project-card {
    margin-bottom: 1rem;
  }

  .contact-preview {
    padding: 2rem;
  }
}
