
/* ==========================================
   RUSHIKESH RAUT — DEVELOPER PORTFOLIO
   FILE: css/style.css
   GLOBAL DESIGN SYSTEM
========================================== */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* VARIABLES */
:root {
  --bg: #101010;
  --bg-secondary: #191919;
  --surface: #222222;
  --text: #f5f3ef;
  --muted: #a2a2a2;
  --accent: #e63946;
  --border: rgba(255, 255, 255, 0.16);

  --font-main: 'DM Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --container: 1440px;
  --side-padding: clamp(22px, 5vw, 90px);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* PAGE TEXTURE */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ==========================================
   NAVIGATION
========================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 var(--side-padding);
  z-index: 50;

  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -2px;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
}

.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ==========================================
   GLOBAL SECTION STRUCTURE
========================================== */

.content-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px var(--side-padding);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.section-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section-number {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 35px;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 130px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin-bottom: 42px;
}

.content-section p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.8;
  max-width: 600px;
}

/* ==========================================
   ABOUT
========================================== */

.about-section {
  background: var(--bg-secondary);
}

.about-section::after {
  content: "ABOUT";
  position: absolute;
  right: -2%;
  bottom: -5%;
  font-family: var(--font-display);
  font-size: clamp(150px, 28vw, 500px);
  font-weight: 700;
  letter-spacing: -0.1em;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

/* ==========================================
   SKILLS
========================================== */

.skills-section {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 70px;
}

.skill-card {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 28px;

  background: var(--surface);
  border: 1px solid var(--border);

  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;

  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.skill-card:hover {
  border-color: var(--accent);
  background: #2a2022;
}

/* ==========================================
   PROJECTS
========================================== */

.projects-section {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 70px;
}

.project-card {
  min-height: 340px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: #222;
  border: 1px solid var(--border);
  position: relative;
}

.project-card > span {
  position: absolute;
  top: 35px;
  left: 35px;
  font-size: 13px;
  color: var(--accent);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.project-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================
   CONTACT
========================================== */

.contact-section {
  background: var(--bg);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 35px;

  border: 1px solid var(--accent);
  color: var(--text);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.contact-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1024px) {
  .header-label {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 76px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .content-section {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 125px;
  }

  .project-card {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 9px;
  }

  .main-nav a {
    font-size: 9px;
    letter-spacing: 0;
  }

  .main-nav a:nth-child(3),
  .main-nav a:nth-child(4) {
    display: none;
  }

  .content-section h2 {
    font-size: clamp(44px, 12vw, 70px);
  }
}
