:root {
    --background: #2D3142;
    --background-accent: #053C5E;
    --notes: #3A7CA5;
    --white: #FEF9FF;
    --title-font:"Fjalla One", sans-serif;
    --generic-font: "DM Sans", sans-serif;
    --border: rgba(255,255,255,.14);
    --shadow: 0 12px 40px rgba(0,0,0,.28);
    --radius: 18px;
}

/* Global Styling */
html {
  scroll-behavior: smooth;
}

body {
    margin:0%;
    padding: 0%;
    background:
    radial-gradient(
      circle at 20% 20%,
      rgba(5, 60, 94, 0.5),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(5, 60, 94, 0.5),
      transparent 50%
    ),
    #191b25;

    background-attachment: fixed;
    font-family: var(--generic-font);
    overflow-x: hidden;
}

/* Scroll-reveal animation for content sections */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] { opacity: 1; transform: none; }

    #home h1 .line,
    .home-tagline,
    .home-buttons a,
    .accent { opacity: 1; transform: none; }

    .scroll-cue { opacity: 1; transform: translateX(-50%); }
}

section {
    min-height: 100vh;
    margin: 0%;
    padding:20px;
}

*, *::before, *::after {
  box-sizing: border-box; /*To prevent the section increasing on padding*/
}

/*                           */
/* Styling the Home Section */
/*                         */

#home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated aurora background blobs */
.home-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.blob-1 {
    width: 42vw;
    height: 42vw;
    top: -8%;
    left: -6%;
    background: radial-gradient(circle at 30% 30%, #3A7CA5, transparent 70%);
    animation: blobFloat 16s ease-in-out infinite;
}

.blob-2 {
    width: 36vw;
    height: 36vw;
    bottom: -10%;
    right: -8%;
    background: radial-gradient(circle at 70% 70%, #053C5E, transparent 70%);
    animation: blobFloat 20s ease-in-out infinite reverse;
}

.blob-3 {
    width: 28vw;
    height: 28vw;
    top: 40%;
    left: 55%;
    background: radial-gradient(circle at 50% 50%, rgba(58,124,165,0.7), transparent 70%);
    animation: blobFloat 24s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(4%, 6%) scale(1.08); }
    66%      { transform: translate(-5%, -4%) scale(0.95); }
}

#home h1 {
    font-family: var(--title-font);
    color:var(--white);
    text-align: center;
    font-size: clamp(3rem, 11vw, 8em);
    line-height: 1.05;
    letter-spacing: 2px;
    margin:5% 0% 0.4em;
    text-shadow: var(--shadow);
}

#home h1 .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}

#home h1 .line-1 { animation-delay: 0.1s; }
#home h1 .line-2 { animation-delay: 0.28s; }

/* Animated gradient on the role line */
#home h1 .accent {
    background: linear-gradient(90deg, #3A7CA5, #6fb6dd, #3A7CA5);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3A7CA5; /* fallback */
    animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) 0.28s forwards, accentShimmer 6s linear infinite;
}

@keyframes accentShimmer {
    to { background-position: 200% center; }
}

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

.home-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-tagline {
    max-width: 46ch;
    margin: 0 auto 2.2em;
    color: rgba(255,255,255,0.82);
    font-size: clamp(1rem, 2.4vw, 1.35em);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) 0.45s forwards;
}

.home-buttons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    height:60px;
}

.home-buttons a {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroRise 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}

.home-buttons a:nth-child(1) { animation-delay: 0.6s; }
.home-buttons a:nth-child(2) { animation-delay: 0.72s; }
.home-buttons a:nth-child(3) { animation-delay: 0.84s; }

.hb-button {
    border-radius:999px;
    border:2px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.86);
    padding:8px 12px;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow:var(--shadow);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.bi {
    color: rgba(255,255,255,.86);
    height:42px;
}

.home-buttons a:hover .hb-button {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 12px 30px rgba(58,124,165,.45);
  border-color: var(--white);
  background: rgba(58,124,165,.18);
}

