html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #2c3e50 0%,   /* nav color */
    #1a242f 30%,  /* mid tone */
    #000 100%     /* deep space */
  );
}

canvas#cosmicCanvas,
canvas#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent !important;
  pointer-events: none;
}

/* COSMIC HOMEPAGE - ADD TO TOP OF STYLES.CSS */
/* Alternative method - add padding to sections */

/* ensure anchored sections clear any header/navigation */
section {
  scroll-margin-top: 100px; /* if you add a fixed header later, set this to its height, e.g. 60px */
}
.cosmic-homepage {
    height: 100vh;
    background: #000213;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



#cosmicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



.cosmic-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 
        0 0 20px rgba(255,255,255,0.4),
        0 0 40px rgba(255,255,255,0.2);
    opacity: 0;
    animation: fadeInPhoto 0.01s ease 0.2s forwards;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.cosmic-photo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: photoGlow 0.5s ease-in-out infinite alternate;
    z-index: -1;
}

.cosmic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes fadeInPhoto {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes photoGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}


/* Adjust the content positioning */
.cosmic-content {
    text-align: center;
    color: white;
    z-index: 20;
    position: relative;
    padding-top: 50px; /* Make room for the centered photo */
}

.cosmic-content h1 {
    font-size: 4rem;
    margin-bottom: 200px;
    margin-top: 50px;  /* Pull it way up to sit on top of the photo */
    color: white;
    font-family: 'Caveat', cursive;
    opacity: 0;
    animation: fadeInTitle 2s ease 2s forwards;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6);  /* Add shadow for readability */
    z-index: 30;  /* Make sure it's above the photo */
    position: relative;
}

.cosmic-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInSubtitle 0.5s ease 1.3s forwards;
}

.cosmic-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: unfoldNav 0.5s ease 2s forwards;
}

.cosmic-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    transform: translateY(20px);
    animation: fadeInNavItem 0.5s ease forwards;
}

.cosmic-nav a:nth-child(1) { animation-delay: 0.5s; }
.cosmic-nav a:nth-child(2) { animation-delay: 0.7s; } 
.cosmic-nav a:nth-child(3) { animation-delay: 0.9s;}
.cosmic-nav a:nth-child(4) { animation-delay: 1.1s; }
.cosmic-nav a:nth-child(5) { animation-delay: 1.3s; }

.cosmic-nav a:hover {
    color: white;
}

.cosmic-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.cosmic-nav a:hover::after {
    width: 100%;
}

/* Animations */


@keyframes fadeInTitle {
    to { opacity: 1; }
}

@keyframes fadeInSubtitle {
    to { opacity: 1; }
}

@keyframes unfoldNav {
    to { opacity: 1; }
}

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

/* Make sure your existing content appears below */
.content-wrapper {
    position: relative;
    z-index: 5;
}















/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 /*
body {
    color: #333;
    line-height: 1.6;
    font-family: 'Special Elite', cursive;
    overflow-x: hidden;
    background-color: #01041c;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
    font-family: 'Caveat', cursive;
}

h1, h2 {
    text-align: center;
    font-weight: bold;
}

h1 {
    font-size: 3.2rem;
    padding: 20px 0;
    color: #252A35;
}

h2 {
    font-size: 2.8rem;
    padding: 15px 0;
    color: #252A35;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Caveat', cursive;
    color: #252A35;
}

p {
    margin-bottom: 15px;
    font-family: 'Special Elite', cursive;
}

a {
    color: #725D47;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4A3D2F;
}

/* Header Styles */
header {
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

.header-content {
    width: 80%;
    margin: 0 auto;
    background-color: #E5D7C0;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.header-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background-color: #A49184;
    clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%);
    z-index: -1;
}

.logo {
    color: #725D47;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Caveat', cursive;
    background-color: #FFFFFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #725D47;
    transform: rotate(-5deg);
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    background-color: #F9F3E7;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

nav ul::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 20px;
    width: 50px;
    height: 15px;
    background-color: #A49184;
    z-index: -1;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #725D47;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Indie Flower', cursive;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    position: relative;
}

