/* =========================================
   VIKRAM PANDIAN — PORTFOLIO STYLES
   Clean · Minimal · Professional
   ========================================= */

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #5eead4;
  --teal-pale: #f0fdfa;
  --teal-border: #ccfbf1;
  --black: #0f172a;
  --grey-dark: #334155;
  --grey-mid: #64748b;
  --grey-light: #e2e8f0;
  --white: #ffffff;
  --off-white: #f8fafc;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 148, 136, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================
   NAV
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--grey-light);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-dark);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal); }

/* =========================================
   HERO
   ========================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1.5px;
  background: var(--teal);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--grey-mid);
  max-width: 480px;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Hero decorations */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal-border);
}
.c1 {
  width: 600px; height: 600px;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}
.c2 {
  width: 400px; height: 400px;
  right: -50px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  border-color: var(--teal-light);
}
.line-grid {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  background-image:
    linear-gradient(var(--teal-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--teal-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 50%, black 30%, transparent 100%);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--grey-light);
  color: var(--grey-dark);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.btn-outline svg { width: 18px; height: 18px; }

/* =========================================
   SECTION SHARED
   ========================================= */
section {
  padding: 7rem 0;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--teal);
}
.section-header { margin-bottom: 4rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--black);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--black);
}

/* =========================================
   ABOUT
   ========================================= */
#about {
  background: var(--off-white);
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}
.about-left .section-tag { margin-bottom: 1.5rem; }
.about-photo-wrap {
  margin-top: 2rem;
  position: relative;
  display: inline-block;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid var(--teal-border);
  z-index: 0;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--teal-pale);
  z-index: -1;
}
.about-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13, 148, 136, 0.2);
}

.about-right p {
  color: var(--grey-dark);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-right strong { color: var(--black); font-weight: 600; }
.about-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-light);
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.skill-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--teal-border);
}
.skill-icon {
  width: 44px; height: 44px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.skill-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal);
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list span {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--teal-pale);
  color: var(--teal-dark);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  border: 1px solid var(--teal-border);
}

/* =========================================
   PROJECTS
   ========================================= */
#projects { background: var(--off-white); border-top: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--teal-border);
}
.project-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--teal-border);
  line-height: 1;
  padding-top: 0.25rem;
  min-width: 2.5rem;
  user-select: none;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.project-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.project-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.project-content p {
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.project-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-bullets li {
  font-size: 0.85rem;
  color: var(--grey-mid);
  padding-left: 1.25rem;
  position: relative;
}
.project-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Project visuals */
.project-visual {
  min-width: 140px;
  width: 140px;
  height: 100px;
  border-radius: 10px;
  background: var(--teal-pale);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1.25rem;
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--teal-border);
}
.pv-baseball {
  gap: 0.5rem;
}
.pv-bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: var(--teal-light);
  transition: height var(--transition);
}
.b1 { height: 40%; }
.b2 { height: 70%; background: var(--teal); }
.b3 { height: 55%; }
.b4 { height: 80%; background: var(--teal); }
.b5 { height: 45%; }

.project-card:hover .b1 { height: 50%; }
.project-card:hover .b2 { height: 85%; }
.project-card:hover .b3 { height: 65%; }
.project-card:hover .b4 { height: 95%; }
.project-card:hover .b5 { height: 60%; }

.pv-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.pv-stock svg { width: 100%; height: 100%; }

/* =========================================
   EXPERIENCE
   ========================================= */
.exp-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  align-items: start;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.exp-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-border);
}
.exp-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exp-company {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--black);
}
.exp-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.exp-right h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}
.exp-right ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exp-right li {
  font-size: 0.9rem;
  color: var(--grey-dark);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.exp-right li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* =========================================
   CONTACT
   ========================================= */
#contact {
  background: var(--black);
  color: var(--white);
}
#contact .section-tag {
  color: var(--teal-light);
}
#contact .section-tag::before {
  background: var(--teal-light);
}
.contact-inner {
  max-width: 640px;
}
#contact h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
#contact h2 em {
  font-style: italic;
  color: var(--teal-light);
}
.contact-inner > p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
#contact .btn-primary {
  background: var(--teal);
}
#contact .btn-primary:hover {
  background: var(--teal-dark);
}
#contact .btn-outline {
  border-color: #334155;
  color: #cbd5e1;
}
#contact .btn-outline:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}
.contact-phone {
  font-size: 0.9rem;
  color: #64748b;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #0a0f1e;
  padding: 1.5rem 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #475569;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — only active when JS has loaded */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
body.js-ready .reveal.delay-1 { transition-delay: 0.1s; }
body.js-ready .reveal.delay-2 { transition-delay: 0.2s; }
body.js-ready .reveal.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  section { padding: 5rem 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-number { display: none; }
  .project-visual {
    width: 100%;
    min-width: unset;
    height: 80px;
  }

  .exp-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
