/**
 * CORE CONFIG
 * This powers everything from utility class generation to breakpoints
 * to enabling/disabling pre-built components/utilities.
 */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  letter-spacing: -0.01em;
}

/* All elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

:focus {
  outline: 2px dashed #00ff19;
  outline-offset: 0.25rem;
}

main:focus {
  outline: none;
}

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
    --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
    --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
    --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
    --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
    --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
    --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
    --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
    --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
  }
  
  /* @link https://utopia.fyi/space/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  
  :root {
    --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
    --space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vw, 0.625rem);
    --space-xs: clamp(0.875rem, 0.8533rem + 0.1087vw, 0.9375rem);
    --space-s: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
    --space-m: clamp(1.6875rem, 1.6223rem + 0.3261vw, 1.875rem);
    --space-l: clamp(2.25rem, 2.163rem + 0.4348vw, 2.5rem);
    --space-xl: clamp(3.375rem, 3.2446rem + 0.6522vw, 3.75rem);
    --space-2xl: clamp(4.5rem, 4.3261rem + 0.8696vw, 5rem);
    --space-3xl: clamp(6.75rem, 6.4891rem + 1.3043vw, 7.5rem);
  }

  h1,
.h1 {
  font-size: var(--step-5);
}

h2,
.h2 {
  font-size: var(--step-4);
}

h3,
.h3 {
  font-size: var(--step-3);
}

h4,
.h4 {
  font-size: var(--step-2);
}

h5,
.h5 {
  font-size: var(--step-1);
}

/* define some constants */
.flex {
    display: flex;
    align-items: center;
    gap: var(--space-s);
  }
  @media (max-width: 468px) {
    .flex {
      flex-wrap: wrap;
    }
  }
  .flex_center {
    justify-content: center;
  }
  .flex_around {
    justify-content: space-around;
  }
  .flex_between {
    justify-content: space-between;
  }
  @media (max-width: 468px) {
    .flex_around {
      justify-content: center;
    }
    .flex_between {
      justify-content: center;
    }
  }
  .text_center {
    text-align: center;
  }
  .text_right {
    text-align: right;
  }
  
  /* define spacing */
  .padding-top-3xs {
    padding: var(--space-3xs);
  }

/* create the wrappers */
.wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
  }
  .wrapper_inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }
  
/* Style the header */
.site_header {
    padding: var(--space-s) 0;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(0, 0, 0, 0.9));
  }
  
  .site_header_nav ul li a {
    text-decoration: none;
    color: #fff;
  }

  .site_header {
    position: sticky;     /* or use position: fixed; see note below */
    top: 0;
    z-index: 1000;
    padding: var(--space-s) 0;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(0, 0, 0, 0.9));
    backdrop-filter: saturate(140%) blur(6px); /* optional nicety */
  }


  /* Ensure Devicon uses its own font even if *::before sets a font-family */
[class^="devicon-"]::before,
[class*=" devicon-"]::before {
  font-family: "devicon" !important;
  font-style: normal;
  font-weight: normal;
  speak: none;
  line-height: 1;
}

/* Hero section styling */
.hero_content {
    padding: var(--space-3xl) 0;
  }
  
  .hero_content h1 {
    margin-bottom: var(--space-s);
  }
  
  .hero_social {
    padding-top: var(--space-3xl);
  }
  
  /* General styling for the hero section */
  section {
    padding: var(--space-2xl) var(--space-l);
  }
  
  section#hero {
    min-height: 85vh; 
    display: flex;
    align-items: center;         /* centers content vertically */
    padding-top: 0;              /* prevent extra space above */
    padding-bottom: 0;
    background: linear-gradient(rgba(26, 26, 64, 0.9), rgba(26, 26, 64, 0.9)),
      url("/assets/background_image.jpg");
    padding-bottom: 4px;
    background-size: cover;
    background-position: top;
    background-attachment: scroll;
    color: #fafafa;
    --color-accent: #8a2be2;
  }

  /* About section */


  .about_content {
    padding: var(--space-xl) 0;
    transform: skewX(-10deg);
  }
  
  @media (max-width: 468px) {
    .about_content {
      transform: skewX(0deg);
    }
  }
  
  .about_figure {
    padding: var(--space-xl) 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ccc;
    display: inline-block;
    padding: 5px;
  }
  
  .about_img {
    width: 700px;
    height: 200px;
    object-fit: cover;
  }
  
  .about_caption {
    padding: var(--space-3xs) 0;
  }
  
  section#about {
    background-color: #ffffff;
    color: #333;
    --color-accent: #ffd700;
  }
  #about .h5 {
    font-size: 0.9rem;   /* smaller than default */
    line-height: 1.4;    /* improves readability */
  }

  
  /* Skills section */
  #skills {
    background-color: #f9f9f9;
    padding: var(--space-xl) 0;
    text-align: center; /* centers all text including headings */
  }
  
  .skills_heading {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  .skills_box {
    margin: 1.5rem auto;
    padding: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 500px; /* keeps boxes nicely centered */
    text-align: left; /* aligns list items left for readability */
  }
  
  .skills_box h3 {
    margin-bottom: 1rem;
    color: var(--color-accent, #333);
    text-align: center; /* centers subsection titles */
  }
  
  .skills_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .skills_list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .skills_list i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }


/* Projects Section */
  #projects {
    background: #ffffff;
    padding: var(--space-2xl) var(--space-l);
    text-align: center;
  }
  
  .projects_heading {
    margin-bottom: var(--space-l);
    font-size: var(--step-3);
  }
  
  .projects_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-m);
  }
  
  .projects_gallery a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 16 / 9; /* ensures all anchors are the same shape */
  }
  
  .projects_gallery a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  }
  
  .projects_gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills without distortion, crops if needed */
    display: block;
  }

  /* contact section */

  section#contact {
    background: linear-gradient(135deg, #0d0d0d, #1a0033); /* black → dark purple */
    color: #fafafa; /* light text so it’s readable */
    padding: var(--space-2xl) var(--space-l);
  }
  
  section#contact h2,
  section#contact label {
    color: #fff; /* keep labels/headings visible */
  }

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form_group {
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
  }
  
  textarea {
    resize: vertical;
    height: 150px;
  }
  
  button[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #8a2be2; /* violet accent */
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  
  button[type="submit"]:hover {
    background-color: #6f1ab6; /* deeper violet on hover */
    transform: translateY(-2px);
  }


  /* footer section */
  section#footer {
    background: linear-gradient(135deg, #0d0d0d, #1a0033); /* match contact */
    color: #fafafa;
    text-align: center;
    padding: var(--space-l) var(--space-l);
  }
