:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

section { padding: 100px 8%; }

.container { max-width: 1200px; margin: auto; }

/* Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(2,6,23,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0%;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

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

nav a {
  font-weight: 500;
  color: var(--muted);
  transition: .3s;
}

nav a:hover { color: white; }

.cta { padding: 10px 20px; border-radius: 999px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; }

.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }

.hero h1 { font-size: 56px; line-height: 1.1; }

.hero h2 { font-size: 22px; color: var(--secondary); margin: 16px 0; }

.hero p { color: var(--muted); max-width: 540px; }

.hero-buttons { margin-top: 32px; display: flex; gap: 18px; }

.btn { padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; }

.btn-primary { background: linear-gradient(135deg,var(--primary),var(--secondary)); }

.btn-outline { border: 1px solid var(--primary); color: var(--primary); }

/* Cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }

.card {
  background: linear-gradient(145deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 26px;
  transition: .35s;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--primary); }

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(79,70,229,.12);
  color: #c7d2fe;
}

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

.section-title { font-size: 40px; margin-bottom: 18px; }

.subtitle { color: var(--muted); margin-bottom: 50px; }

/* Companies */
.company { display: flex; gap: 18px; align-items: center; }

.company-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Footer */
footer { padding: 40px 8%; border-top: 1px solid rgba(255,255,255,.06); }

.social { display: flex; gap: 24px; justify-content: center; }

.social a { font-size: 26px; color: var(--muted); transition: .3s; }

.social a:hover { color: white; }

.copy { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

@media(max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  nav ul { display: none; }
}


/* ===== Skills Cards ===== */


.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.skill-box {
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  transition: .4s ease;
}

.skill-box:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 40px rgba(79,70,229,.15);
}

.skill-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 20px;
}

.gradient-1 { border-left: 4px solid #4f46e5; }
.gradient-2 { border-left: 4px solid #06b6d4; }
.gradient-3 { border-left: 4px solid #22c55e; }
.gradient-4 { border-left: 4px solid #f59e0b; }
.gradient-5 { border-left: 4px solid #ec4899; }


/* ===== Experience Timeline ===== */

.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: .45s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  box-shadow: 0 0 0 6px rgba(79,70,229,.15);
}

.logo-dot {
  padding: 6px;
}

.logo-dot img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.timeline-card {
  background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px 26px;
  flex: 1;
  transition: .4s ease;
}

.timeline-card:hover {
  box-shadow: 0 15px 40px rgba(79,70,229,.2);
}

.timeline-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.role {
  font-size: 14px;
  color: var(--secondary);
}

.timeline-card p {
  margin: 10px 0 6px;
  color: var(--muted);
}

.timeline-card small {
  font-size: 12px;
  color: var(--muted);
}

/* Glass Header */
.glass-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background: rgba(2,6,23,.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .5px;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .4px;
  color: white;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--muted);
  transition: .3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  transition: .35s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: white;
}

/* CTA Button */
.cta-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: white !important;
  font-weight: 600;
  transition: .3s;
  box-shadow: 0 0 0 rgba(79,70,229,0);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(79,70,229,.6);
}

/* Mobile */
@media(max-width: 900px){
  .brand-name { display: none; }
}

/* Footer Section */
#contact {
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

#contact .container {
  max-width: 900px;
  margin: 0 auto;
}

#contact .section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

#contact .subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 3rem;
}

/* Grid for Cards */
#contact .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Card Styling */
#contact .card {
  flex: 1 1 200px;
  max-width: 220px;
  background: #222;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

#contact .card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Icon Colors */
#contact .card .fa-envelope { color: #e74c3c; }
#contact .card .fa-linkedin { color: #0077b5; }
#contact .card .fa-github { color: #fff; }
#contact .card .fa-xing { color: #026466; }

/* Card Hover Effect */
#contact .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Card Paragraph */
#contact .card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* Footer Copy */
#contact .footer-copy {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  #contact .grid {
    flex-direction: column;
    align-items: center;
  }
}

.projects_section {
  padding: 90px 10%;
  background: linear-gradient(135deg, #020617, #020617);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(56,189,248,0.18);
  border-color: #38bdf8;
}

.project-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: 0.4s;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-content {
  padding: 22px;
}

.project-content h3 {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5f5;
  margin-bottom: 15px;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tech-stack span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.4);
  color: #e0f2fe;
}

/* Buttons */
.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  padding: 8px 16px;
  border-radius: 25px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.project-links a.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}

.project-links a:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .projects_section {
    padding: 70px 7%;
  }
}

.portfolio_section {
  padding: 90px 10%;
  background: #020617;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.portfolio-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.45s cubic-bezier(.25,.8,.25,1);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.25,.8,.25,1);
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2,6,23,0.95), rgba(2,6,23,0.7));
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}

/* Text animation */
.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-tags,
.portfolio-btn {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.45s ease;
}

/* Hover Effects */
.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 55px rgba(56,189,248,0.35);
}

.portfolio-card:hover img {
  transform: scale(1.15);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateX(0);
}

.portfolio-card:hover .portfolio-overlay h3,
.portfolio-card:hover .portfolio-overlay p,
.portfolio-card:hover .portfolio-tags,
.portfolio-card:hover .portfolio-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for smooth cascading reveal */
.portfolio-overlay h3 { transition-delay: 0.15s; }
.portfolio-overlay p { transition-delay: 0.25s; }
.portfolio-tags { transition-delay: 0.35s; }
.portfolio-btn { transition-delay: 0.45s; }

/* Tags */
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 20px;
}

.portfolio-tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.4);
  color: #e0f2fe;
}

/* Button */
.portfolio-btn {
  width: fit-content;
  padding: 10px 22px;
  border-radius: 25px;
  background: linear-gradient(135deg,#38bdf8,#6366f1);
  color: #fff;
}

.project-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.45s cubic-bezier(.25,.8,.25,1);
}

.project-logo img {
  width: 70%;
  height: auto;
}

/* Animate logo on hover */
.portfolio-card:hover .project-logo {
  transform: scale(1);
  opacity: 1;
}

.read-more-container {
  width: 400px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  position: relative;
}

.read-more-text {
  overflow: hidden;
  max-height: 60px; /* Show only a few lines initially */
  transition: max-height 0.5s ease;
}

.read-more-toggle {
  display: none; /* Hide the checkbox */
}

.read-more-toggle:checked ~ .read-more-text {
  max-height: 500px; /* Expand to full height */
}

.read-more-label {
  display: inline-block;
  margin-top: 5px;
  color: blue;
  cursor: pointer;
  font-weight: bold;
}


/* Basic paragraph styling */
.read-more-container p {
  width: 400px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Link styling */
.read-more-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Show modal when targeted */
.modal:target {
  display: flex;
}

/* Modal box */
.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 500px;
  max-width: 90%;
  border-radius: 8px;
  position: relative;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.close:hover {
  color: red;
}