nav ul li a:hover {
    color: #4A3D2F;
    transform: scale(1.05);
}

nav ul li a.active {
    color: #4A3D2F;
    font-weight: bold;
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #725D47;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -10px;         /* Position it behind the text card */
    left: 400px;       /* Adjust based on your text card position */
    width: 500px;
    height: 25px;
    transform: rotate(2deg);
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;        
}



.hero-image {
    flex: 0 0 260px;
    margin-right: 60px;
    position: relative;
    transform: rotate(-3deg);
}

.polaroid-frame {
    background-color: #F9F3E7;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.polaroid-frame::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 30px;
    width: 200px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.profile-image {
    width: 100%;
    height: auto;
    border: 1px solid #CCC;
    object-fit: cover;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    background-color: #E5D7C0;
    padding: 30px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    overflow: visible;
}


.hero-text::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 60px;
    width: 599px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #4A3D2F;
    text-align: left;
    padding: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
}

.btn-primary {
    background: #725D47;
    color: white;
    border: 2px solid #725D47;
}

.btn-primary:hover {
    background: transparent;
    color: #725D47;
}

.btn-secondary {
    background: transparent;
    color: #725D47;
    border: 2px solid #725D47;
}

.btn-secondary:hover {
    background: rgba(114, 93, 71, 0.1);
}



/* Handdrawn elements */
.handdrawn-flower {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 C60,35 75,35 80,25 C75,40 85,55 70,60 C85,60 90,75 80,80 C70,75 60,85 50,75 C40,85 30,80 20,75 C15,85 5,75 15,65 C5,60 10,45 25,40 C15,35 20,25 30,20 C40,30 45,10 50,20 Z" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
    opacity: 0.7;
    bottom: 30px;
    right: 50px;
}

/* Experience Section */
.experience-section {
    padding: 60px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    background-color: #F9F3E7;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    transform: rotate(-1deg);
}

.section-header::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    width: 70px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background-color: #A49184;
    z-index: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #725D47;
    border: 4px solid #F9F3E7;
    box-shadow: 0 0 0 2px #725D47;
    z-index: 2;
}

.timeline-date {
    position: absolute;
    left: 60px;
    top: 0;
    color: #F9F3E7;
    font-weight: 700;
    font-size: 1rem;
    background-color: #725D47;
    padding: 2px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    z-index: 10;
}

.timeline-content {
    padding-top: 30px;
}

.company-card {
    display: flex;
    background-color: #F9F3E7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #725D47;
    position: relative;
    transform: rotate(1deg);
}

.company-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 100px;
    width: 60px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.company-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.company-logo {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    position: relative;
}

.company-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.company-card:hover .company-logo img {
    transform: scale(1.1);
}

.company-details {
    flex: 1;
    padding: 30px;
    background-color: #F9F3E7;
}

.company-details h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.company-details h4 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: 'Indie Flower', cursive;
}

.achievement-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.metric {
    flex: 0 0 30%;
    text-align: center;
    padding: 15px 10px;
    background-color: #E5D7C0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(-1deg);
}

.metric:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #725D47;
    margin-bottom: 5px;
    font-family: 'Caveat', cursive;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.company-details p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #E5D7C0;
    color: #4A3D2F;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.skill-tag:hover {
    background-color: #725D47;
    color: white;
    transform: translateY(-2px) rotate(-1deg);
}

/* Education Section */
.education {
    padding: 80px 0;
    position: relative;
}

.education::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 42, 53, 0.0);
    z-index: 0;
}

.education .container {
    position: relative;
    z-index: 1;
}

.education h2 {
    color: #F9F3E7;
    background-color: #725D47;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 5px;
    margin: 0 auto 30px;
    transform: rotate(-1deg);
}

.education hr {
    border: none;
    height: 1px;
    background-color: #A49184;
    margin: 20px 0;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.university-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 40px;
}

.university {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    background: #F9F3E7;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.university:first-child {
    transform: rotate(-2deg);
}