/* Scroll-down cue */
.scroll-cue {
    position: absolute;
    z-index: 1;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    opacity: 0;
    animation: scrollCueRise 1s ease 1.1s forwards;
    transition: color .25s ease;
}

@keyframes scrollCueRise {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-cue:hover { color: var(--white); }

.scroll-cue-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-cue-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-cue-wheel {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
    animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

a {
    text-decoration: none;
}

.hide {
    display: none;
}

/*Styling the about me section */

#about-me {
    display: flex;
    flex-direction: row;
    gap:20px;
    padding:50px;
}

.summary-card {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: min(50%, 100%);
    display:flex;
    flex-direction: column;
    color: var(--white);
    padding:40px;
    justify-content:center;
    align-items:center;   
}

.summary-card:hover {
    border: 2px solid var(--white);
}

.summary-card h2 {
    font-family: var(--title-font);
    margin-bottom:20px;
    font-size: 3em;
    letter-spacing: 2px;
}

.summary-card img {
    width: 200px;
    height: 200px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom:20px;
    box-shadow: var(--shadow);
}

.summary-card p {
  max-width: 40ch;   /* nice readable line length */
  text-align:justify;
  font-size:1.2em;
}

.info-card {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap:20px;
    color:var(--white);
}


.studies-card {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height:50%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:10px;
    text-align: center;
}

.studies-card h2 {
    font-size: 2em;
    margin: 0px;
}

.studies-card:hover {
    border: 2px solid var(--white);
}

.studies-card img {
    width: 100px;
    height: 100px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom:20px;
    box-shadow: var(--shadow);
}

.hobbies-card {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height:50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.hobbies-card h2 {
    text-align: center;
    font-size: 2em;
}

.hobbies-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hobbies-card li {
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hobbies-card:hover {
    border: 2px solid var(--white);
}

.hobbie {
    color:var(--white);
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

/* SKILLS SECTION STYLING */
#skills {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    padding:70px;
}

.skills-card {   
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding:40px;
    width: 100%;
    height: 100%;
    font-family: var(--title-font);
}

.skills-card h2 {
    text-align: center;
    color: var(--white);
    font-size: 3em;
}

.skills-columns {
    display: flex;
    justify-content: center;
    height: 100%;
    color:var(--white);
    font-size: 1.7em;
    gap:20px;
    flex-wrap: wrap;
}

.skills-column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.skills-column ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;

    height: 100%;
    justify-content: space-evenly;
}

.skill {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.skill:hover {
  transform: translateX(4px);
  opacity: 1;
}

.skill i {
  font-size: 1.1em;
  opacity: 0.9;
}

/* STYLING FOR PROJECTS SECTION */
#projects {
  padding: 70px;
}

#projects > h2 {
  font-size: 3em;
  font-family: var(--title-font);
  color: var(--white);
  margin: 0 0 40px;
  text-align: center;
  margin-bottom:70px;
}

#projects ul {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;

  list-style: none;
  padding: 0;
  margin: 0;

  justify-content: center;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;

  width: 360px;
  max-width: 100%;

  padding: 28px 32px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);

  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--white);
}

.project-type {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(58,124,165,0.15);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1.15;
}

.project-content {
  margin: 0;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  text-align: left;
}

.project-date {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.project-card a {
  margin-top: auto;
  text-decoration: none;
}

.project-button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #3A7CA5;
  color: #fff;
  font-size: 1.2em;
  letter-spacing: 5px;
  font-family: var(--title-font);
  letter-spacing: .2px;

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}

.project-button:hover {
  transform: translateY(-4px);
  filter: brightness(1.07);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.project-button:active {
  transform: translateY(0);
}

.to-be-continued {
  display: flex;
  justify-content: center;
  align-items: center;

  border-style: dashed;
  opacity: 0.6;
}

.to-be-continued h2 {
  font-size: 4em;
  margin: 0;
  letter-spacing: 6px;
  font-weight: 300;
  color: var(--white);
  font-family: var(--title-font);
}

/* CONTACT SECTION STYLING */
#contact {
    color: var(--white);
}

#contact h2 {
    font-family: var(--title-font);
    font-size: 3em;
    text-align: center;
    margin-bottom: 100px;
}

