  :root {
    /* Base colors */
    --primary-color: #ffffff;        /* for headings and highlights */
    --secondary-color: #d8d8d8;     /* lighter modern charcoal */
    --card-bg-color: #ffffff;        /* contrast for cards */
    --text-color: #ffffff;           /* slightly warmer light gray */
    --secondary-text-color: #000000;

    /* Accent (modern sky-blue) */
    --accent-color: #444444;         /* fresh blue */
    --accent-hover-color: #333333;   /* deeper on hover */

    /* Borders and shadows */
    --border-color: rgba(255, 255, 255, 0);
    --shadow-color: rgba(0, 0, 0, 0.518);

    --header-color: #d8d8d8;
    --background-color: #1c1c1c;

    --header-shrink-color: #000000a9;

    --link-color: #bebebe;
    --link-hover-color: #787878;

    /* Typography */
    --heading-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 'Open Sans', Arial, sans-serif;
  }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
    overflow-x: hidden;
    height: 100dvh;
    background-color:#ffffff;
}

body a {
    color:var(--link-color);
    text-decoration:none;
}
body a:hover {
    color:var(--link-hover-color);
}

/* Header and Navigation Bar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 40px 5px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    min-height:120px;
}

header.shrink {
    background: var(--header-shrink-color);
    padding: 7px 20px;
    min-height:50px;
}

header .logo img {
    height: 110px;
    width: auto;
    padding-left: 50px;
}

header.shrink .logo img {
    height: 60px;
    padding-left: 10px;
}

header.shrink nav a {
    color: var(--text-color);
    margin: 0 25px;
    transition: 0.2s ease-in-out;
    font-size: 18px;
    padding-left: 0;
}
header nav {
    display: flex;
    align-items: center;
}
header nav a {
    color: var(--secondary-text-color);
    margin: 0px 50px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 26px;
    font-weight: 600;
    position: relative;
}
header nav a:hover {
    color: var(--accent-color);    
}
header nav a::before, header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Adjust thickness here */
    bottom: -8px; /* Adjust position here */
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}
header nav a::before {
    left: 50%;
}
header nav a::after {
    left: 50%;
}
header nav a:hover::before,
header nav a:hover::after {
    width: 50%;
}
header nav a:hover::before {
    left: 0;
}
header nav a:hover::after {
    right: 0;
}



.page-title {
    /* font-size: 81px; */
    padding-left: 70px;
    /* padding-bottom: 200px; */
    margin:0;
    background-color: rgba(255, 255, 255, 0.37);
    padding-top: 250px;
    color: #2b2b2b;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    background-size:cover;
    padding-bottom: 50px;
    font-size: 48px;
    backdrop-filter: blur(5px);
}

/* Home Page adjustments */
@media (max-width: 1920px) {
    .content p {
        height: 150px;
    }
}
@media (max-width: 1520px) {
    .contentbox-container {
        padding: 100px 30px;
    }
    .content h3 {
        font-size: 36px;
        height: 150px;
    }
    .content p {
        height: 200px;
    }
}





@media (max-width: 1280px) {
    header nav a {
        display: block;
        width: auto;
        text-align:left;
        padding: 5px 5px;
        font-size: 22px;
        margin: 10px;
    }
    header .logo {
        width: auto;
        padding-left: 30px;
    }
    header.shrink {
        padding: 5px 10px;
        display: flex;
    }
    header.shrink nav a {
        padding: 3px 15px;
        font-size: 15px;
    }
    header.shrink .instagram-icon {
        font-size: 18px;
    }
    .hero-text h2 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 2rem;
    }
    .hero {
        background-position: center;
    }
    .content {
        padding: 30px;
    }
    .content p {
        height: auto;
    }
    .content h3 {
        height: 60px;
    }
    .footer nav a {
        padding: 20px;
    }
    .footer-contact {
        padding: 20px 20%;
    }
    .contentbox-container {
        display: grid;
    }
}

