@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap");

:root {
  --bg-color: #080808;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #ffb400;
  --accent-gradient: linear-gradient(135deg, #ffb400 0%, #ff6b00 100%);
  --chrome-silver: #ccd6f6;
  --glass-bg: rgba(255, 180, 0, 0.03);
  --glass-border: rgba(255, 180, 0, 0.15);
  --glow-color: rgba(255, 180, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

/* Custom Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
  opacity: 0.5;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #ff6b00;
}

/* Firefox */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.02);
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 50% 0%, var(--glow-color) 0%, transparent 50%),
    url("../images/tech-bg.svg");
  background-size: cover, 500px 500px;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

/* Floating Socials for Desktop */
.floating-social {
  position: fixed;
  left: 2rem;
  top: 15%; /* Higher up */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.floating-btn {
  width: 55px; /* Bigger */
  height: 55px; /* Bigger */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.floating-btn:hover {
  background: var(--accent-color);
  color: #000;
  transform: scale(1.1) translateX(5px);
  box-shadow: 0 0 20px var(--glow-color);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.floating-btn:hover svg {
  color: #000;
}

@media (max-width: 1024px) {
  .floating-social {
    display: none;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 20px var(--glow-color);
}

.content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  backdrop-filter: blur(15px);
  padding: 4rem;
  border-radius: 2.5rem;
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 8, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  background: var(--accent-gradient);
  border-radius: 50px;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.5);
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  z-index: 2;
}

/* Subtle Playground Entry */
.secret-node {
  width: 4px;
  height: 4px;
  background: transparent;
  cursor: default;
  transition: opacity 0.5s ease;
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.secret-node:hover {
  background: rgba(255, 255, 255, 0.1);
}

.secret-link {
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.secret-link:hover {
  opacity: 1;
}

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

.animate {
  animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

/* Terminal Overlay */
.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Ubuntu Mono', monospace;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.terminal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terminal-text {
  color: var(--accent-color);
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--glow-color);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2rem;
  background: var(--accent-color);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.unlock-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: width 1s, height 1s, opacity 0.5s;
  z-index: 101;
}

.unlocked .unlock-glow {
  width: 200vw;
  height: 200vw;
  opacity: 0.3;
}

/* Better content entrance */
.hero > * {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.2s ease;
}

body:not(.loaded) .hero > * {
  opacity: 0 !important;
  transform: translateY(40px) scale(0.95);
}

/* Portfolio Sections */
.section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px var(--glow-color);
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(5deg);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-pic {
    margin: 0 auto;
    width: 150px;
    height: 150px;
  }
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 180, 0, 0.05);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px var(--glow-color);
}

.card i, 
.card svg {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: block;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.card .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content; /* Prevent stretching */
}

.social-btn:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-3px);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--accent-gradient);
  color: #000;
  transform: translateY(-5px);
}

.skill-item i {
  font-size: 2rem;
}

.skill-item span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.cert-badge:hover {
  background: rgba(255, 180, 0, 0.08);
  border-color: var(--accent-color);
  transform: translateX(5px);
}

.cert-badge i {
  font-size: 1.8rem;
  color: var(--accent-color);
  min-width: 40px;
  text-align: center;
}

.cert-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.cert-info p {
  font-size: 0.7rem;
  margin-bottom: 0;
  color: var(--accent-color); /* Match theme instead of Google Blue */
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive Design System */

/* Tablet & Smaller Desktop (1200px and down) */
@media (max-width: 1200px) {
  h1 {
    font-size: 4rem;
  }
  .section {
    padding: 6rem 1.5rem;
  }
}

/* Tablets (1024px and down) */
@media (max-width: 1024px) {
  .floating-social {
    display: none;
  }
  
  /* Force single column for denser sections on portrait tablets */
  #about .grid {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* Mobile Phones (768px and down) */
@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }
  
  .content-wrapper {
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
  
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    position: relative;
    padding: 3rem 1rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 45px;
    height: 45px;
  }

  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .skill-item {
    padding: 0.8rem 0.4rem;
  }

  .skill-item i {
    font-size: 1.5rem;
  }
}

/* Small Phones (480px and down) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terminal-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
