styles.css
portfolio-site


/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
:root {
  --bg-main: #050505;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-1: #00f0ff; /* Cyan */
  --accent-2: #8a2be2; /* BlueViolet */
  --accent-3: #ff007f; /* Rose */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Background Blobs for Atmosphere */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.blob-1 {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.4) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}
.blob-2 {
  bottom: 20%;
  right: -10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.3) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}
/* Typography */
h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-padding {
  padding: 100px 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}
/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
  transform: translateY(-2px);
}
.btn-icon {
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-1);
  transform: translateY(-2px);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}
#navbar.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  letter-spacing: -1px;
}
.logo .dot {
  color: var(--accent-1);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
}
.greeting {
  color: var(--accent-1);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.summary {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}
/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.skill-category h3 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0; /* Will be set by JS */
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}
/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.project-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.project-tech span {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--accent-1);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}
.project-links {
  display: flex;
  gap: 1rem;
}
.project-links a {
  color: var(--text-secondary);
}
.project-links a:hover {
  color: var(--accent-1);
}
/* Contact Section */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.contact-text {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.social-links {
  display: flex;
  gap: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-3px);
}
/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
/* Scroll Animation Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Responsive Design */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    max-height: 400px;
  }
  .nav-links a {
    padding: 1.5rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .menu-btn {
    display: block;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 60px 0;
  }
}