.university:last-child {
    transform: rotate(2deg);
}

.university:first-child::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    width: 60px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.university:last-child::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 40px;
    width: 60px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.university:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.university-logo {
    flex: 0 0 100px;
    margin-right: 30px;
}

.university-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #ddd;
}

.university-info {
    flex: 1;
}

.university-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.university-info p {
    color: #666;
    margin-bottom: 8px;
}

.university-info p:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: #F9F3E7;
    border: 2px solid #A49184;
    padding: 8px 20px;
    margin: 0 8px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #4A3D2F;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Special Elite', cursive;
    transform: rotate(-1deg);
}

.filter-btn:hover, .filter-btn.active {
    background-color: #725D47;
    border-color: #725D47;
    color: white;
    transform: translateY(-2px) rotate(-1deg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 40px;
}

.project-card {
    background: #F9F3E7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 30px;
    width: 60px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.project-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.project-card:nth-child(even) {
    transform: rotate(2deg);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
    grid-column: span 2;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-bottom: 1px solid #ddd;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    padding: 8px 18px;
    background: #F9F3E7;
    color: #4A3D2F;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #725D47;
    color: white;
}

.project-link.request-code {
    background: #725D47;
    color: white;
}

.project-link.request-code:hover {
    background: #4A3D2F;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    background: #E5D7C0;
    color: #4A3D2F;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #725D47;
    text-decoration: none;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #725D47;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    position: relative;
}

.skills-section::before {
    content: "";
    position: absolute;
    right: 10%;
    top: 20%;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 C60,35 75,35 80,25 C75,40 85,55 70,60 C85,60 90,75 80,80 C70,75 60,85 50,75 C40,85 30,80 20,75 C15,85 5,75 15,65 C5,60 10,45 25,40 C15,35 20,25 30,20 C40,30 45,10 50,20 Z" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    z-index: 1;
}

.skills-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.skill-grid-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    background-color: #F9F3E7;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.skill-grid-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    width: 80px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skill-node {
    text-align: center;
}

.skill-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    padding: 5px;
    text-align: center;
}

.skill-circle:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.expert {
    background-color: #725D47;
}

.advanced {
    background-color: #8C735B;
}

.intermediate {
    background-color: #A58B6F;
}

.basic {
    background-color: #BEA483;
}

.beginner {
    background-color: #D6BD97;
}

