:root {
  --primary-color: #6366f1;
  --secondary-color: #38bdf8;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --text-color: #e5e7eb;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --nav-bg: rgba(15, 23, 42, 0.95);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 1001;
    padding: 50px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 50px;
}

.mobile-menu li {
    margin-bottom: 25px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 50px;
  position: relative;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.1), transparent 40%);
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typing-container {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
    min-height: 1.6em;
}

.cursor {
    animation: blink 1s infinite;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
    background: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
}

.secondary-btn {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.secondary-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    gap: 5px;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.dark-bg {
  background: var(--darker-bg);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.about-text strong {
    color: var(--secondary-color);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SKILLS */
.skills-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.skill-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: #fff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.skill-card:hover .skill-tags span {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
}

/* EXPERIENCE */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 400;
}

.timeline-content p {
    color: #cbd5e1;
    font-size: 1rem;
}

/* EDUCATION & AWARDS */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.edu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.edu-card h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.edu-inst {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.edu-year {
    color: #cbd5e1;
    font-weight: 500;
}

.cert-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.awards-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.awards-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #fff;
}

.awards-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.award-item {
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #e5e7eb;
    transition: var(--transition);
    border: 1px solid transparent;
}

.award-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* CONTACT */
.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
    background: var(--card-bg);
    padding: 25px 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 0;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        margin-top: 30px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-card {
        justify-content: center;
    }
}
