/* CSS Reset & Variables */
:root {
  --bg-primary: #08070d;
  --bg-secondary: #0f0d1a;
  --bg-tertiary: #171329;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-violet: #a855f7;
  --accent-blue: #3b82f6;
  
  --accent-cyan-glow: rgba(0, 242, 254, 0.15);
  --accent-violet-glow: rgba(168, 85, 247, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --glass-bg: rgba(15, 13, 26, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-container {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.header-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030206;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-violet);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--glass-shadow);
}

/* Floating Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(8, 7, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-cyan);
  color: #030206;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin-bottom: 5px;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: brightness(0.4) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 13, 26, 0.4) 0%, rgba(8, 7, 13, 0.95) 85%);
}

.hero-content-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-violet);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

#main-title {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, #a855f7, #00f2fe);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.badge-link {
  transition: transform 0.2s ease;
}

.badge-link:hover {
  transform: scale(1.05);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Profile Card */
.profile-card {
  padding: 3rem;
}

.profile-paragraph {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  text-align: justify;
}

.profile-paragraph:last-child {
  margin-bottom: 0;
}

.highlight-first {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Skills Tabs Section */
.skills-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-tabs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.8rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-smooth);
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
  transform: translateY(-3px);
}

.skill-card.cloud-aws:hover {
  border-color: #ff9900;
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.15);
}

.skill-card.cloud-gcp:hover {
  border-color: #4285f4;
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
}

.skill-card.cloud-azure:hover {
  border-color: #0078d4;
  box-shadow: 0 8px 25px rgba(0, 120, 212, 0.15);
}

.skill-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Timeline/Work History */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 10;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--accent-violet);
  box-shadow: 0 0 10px var(--accent-violet);
}

.timeline-content {
  padding: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.timeline-item:nth-child(even) .timeline-content:hover {
  border-color: var(--accent-violet);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
}

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

.job-meta h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0.3rem 0;
}

.job-date {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-item:nth-child(even) .job-date {
  color: var(--accent-violet);
}

.job-company {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.toggle-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

/* Collapsible Body styling */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.timeline-content.active .collapsible-content {
  max-height: 1500px; /* arbitrary high value for expansion */
}

.timeline-content.active .toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-cyan);
}

.inner-details {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.2rem;
}

.inner-details h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.inner-details ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.inner-details ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.inner-details ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-entry {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-entry strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.4rem;
}

/* Credentials Grid (Education & Certifications) */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cred-card {
  padding: 2.2rem;
}

.cred-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cred-item {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-cyan);
}

.cred-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.cred-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

.cred-issuer {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sub tabs for certifications */
.cred-sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sub-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-fast);
}

.sub-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sub-tab-btn.active {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

.sub-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.sub-tab-panel.active {
  display: block;
}

.cert-list-bullets {
  list-style: none;
}

.cert-list-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cert-list-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-violet);
  font-weight: bold;
}

/* Language and details cards */
.info-card {
  padding: 2.2rem;
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lang-item {
  width: 100%;
}

.lang-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.lang-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 3px;
}

.info-details-list {
  list-style: none;
}

.info-details-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

.info-details-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-details-list strong {
  color: var(--text-primary);
}

/* Contact Section */
.contact-section {
  padding-bottom: 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
}

.contact-method strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.contact-method a, .contact-method span {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-method a:hover {
  color: var(--accent-cyan);
}

.contact-form-card {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Footer */
.footer {
  background-color: #030206;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer p:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.footer p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  #main-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .cred-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none; /* hidden on small screen CTA, or fit in toggle menu */
  }
  
  /* Mobile menu active */
  .navbar.mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  
  .navbar.mobile-active .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .navbar.mobile-active .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar.mobile-active .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 576px) {
  #main-title {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .profile-card, .info-card, .cred-card, .contact-info, .contact-form-card {
    padding: 1.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
}
