﻿/* === Variables === */
:root {
  --primary: #00bfa6;
  --dark: #1a1a1a;
  --white: #ffffff;
  --section-bg: #1a1a1a;
  --text-color: #f5f5f5;
}

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--section-bg);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* === Header / Navbar === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-color);
}

.nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

/* === Hero Section === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 60px;
  gap: 40px;
  background: var(--section-bg);
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-text .highlight {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.buttons a {
  display: inline-block;
  margin-right: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.btn {
  background: var(--primary);
  color: var(--white);
}

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

.hero-img img {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}

/* === Sections === */
.about,
.skills,
.projects,
.contact {
  padding: 80px 60px;
  background: var(--section-bg);
  color: var(--text-color);
}

.skills h2,
.about h2,
.projects h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.skill-list li {
  background: #050000;
  color: var(--primary);
  font-weight: bold;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.projects img {
  width: 100%;
  max-width: 300px;
  border-radius: 30px;
  object-fit: cover;
}

.project-item img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.project-desc h3 {
  margin-top: 10px;
  color: var(--primary);
}

.contact {
  text-align: center;
  font-size: 1rem;
  background: var(--section-bg);
}

footer a {
  color: var(--primary);
  text-decoration: underline;
}

.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #1a1a1a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.intro-text {
  font-size: 2.5rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 220px;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-img img {
    margin-top: 30px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .qualification-container {
    padding: 0 10px;
  }
}

.clean-line {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
}

.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  color: white;
  background-color: #12152F;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #00BFA6;
  font-size: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  width: 100%;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00BFA6;
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  align-self: center;
  background: #00BFA6;
  color: #0A0F29;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #00a992;
}


.typing {
  font-size: 2rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #00bfa6;
  width: 0;
  animation: typing 2.5s steps(21, end) forwards, blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.tabs-container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
  color: white;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.25);
}

.tab-content {
  display: none;
  animation: fade 0.5s ease;
}

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

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

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 10px;
  position: relative;
}

.timeline-item h4 {
  margin-bottom: 6px;
}

.qual-card i {
  color: var(--primary);
  font-size: 1.4rem;
}