.skill-legend {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.legend-container {
    background-color: #F9F3E7;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    transform: rotate(-1deg);
}

.legend-container::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 30px;
    width: 50px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.legend-title {
    font-weight: 600;
    margin-right: 20px;
    font-family: 'Indie Flower', cursive;
    font-size: 1.1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.legend-item .circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-item span {
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    position: relative;
}

.contact-content {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
    background-color: #F9F3E7;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(238, 238, 235, 0.1);
    position: relative;
}

.contact-info::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    width: 80px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: #F9F3E7;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.contact-item:first-child {
    transform: rotate(-2deg);
}

.contact-item:last-child {
    transform: rotate(2deg);
}

.contact-item:first-child::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    width: 50px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.contact-item:last-child::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 30px;
    width: 50px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-style: normal;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.email-icon {
    background-color: #725D47;
}

.linkedin-icon {
    background-color: #725D47;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form {
    background-color: #F9F3E7;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotate(-1deg);
}

.contact-form::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 50px;
    width: 80px;
    height: 20px;
    background-color: rgba(164, 145, 132, 0.7);
    z-index: 5;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Special Elite', cursive;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #725D47;
    box-shadow: 0 0 0 3px rgba(114, 93, 71, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer Section */
footer {
    background-color: #333;
    color: #F9F3E7;
    padding: 50px 0 20px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    color: #F9F3E7;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Caveat', cursive;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #E5D7C0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F9F3E7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F9F3E7;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: #725D47;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #4A3D2F;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(229, 215, 192, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #725D47;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4A3D2F;
    transform: translateY(-3px);
}

.back-to-top svg {
    fill: white;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 1s;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

.animate__delay-2s {
    animation-delay: 0.6s;
}

.animate__delay-3s {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Define the fade-in class for IntersectionObserver */
.fade-in {
    opacity: 1 !important;
    transition: opacity 0.6s ease;
}

/* Paper Torn Edges Effect */
.hero-text, .section-header, .university, .project-card, .contact-info, .contact-form, .skill-grid-container {
    position: relative;
    overflow: hidden;
}

.hero-text:after, .section-header:after, .university:after, .project-card:after, .contact-info:after, .contact-form:after, .skill-grid-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tear-height, 7px);
    background-image: 
        linear-gradient(45deg, transparent 33.333%, #252A35 33.333%, #252A35 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, #252A35 33.333%, #252A35 66.667%, transparent 66.667%);
    background-size: 16px 16px;
    background-position: 0 -8px;
}

/* Enhanced Grid Background - Stronger for scrapbook feel 
body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}
*/

/* Vintage Texture Overlay 
body:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.08"/></svg>');
    z-index: -1;
    opacity: 0.3;
}
    */

/* Responsive Styles */
@media (max-width: 992px) {
    .project-card.featured {
        grid-column: span 1;
    }
    
    .university-container {
        flex-direction: column;
    }
    
    .skill-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #F9F3E7;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.mobile-active {
        display: flex;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-text h1, .hero-text h2 {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        top: 40px;
    }
    
    .timeline-content {
        padding-top: 70px;
    }
    
    .company-card {
        flex-direction: column;
    }
    
    .company-logo {
        padding: 30px;
    }
    
    .achievement-metrics {
        flex-direction: column;
    }
    
    .metric {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-circle {
        width: 80px;
        height: 80px;
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-details {
        flex-direction: column;
    }
}

/* Neural Network Background CSS */
.neural-network-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #01041c;
  pointer-events: none; /* Allow clicks to pass through to content */
  overflow: hidden;
}

.neural-network-background canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Update body to use the neural network background instead of the grid */
body {
  color: #333;
  line-height: 1.6;
  font-family: 'Special Elite', cursive;
  overflow-x: hidden;
  background-color: #252A35;
  /* Remove grid background styles */
}

/* Remove previous background elements */
body:before, body:after {
  content: none;
}




/* Project Section CSS Updates for Multiple Categories */

/* Project Cards with Multi-Category Support */
.project-card {
    background: #F9F3E7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    opacity: 1;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 30px;
    width: 60px;
    height: 16px;
    background-color: rgba(164, 145, 132, 0.0);
    z-index: 5;
}

.project-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.project-card:nth-child(even) {
    transform: rotate(2deg);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 10px;
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    background: #E5D7C0;
    color: #4A3D2F;
    border-radius: 4px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.tag:hover {
    background: #725D47;
    color: white;
    transform: translateY(-2px) rotate(-1deg);
}

/* Filter Button Animation */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #725D47;
    transition: width 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

/* Active Filter Styling Enhancement */
.filter-btn.active {
    background-color: #725D47;
    color: white;
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments for Project Tags */
@media (max-width: 576px) {
    .project-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}


/* ===== Medium Articles Section ===== */

#articles {
  margin: 50px;
  padding: 20px;
  background-color: #F9F3E7;  /* light background to separate section */
  border-radius: 10px;
}

#articles h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

#articles ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; /* spacing between squares */
}

#articles li {
  padding: 15px;
  border: 1px solid #E5D7C0;
  border-radius: 6px;
  background: #E5D7C0;
  transition: box-shadow 0.2s ease;
  height: 180px;       /* fixed square height */
  display: flex;       
  flex-direction: column;
  justify-content: space-between; /* keep title & description balanced */
}


#articles li:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#articles a {
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #252A35;  /* link color */
}

#articles a:hover {
  text-decoration: underline;
}

#articles p {
  font-size: 14px;
  margin-top: 8px;
  color: #555;
}

html {
  scroll-behavior: smooth;
}
