/* 
   Modern Portfolio Styles
   Theme: Dark/Glassmorphism Premium
*/

:root {
  --bg-dark: #020617;
  --bg-card: rgba(30, 41, 59, 0.5);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.3);
  --secondary: #818cf8;
  --accent: #22d3ee;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: -10%;
  right: -5%;
  background: var(--primary);
}

body::after {
  bottom: -10%;
  left: -5%;
  background: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--border-radius-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Enhancements */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  margin-left: 15px;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 850px;
}

.greeting {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero .title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 650px;
}

.cta-buttons {
  margin-bottom: 40px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.social-icons a:hover {
  color: white;
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px var(--primary-glow);
}

/* Sections General */
.section {
  padding: 120px 0;
}

/* About Section */
.about-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Education Cards */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  display: flex;
  gap: 24px;
  transition: var(--transition-smooth);
}

.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.7);
}

.edu-icon {
  width: 60px;
  height: 60px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.edu-info .institution {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.edu-info .year {
  font-size: 0.9rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.skill-card:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.project-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.project-content .subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tags span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 20px;
}

.project-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-links a:hover {
  color: white;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.info-item i {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.info-item h4 {
  margin-bottom: 4px;
  color: var(--text-main);
}

.info-item p {
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.6);
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.footer-socials a {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--primary);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */

/* Tablet & Large Mobile */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .social-icons {
    justify-content: center;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1000;
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
    z-index: 1100;
  }

  .btn {
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 12px;
  }

  .name {
    font-size: 2.5rem;
  }

  .hero .title {
    font-size: 1.5rem;
  }

  .about-content {
    padding: 24px;
  }
}

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-img {
  animation: float 6s ease-in-out infinite;
}