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

/* Global variables */
:root {
  --bg-dark: #0a0e12;
  --bg-card: rgba(22, 27, 34, 0.7);
  --primary: #00f2ff;
  --primary-glow: rgba(0, 242, 255, 0.3);
  --secondary: #7000ff;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  /* Spotlight effect background - fixed to cover whole site */
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 242, 255, 0.06),
      transparent 40%), var(--bg-dark);
  background-attachment: fixed;
  /* Penguin cursor */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>🐧</text></svg>") 16 0, auto;
}

a {
  text-decoration: none !important;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>🐧</text></svg>") 16 0, pointer;
}

/* Utilities */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 14, 18, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

header .logo {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--primary-glow);
}

header ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

header ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

header ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

header ul li a:hover {
  color: var(--primary);
}

header ul li a:hover::after {
  width: 100%;
}

header a {
  text-decoration: none !important;
}

/* Hero Section */
section.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 10% 50px;
  position: relative;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-section__title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section__title span {
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-section__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-img {
  position: relative;
}

.hero-img img {
  width: 350px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.hero-img::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
  background: var(--gradient-main);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.3;
  filter: blur(30px);
}

/* Social Icons */
ul.social-icons {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons li a:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Buttons */
.btn {
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 242, 255, 0.3);
}

.btn-dark-outlined {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-dark-outlined:hover {
  background: var(--primary);
  color: var(--bg-dark) !important;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* About Section */
section.about-section {
  padding: 100px 10%;
  display: flex;
  align-items: center;
  gap: 80px;
  background: rgba(255, 255, 255, 0.02);
}

.about-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.about-content h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
  /* Reduced from 10px */
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  line-height: 1.2;
  min-height: 1.3em;
  /* Reduced to fit one line comfortably */
}

.about-content .typewriter-text {
  color: var(--secondary);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cursor removed as requested */

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  /* Reduced from 30px */
}

/* Projects Section */
section.projects-section {
  padding: 100px 10%;
}

.projects-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
}

.projects-section h2 span {
  color: var(--primary);
}

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

.projects-card-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.projects-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  /* Fix clickability */
}

.projects-card-box:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.projects-card-box:hover::before {
  opacity: 1;
}

/* Ice Cube Cursor on Hover */
a:hover,
button:hover,
.projects-card-box:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>🧊</text></svg>") 16 0, pointer;
}

.projects-card-box__icons i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.projects-card-box__desc h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.projects-card-box__desc p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Footer */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  position: relative;
  z-index: 1000;
  /* Ensure it's above everything */
  pointer-events: auto;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  z-index: 1001;
}

/* Project Icons Images */
.projects-card-box__icons img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  /* Optional: soft corners */
  margin-bottom: 20px;
}

/* Media Queries */
@media (max-width: 992px) {
  section.hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 150px;
    gap: 50px;
  }

  .hero-content {
    margin: 0 auto;
  }

  ul.social-icons {
    justify-content: center;
  }

  section.about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px;
  }

  header .logo {
    font-size: 1.2rem;
  }

  header ul {
    display: none;
    /* Mobile menu implementation would go here */
  }

  .hero-section__title {
    font-size: 2.5rem;
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary)
  }
}