.contact-card {
    display: flex;
    width:100%;
    justify-content: space-evenly;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 360px;
  height:60vh;
  max-width: 100%;
  padding: 28px 32px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);

  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.contact-column:hover {
    border: 2px solid var(--white);
    transform: translateY(-2px);

}

#contact p {
    font-size: 1.2em;
}

.contact-card a {
  margin-top: auto;
  text-decoration: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-button {
  cursor: pointer;
  border: 0;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  padding: 12px 16px;
  background: #3A7CA5;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}

.contact-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.contact-button:active {
  transform: translateY(0);
}

.contact-subtitle {
    font-size: 2em;
    font-family: var(--title-font);
    letter-spacing: 2px;
    font-weight: normal;
}

.contact-logo i {
    font-size: 5em;
}

/* FOOTER */
#footer {
  width: 100%;
  padding: 25px 40px;
  border-top: 2px solid var(--border);
  background: transparent;
}

/* CONTENT WRAPPER */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* TEXT */
.footer-content p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-family: var(--title-font);
  font-size: 0.95rem;
}

/* ICON LINKS */
.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;
  text-decoration: none;
  color: var(--white);
  background: rgba(58,124,165,0.15);

  transition: transform .2s ease, background .2s ease;
}

/* ICON SIZE */
.footer-links i {
  font-size: 22px;
}

/* HOVER */
.footer-links a:hover {
  transform: translateY(-3px);
  background: rgba(58,124,165,0.35);
}

/*MEDIA QUERIES FOR RESPONSIVENESS*/

@media (max-width:1200px) {
  section {
    height: auto;
  }

  #projects {
    flex-direction: column;
    min-height: auto;
  }

  #contact {
    height:auto;
    flex-direction: column;
  }

  .contact-card {
    flex-direction: column;
    height:auto;
    gap:30px;
    align-items: center;
  }

  .contact-button {
    max-width: 480px;
  }

  .contact-column {
    height: auto;
    width:100%;
    margin:0%;
  }

  .contact-subtitle { 
    font-size: 3em;
  }

  .studies-card h2 {
    font-size:1.7em;
  }

  .hobbies-card h2 {
    font-size:1.7em;
  }
}

@media (max-width:992px) {
  .studies-card h2 {
    font-size:1.5em;
  }

  .hobbies-card h2 {
    font-size:1.5em;
  }
}


@media (max-width: 768px) {

.summary-card h2 {
    font-size: 2.5em;
}

.summary-card img {
    width: 150px;
    height: 150px;
}

.summary-card p {
  font-size:1em;
  letter-spacing: 1.2px;
}

  .summary-card {
    width:100%;
  }

  .studies-card {
    padding: 20px;
  }

  .hobbies-card {
    padding-bottom:30px;
    padding-top:0%;
  }

  .info-card {
    width: 100%;
  }

  .studies-card h2 {
    font-size:1.2em;
    font-weight: bolder;
  }

  .studies-card h3 {
    font-size: 1em;
  }

  .hobbies-card h2 {
    font-size:1.2em;
  }

  .hobbies-card li {
    font-size: 1em;
  }

  #about-me {
    flex-direction: column;
  }

  #skills{
    height: auto;
    padding: 30px 16px;
  }

  .skills-card{
    height: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 18px;
  }

  .skills-columns{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
  }

  .project-card {
    height: fit-content;
  }

  .skills-column{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .skills-column ul{
    height: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

.skill i {
  font-size: 1em;
}

.skill {
  font-size: 1em;
}

#footer {
  margin-top: 0%;
}

#contact {
  margin-bottom: 0%;
}
}

@media (max-width:530px) {
  #home {
    display: flex;
    justify-content: center;
    padding:30px 24px;
    min-height: 100vh;
}

.to-be-continued h2 {
  font-size: 2em;
}

.home-buttons {
  gap: 14px;
}

 .skills-card h2 { font-size: 1.9em; }
  .skills-card { padding: 18px 14px; }
  .skill { font-size: 0.9em; }
}
