*{
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* make layout padding/border included in width calculations to avoid overflow */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0f0f0f;
    font-family: sans-serif;
    overflow: auto;
    position: relative;
    color: #fff;
    /* allow body to grow so content isn't clipped */
    min-height: 100vh;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #1a1a1a, #0f0f0f 80%);
  /* send background behind all other elements */
  z-index: -1;
  animation: pulse 10s ease infinite alternate;
}

@keyframes pulse {
  0% { background-position: 0 0; }
  50% { background-position: 100px 100px; }
  100% { background-position: 0 0; }
}

/* ================== Navbar ================== */
nav {
    position: fixed;
    height: 75px;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15,15,15,0.9);
    backdrop-filter: blur(10px);
    padding: 20px 60px;
    z-index: 1000;
    margin: 0px;
}

.navbar-toggle {
    display: none;
}


li {
    list-style: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}
.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

@media(max-width:800px){
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
        .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
        .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar{
        position: fixed;
        height: 100vh;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: rgba(15,15,15,0.9);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
    }

    .navbar a:hover {
        background: linear-gradient(145deg, #1a1a1a, #222222);
        color: #7c5cff;
}

    .navbar .nav-item {
        margin: 24px 0;         
        width: 100%;
    }
    .navbar .nav-item a {
        display: block;
        padding: 24px 0;        
        text-align: center;
    }

    .navbar.active{
        left: 0;
        padding: 0;
    }
}

nav .navbar {
    display: flex;
    flex-wrap: wrap;
}

nav a {
    height: 100%;
    width: 100%;
    color: white;
    text-decoration: none;
    margin-left: 0px;
    font-weight: 500;
    padding: 20px;
    transition: 0.3s ease;

}



nav a:hover {
    color: #7c5cff;
}

/* ================== Sections ================== */
section {
    padding: 140px 50px 80px 80px;
}

/* Base 2-column grid */
.two-col {
    display: grid;
    gap: 40px;
}

.two-col--60-40 {
    grid-template-columns: 3fr 2fr;
}

.two-col--40-60 {
    grid-template-columns: 2fr 3fr;
}

.two-col--70-30 {
    grid-template-columns: 7fr 3fr;
}

/* ================== Cards ================== */
.card {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
}

.glass{ 
  background: linear-gradient(
    230deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 20px;
  color: #fff;
}

.edges {  
    border-radius: 15px 35px 5px 35px;;
}

/* ================== Hero Section ================== */
#hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 700;
}

#hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bdbdbd;
    margin: 10px 0;
}

#hero span {
    display: block;
    font-size: 0.9rem;
    color: #7c5cff;
    margin-top: 5px;
}

/* Profile Image */
.profile {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.intro {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Social icons */
.socials {
    display: flex;
    flex-direction: column;
    align-items: center;      /* center horizontally */
    gap: 8px;                 /* space between links */
    margin-left: auto;
}

.socials a {
    display: flex;            /* center the image inside anchor */
    align-items: center;
    justify-content: center;
}

.socials img:hover{
    opacity: 0.8;
    transform:translateY(-10px);
    transition: 0.3s ease;
}


/* ================== Responsive ================== */
@media (max-width: 900px) {
    section {
        padding: 120px 30px 60px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.2rem;
    }
}