@media (max-width: 1024px) {
    .contentbox-container {
        display: grid;
    }
    .content p {
        height: auto;
    }
    .content h3 {
        height: 60px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav a {
        display: block;
        width: 100%;
        text-align:left;
        padding-right: 40px;
        font-size: 22px;
        margin: 10px;
    }
    header nav a::before,
    header nav a::after {
        height: 3px;
        bottom: -2px;
    }

    header .instagram-icon {
        font-size: 28px;
    }
    header .logo img {
        height: 70px;
        width: auto;
        padding: 5px;
    }

    header.shrink {
        padding: 5px 10px;
        display: flex;
        padding:0;
        margin:0;
        transition: all 0.2s ease;
    }
    header.shrink .hamburger-menu {
        display: grid;
    }
    header.shrink nav {
        display: none;
    }
    header.shrink .nav-mobile {
        display: flex;
    }
    header.shrink .nav-mobile a {
        font-size: 22px;
        padding: 10px 20px;
        margin: 0;
    }
    header.shrink .logo img {
        height: 50px;
        padding: 5px 10px;
        padding-top: 10px;
    }
    .minimal-header nav a {
        font-size: 16px;
    }
    .minimal-header img {
        height: 50px;
        margin-right: 10px;
    }

    .hero-text {
        top: 60%;
    }
    .hero-text h2 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero {
        background-position: center;
    }
    .contentbox-container {
        display: grid;
        padding: 30px 3px;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
    .content {
        padding: 30px;
        opacity: 1;
    }
    .content h3 {
        height: 80px;
        font-size: 24px;
    }
    .content p {
        height: auto;
        font-size: 16px;
    }
    header {
        padding: 10px 15px;
    }
    form {
        padding: 0px 10px;
    }
    .folder-list, .user-list {
        display:flexbox;
    }
    .footer-contact {
        flex-direction: column;
    }
    .footer nav a {
        padding: 10px;
    }
    .footer-contact {
        padding: 20px 20%;
    }
    .page-title {
        padding-top: 400px;
        padding-bottom: 170px;
        font-size: 48px;
        padding-left: 20px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




  @media (min-width: 769px) {
    html {
      scroll-behavior: smooth;
    }
  }

  /* Reset and base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
  }

  /* Header */
  header {
    background-color: var(--header-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  header .logo h1 {
    font-family: var(--heading-font);
    color: #1b1b1b;
    font-size: 2rem;
  }


  /* Hero */
  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
    
  }

  #hero h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }

  #hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight:bold;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .cta-button:hover {
    background-color: var(--accent-hover-color);
  }

  /* Sections */
  section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    
  }

  section h2 {
    font-family: var(--heading-font);
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
  }

  section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--background-color);
    margin-top: 0.5rem;
    
  }

  /* About */

  #about {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    

  }

  .about-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
  }

  .about-text p {
    
    margin-bottom: 1rem;
  }
  /* Projects */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .project-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .project-card img,
  .project-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .project-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--secondary-text-color);
    margin-bottom: 0.5rem;
  }

  .project-card p {
    flex: 1;
    margin-bottom: 1rem;
    color:var(--secondary-text-color);
  }
  .project-card p a {
    text-decoration:none;
    color:#008085;
    text-shadow: 0px 2px 3px #70707076;
  }
  .project-card p a:hover {
    color:#005154;
    text-shadow: 0px 2px 3px #00000076;
    transition: 0.3s ease;
  }

  .project-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--accent-color);
    transition: all 0.2s;
    text-decoration:none;
  }

  .project-links a:hover {
    background-color: var(--accent-hover-color);
    color: var(--primary-color);
  }

  /* Skills */
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }

  .skill-item {
    background-color: var(--card-bg-color);
    color: var(--secondary-text-color);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px var(--shadow-color);
  }

  /* Contact */
  #contact .contact-info a {
    color: var(--link-color);
  }

  #contact .contact-info a:hover {
    color: var(--link-hover-color);
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
  }
    /* --- About Section: side-by-side photo + text --- */
  #about {
        background-color: var(--background-color);
    padding: 4rem 2rem;
  }

  .about-container {
    display: flex;
    flex-wrap: wrap;           /* stack on very narrow screens */
    align-items: center;
    gap: 2rem;                 /* space between photo and text */
    max-width: 1200px;
    margin: 0 auto;
    
  }

  .profile-photo {
    flex: 0 0 400px;           /* fixed width */
    width: 100%;
    height: auto;              /* preserve full image */
    border-radius: 8px;
    object-fit: cover;         /* crop only if needed to fill box */
    
  }

  .about-text {
    flex: 1;                   /* take remaining space */
    color: var(--text-color);
    
  }

  .about-text h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .about-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
  }


  /* Responsive */
  @media (max-width: 768px) {
    #about {
      flex-direction: column;
    }

    #hero h1 {
      font-size: 2.5rem;
    }
    
    header.shrink .logo h1 {
        font-family: var(--heading-font);
        color: var(--accent-color);
        font-size: 1.4rem;
    }

    nav a {
      margin-left: rem;
      font-size: 0.95rem;
    }
    .about-container {
      flex-direction:column;
    }
  }
