@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; 
    background: #0f172a; 
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); 
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; 
    border-color: #2193b0;
    background-color: #e8f5fb; 
    transform: translateY(-3px) scale(1.02); 
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black;
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; 
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}


#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
.projectCard-title {
    font-weight: 700;
    font-size: 1.0rem;
    margin-bottom: 10px;
    color: #aac4ff;
    text-align: center;
}

.card-link,
.projectCard-link {
    color: #88aaff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes the link to the bottom of the flex container */
    position: relative; /* For underline animation */
    transition: color 0.25s ease;
}
/* Micro-interaction for links: animated underline */
.card-link::after,
.projectCard-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #f0f0f0; /* Color of the underline in dark mode */
    transition: width 0.3s ease;
}
.card-link:hover::after,
.projectCard-link:hover::after {
    width: 100%; /* Expands on hover */
}
body.light-mode .card-link::after,
body.light-mode .projectCard-link::after {
    background: #2193b0; /* Color of the underline in light mode */
}


.card-link:hover,
.projectCard-link:hover {
    color: #f0f0f0;
}

/* Styling for Project Description (h5 inside projectCard) */
.projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/*
* ========================================
* Education Section Specific
* ========================================
*/
.edu-icon {
    width: 150px; /* Increased width for better visibility */
    height: 150px; /* Increased height to give more room for the image */
    object-fit: contain; /* Ensures the entire image is visible, scaling down if necessary */
    margin-bottom: 12px;
    filter: drop-shadow(0 0 3px #88aaff); /* Subtle glow effect */
}

.edu-degree {
    font-weight: 500;
    font-size: 1.0rem;
    color: #c0d1ff;
    text-align: center;
    margin-top: 6px;
}

/*
* ========================================
* Skills Section Specific
* ========================================
*/
.skills-container {
    flex-grow: 1; /* Allows it to take up remaining space within skillSection */
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 1rem;
    display: flex;
    height: auto;
    max-height: 1200px;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

/*
* ========================================
* Chessboard Styling (Skills Section)
* ========================================
*/
.chessboard-container {
    /* CSS Variables for easy color adjustments */
    --light-square: #f0e9e0;
    --dark-square: #a0836f;
    --highlight-color: #ffbb33;
    --selected-color: #33aaff;
    --board-border: #5c4a3d;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.chessboard {
    display: grid;
    /* Responsive grid columns/rows, increased from min(60px, 12.5vw - 1px) to min(70px, 14vw - 1px) for larger squares */
    grid-template-columns: repeat(8, min(70px, 14vw - 1px));
    grid-template-rows: repeat(8, min(70px, 14vw - 1px));
    gap: 2px; /* Small gap between squares */
    background: var(--board-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 6px 15px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    user-select: none; /* Prevents text selection on pieces/squares */
    height: auto;
    width: auto;
    max-width: 700px; /* Increased from 600px to 700px for larger overall size */
}

.square {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Updated transitions for colorful dot effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.light {
    background-color: var(--light-square);
}

.dark {
    background-color: var(--dark-square);
}

.square img {
    width: 70%; /* Image size relative to square */
    height: 70%;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Prevents image from blocking click events on the square */
}

.square:hover {
    /* These properties are now largely overridden by .colorful-dot.active */
    box-shadow: 0 0 15px 4px rgba(51, 170, 255, 0.8), 0 0 8px 2px rgba(51, 170, 255, 0.6); /* Enhanced glow on hover */
    border-radius: 10px;
}
/* Micro-interaction for chessboard squares on click */
.square:active {
    transform: scale(0.95); /* Quick scale down on click */
    background-color: rgba(51, 170, 255, 0.3); /* Slight color change on press */
}

/* Highlight & Selection for Chessboard */
.highlight {
    background-color: var(--highlight-color);
    box-shadow: 0 0 20px 6px var(--highlight-color), 0 0 10px 3px rgba(255, 187, 51, 0.6);
}

.selected {
    background-color: var(--selected-color);
    box-shadow: 0 0 25px 8px var(--selected-color), 0 0 12px 4px rgba(51, 170, 255, 0.7);
}

/*
* ========================================
* Social Links
* ========================================
*/

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centered in the current layout */
    gap: 10px; /* Increased gap for better spacing */
    margin: 20px auto; /* Centered margin */
    width: 100%;
    max-width: 300px; /* A reasonable max-width */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.0); /* Ensure background is fully transparent */
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, border 0.3s ease-in-out, box-shadow 0.2s ease-out;
    border: none; /* Remove the border */
    box-shadow: none; /* Remove any default box-shadow */
}

.social-links a:hover {
    background: rgba(84, 13, 238, 0.5);
    transform: translateY(-3px) scale(1.1); /* Lift and slight scale */
    border-color: rgba(84, 13, 238, 0.8);
    box-shadow: 0 0 15px rgba(84, 13, 238, 0.7); /* Subtle glow on hover */
}
/* Micro-interaction for social links on click */
.social-links a:active {
    transform: scale(0.9); /* Quick scale down on click */
    box-shadow: 0 0 5px rgba(84, 13, 238, 0.9); /* More intense but smaller shadow on click */
    background: rgba(84, 13, 238, 0.7);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}


/*
* ========================================
* Animations
* ========================================
*/
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px 3px rgba(102, 153, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(102, 153, 255, 0.85);
    }
}

/* Typing animation cursor */
.typing-cursor {
    animation: blink-caret .75s step-end infinite; /* Blinking animation */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: currentColor; } /* Blinks with the current text color */
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Specific animation for the user name */
#user-name {
    display: inline-block; /* Crucial for applying transforms to inline text */
    opacity: 0; /* Start invisible */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 1s ease-out forwards; /* Custom animation for name */
    animation-delay: 0.2s; /* Delay the animation slightly after profile pic loads */
}


@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

.floating-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff; /* Will be overridden inline */
    opacity: 0.95;
    animation: floatUpDown 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1;
    filter: blur(0.3px);
    mix-blend-mode: screen;
}

/* Light mode adjustments for particles */
body.light-mode .floating-particle {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    mix-blend-mode: multiply;
}

/* Ensure particles are visible on all backgrounds */
.floating-particle {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Hide particles on hero/intro section */
.hero-section .floating-particle {
    display: none !important;
}

/* Chess tooltip styles */
#chess-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.light-mode #chess-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add some variety to particle sizes */
.floating-particle:nth-child(3n) {
    width: 16px;
    height: 16px;
}

.floating-particle:nth-child(5n) {
    width: 10px;
    height: 10px;
}

.floating-particle:nth-child(7n) {
    width: 18px;
    height: 18px;
}

@keyframes floatUpDown {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-30px) translateY(-40px) scale(1.1); 
        opacity: 1;
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
}

@keyframes magneticBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/*
* ========================================
* Responsiveness (Media Queries)
* ========================================
*/

/* Tablets and larger phones (landscape) */
@media (max-width: 992px) {
    .cards-container,
    .projectCards-container {
        grid-template-columns: repeat(2, 1fr); /* Changes to 2 columns */
    }
    .chessboard {
        /* Adjust column/row size for smaller screens - increased from 50px to 60px */
        grid-template-columns: repeat(8, min(60px, 13vw - 1px));
        grid-template-rows: repeat(8, min(60px, 13vw - 1px));
        max-width: 500px; /* Increased from 400px to 500px for tablets */
    }
}

/* Smaller tablets and large phones (portrait) */
@media (max-width: 768px) {
    header {
        padding: 10px 20px; /* Reduced header padding */
    }
    .nav-bar {
        gap: 15px;
        flex-wrap: wrap; /* Allows navigation buttons to wrap */
        justify-content: center;
    }
    .nav-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }
    main {
        margin: 20px auto;
        padding: 0 15px; /* Adjust main padding */
        max-width: 95%; /* Allows content to take up more width */
        gap: 60px; /* Reduced gap between sections */
    }
    .content-section {
        padding: 30px;
        min-height: 350px; /* Adjust min-height for smaller screens */
    }
    section h1, section h2, section h3 {
        font-size: 1.8rem;
    }
    section p, section ul {
        font-size: 1rem;
    }
    #profession-text {
        font-size: 1.5rem; /* Adjust for smaller screens */
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .cards-container,
    .projectCards-container {
        grid-template-columns: 1fr; /* Changes to single column for small screens */
        gap: 20px;
        padding: 0;
    }
    .card, .projectCard {
        padding: 15px;
        text-align: center;
    }
    .card img {
        height: 150px;
    }
    .projectCard img, .project-video-preview {
        height: 150px;
    }
    .edu-icon {
        width: 100px;
        height: 100px;
    }
    .edu-degree {
        font-size: 0.85rem;
    }
    .chessboard {
        /* Even smaller grid for mobile portrait - increased from 40px to 50px */
        grid-template-columns: repeat(8, min(50px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(50px, 12.5vw - 1px));
        max-width: 400px; /* Increased from 320px to 400px for phones */
    }
}

/* Extra small devices / Mobile phones (portrait) */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    .nav-bar {
        gap: 10px;
        justify-content: space-around; /* Distribute items evenly */
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    main {
        margin: 15px auto;
        padding: 0 10px;
        gap: 40px;
    }
    .content-section {
        padding: 20px;
        min-height: 300px;
    }
    section h1, section h2, section h3 {
        font-size: 1.5rem;
    }
    section p, section ul {
        font-size: 0.9rem;
    }
    #profession-text {
        font-size: 1.2rem;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .card, .projectCard {
        padding: 10px;
    }
    .card img, .projectCard img, .project-video-preview {
        height: 120px;
    }
    .card-title, .projectCard-title {
        font-size: 0.85rem;
    }
    .projectCard h5 {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .card-link, .projectCard-link {
        font-size: 0.85rem;
    }
    .edu-icon {
        width: 80px;
        height: 80px;
    }
    .chessboard {
        /* Minimum size for chessboard squares - increased from 30px to 40px */
        grid-template-columns: repeat(8, min(40px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(40px, 12.5vw - 1px));
        max-width: 320px; /* Increased from 240px to 320px */
    }
    .square img {
        width: 60%; /* Adjust piece size */
        height: 60%;
    }
}

.cursor-particle {
    pointer-events: none; /* Crucial: ensures particles don't block clicks */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* Smooth transitions */
}

/* --- Hero/Landing Section Styles --- */
.hero-section {
    margin: 0 0 60px 0; /* Extra bottom margin for hero section */
    min-height: 100vh; /* Full viewport height */
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: url('../images/projectImgs/nighthome.jpg') center center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.greeting-text {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #d97706 50%, #92400e 75%, #78350f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  animation: slideInUp 1s ease-out 0.5s both;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-subtitle-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInUp 1s ease-out 0.7s both;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 600px;
}

.hero-description p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.9s both;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.hero-btn.primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.hero-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.hero-btn.secondary-btn {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #64748b;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.hero-btn.secondary-btn:hover {
  background: rgba(100, 116, 139, 0.1);
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.3);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 1.1s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.stat-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-link:hover::before {
  left: 100%;
}

.stat-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.stat-link:hover .stat-number {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.stat-link:hover .stat-label {
  color: #fbbf24;
}

body.light-mode .stat-link:hover {
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

body.light-mode .stat-link:hover .stat-number {
  color: #d97706;
}

body.light-mode .stat-link:hover .stat-label {
  color: #f59e0b;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInScale 1.2s ease-out 0.8s both;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fbbf24;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.4);
  background: #1e293b;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 80px rgba(251, 191, 36, 0.6);
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  animation: fadeIn 1s ease-out 1.5s both;
  z-index: 3;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #94a3b8, transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* About Section Styles */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.about-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.about-title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-main-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profile-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile-image-border {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.profile-image-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.2;
}

.profile-title {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Professional Contact Info */
.profile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1rem;
}

.contact-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #93c5fd;
}

.contact-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.social-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #1e293b;
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -50px;
}

/* Professional Achievements */
.professional-achievements {
  margin-top: 1.5rem;
}

.achievements-title {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.achievement-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

.achievement-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

.about-text-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

/* Professional Introduction */
.professional-intro {
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

.about-intro strong {
  color: #fbbf24;
  font-weight: 600;
}

/* Core Competencies */
.core-competencies {
  margin-bottom: 1rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.competency-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.competency-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.competency-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.competency-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.competency-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Experience Highlights */
.experience-highlights {
  margin-bottom: 1rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.highlight-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.highlight-marker {
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  position: relative;
}

.highlight-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.highlight-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.highlight-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action */
.about-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.about-cta-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
}

.about-cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Light Mode Styles */
body.light-mode .about-subtitle {
  color: #64748b;
}

body.light-mode .contact-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .contact-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .contact-link {
  color: #2563eb;
}

body.light-mode .contact-link:hover {
  color: #1d4ed8;
}

body.light-mode .contact-text {
  color: #475569;
}

body.light-mode .achievement-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .achievement-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .achievement-label {
  color: #475569;
}

body.light-mode .competency-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .competency-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .competency-content h4 {
  color: #1e293b;
}

body.light-mode .competency-content p {
  color: #475569;
}

body.light-mode .highlight-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .highlight-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .highlight-content h4 {
  color: #1e293b;
}

body.light-mode .highlight-content p {
  color: #475569;
}

body.light-mode .about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  }

body.light-mode .about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.1);
}

body.light-mode .about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Responsive Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}


.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
.projectCard-title {
    font-weight: 700;
    font-size: 1.0rem;
    margin-bottom: 10px;
    color: #aac4ff;
    text-align: center;
}

.card-link,
.projectCard-link {
    color: #88aaff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes the link to the bottom of the flex container */
    position: relative; /* For underline animation */
    transition: color 0.25s ease;
}
/* Micro-interaction for links: animated underline */
.card-link::after,
.projectCard-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #f0f0f0; /* Color of the underline in dark mode */
    transition: width 0.3s ease;
}
.card-link:hover::after,
.projectCard-link:hover::after {
    width: 100%; /* Expands on hover */
}
body.light-mode .card-link::after,
body.light-mode .projectCard-link::after {
    background: #2193b0; /* Color of the underline in light mode */
}


.card-link:hover,
.projectCard-link:hover {
    color: #f0f0f0;
}

/* Styling for Project Description (h5 inside projectCard) */
.projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/*
* ========================================
* Education Section Specific
* ========================================
*/
.edu-icon {
    width: 150px; /* Increased width for better visibility */
    height: 150px; /* Increased height to give more room for the image */
    object-fit: contain; /* Ensures the entire image is visible, scaling down if necessary */
    margin-bottom: 12px;
    filter: drop-shadow(0 0 3px #88aaff); /* Subtle glow effect */
}

.edu-degree {
    font-weight: 500;
    font-size: 1.0rem;
    color: #c0d1ff;
    text-align: center;
    margin-top: 6px;
}

/*
* ========================================
* Skills Section Specific
* ========================================
*/
.skills-container {
    flex-grow: 1; /* Allows it to take up remaining space within skillSection */
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 1rem;
    display: flex;
    height: auto;
    max-height: 1200px;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

/*
* ========================================
* Chessboard Styling (Skills Section)
* ========================================
*/
.chessboard-container {
    /* CSS Variables for easy color adjustments */
    --light-square: #f0e9e0;
    --dark-square: #a0836f;
    --highlight-color: #ffbb33;
    --selected-color: #33aaff;
    --board-border: #5c4a3d;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.chessboard {
    display: grid;
    /* Responsive grid columns/rows, increased from min(60px, 12.5vw - 1px) to min(70px, 14vw - 1px) for larger squares */
    grid-template-columns: repeat(8, min(70px, 14vw - 1px));
    grid-template-rows: repeat(8, min(70px, 14vw - 1px));
    gap: 2px; /* Small gap between squares */
    background: var(--board-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 6px 15px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    user-select: none; /* Prevents text selection on pieces/squares */
    height: auto;
    width: auto;
    max-width: 700px; /* Increased from 600px to 700px for larger overall size */
}

.square {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Updated transitions for colorful dot effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.light {
    background-color: var(--light-square);
}

.dark {
    background-color: var(--dark-square);
}

.square img {
    width: 70%; /* Image size relative to square */
    height: 70%;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Prevents image from blocking click events on the square */
}

.square:hover {
    /* These properties are now largely overridden by .colorful-dot.active */
    box-shadow: 0 0 15px 4px rgba(51, 170, 255, 0.8), 0 0 8px 2px rgba(51, 170, 255, 0.6); /* Enhanced glow on hover */
    border-radius: 10px;
}
/* Micro-interaction for chessboard squares on click */
.square:active {
    transform: scale(0.95); /* Quick scale down on click */
    background-color: rgba(51, 170, 255, 0.3); /* Slight color change on press */
}

/* Highlight & Selection for Chessboard */
.highlight {
    background-color: var(--highlight-color);
    box-shadow: 0 0 20px 6px var(--highlight-color), 0 0 10px 3px rgba(255, 187, 51, 0.6);
}

.selected {
    background-color: var(--selected-color);
    box-shadow: 0 0 25px 8px var(--selected-color), 0 0 12px 4px rgba(51, 170, 255, 0.7);
}

/*
* ========================================
* Social Links
* ========================================
*/

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centered in the current layout */
    gap: 10px; /* Increased gap for better spacing */
    margin: 20px auto; /* Centered margin */
    width: 100%;
    max-width: 300px; /* A reasonable max-width */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.0); /* Ensure background is fully transparent */
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, border 0.3s ease-in-out, box-shadow 0.2s ease-out;
    border: none; /* Remove the border */
    box-shadow: none; /* Remove any default box-shadow */
}

.social-links a:hover {
    background: rgba(84, 13, 238, 0.5);
    transform: translateY(-3px) scale(1.1); /* Lift and slight scale */
    border-color: rgba(84, 13, 238, 0.8);
    box-shadow: 0 0 15px rgba(84, 13, 238, 0.7); /* Subtle glow on hover */
}
/* Micro-interaction for social links on click */
.social-links a:active {
    transform: scale(0.9); /* Quick scale down on click */
    box-shadow: 0 0 5px rgba(84, 13, 238, 0.9); /* More intense but smaller shadow on click */
    background: rgba(84, 13, 238, 0.7);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}


/*
* ========================================
* Animations
* ========================================
*/
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px 3px rgba(102, 153, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(102, 153, 255, 0.85);
    }
}

/* Typing animation cursor */
.typing-cursor {
    animation: blink-caret .75s step-end infinite; /* Blinking animation */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: currentColor; } /* Blinks with the current text color */
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Specific animation for the user name */
#user-name {
    display: inline-block; /* Crucial for applying transforms to inline text */
    opacity: 0; /* Start invisible */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 1s ease-out forwards; /* Custom animation for name */
    animation-delay: 0.2s; /* Delay the animation slightly after profile pic loads */
}


@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

.floating-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff; /* Will be overridden inline */
    opacity: 0.95;
    animation: floatUpDown 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1;
    filter: blur(0.3px);
    mix-blend-mode: screen;
}

/* Light mode adjustments for particles */
body.light-mode .floating-particle {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    mix-blend-mode: multiply;
}

/* Ensure particles are visible on all backgrounds */
.floating-particle {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Hide particles on hero/intro section */
.hero-section .floating-particle {
    display: none !important;
}

/* Chess tooltip styles */
#chess-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.light-mode #chess-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add some variety to particle sizes */
.floating-particle:nth-child(3n) {
    width: 16px;
    height: 16px;
}

.floating-particle:nth-child(5n) {
    width: 10px;
    height: 10px;
}

.floating-particle:nth-child(7n) {
    width: 18px;
    height: 18px;
}

@keyframes floatUpDown {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-30px) translateY(-40px) scale(1.1); 
        opacity: 1;
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
}

@keyframes magneticBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/*
* ========================================
* Responsiveness (Media Queries)
* ========================================
*/

/* Tablets and larger phones (landscape) */
@media (max-width: 992px) {
    .cards-container,
    .projectCards-container {
        grid-template-columns: repeat(2, 1fr); /* Changes to 2 columns */
    }
    .chessboard {
        /* Adjust column/row size for smaller screens - increased from 50px to 60px */
        grid-template-columns: repeat(8, min(60px, 13vw - 1px));
        grid-template-rows: repeat(8, min(60px, 13vw - 1px));
        max-width: 500px; /* Increased from 400px to 500px for tablets */
    }
}

/* Smaller tablets and large phones (portrait) */
@media (max-width: 768px) {
    header {
        padding: 10px 20px; /* Reduced header padding */
    }
    .nav-bar {
        gap: 15px;
        flex-wrap: wrap; /* Allows navigation buttons to wrap */
        justify-content: center;
    }
    .nav-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }
    main {
        margin: 20px auto;
        padding: 0 15px; /* Adjust main padding */
        max-width: 95%; /* Allows content to take up more width */
        gap: 60px; /* Reduced gap between sections */
    }
    .content-section {
        padding: 30px;
        min-height: 350px; /* Adjust min-height for smaller screens */
    }
    section h1, section h2, section h3 {
        font-size: 1.8rem;
    }
    section p, section ul {
        font-size: 1rem;
    }
    #profession-text {
        font-size: 1.5rem; /* Adjust for smaller screens */
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .cards-container,
    .projectCards-container {
        grid-template-columns: 1fr; /* Changes to single column for small screens */
        gap: 20px;
        padding: 0;
    }
    .card, .projectCard {
        padding: 15px;
        text-align: center;
    }
    .card img {
        height: 150px;
    }
    .projectCard img, .project-video-preview {
        height: 150px;
    }
    .edu-icon {
        width: 100px;
        height: 100px;
    }
    .edu-degree {
        font-size: 0.85rem;
    }
    .chessboard {
        /* Even smaller grid for mobile portrait - increased from 40px to 50px */
        grid-template-columns: repeat(8, min(50px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(50px, 12.5vw - 1px));
        max-width: 400px; /* Increased from 320px to 400px for phones */
    }
}

/* Extra small devices / Mobile phones (portrait) */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    .nav-bar {
        gap: 10px;
        justify-content: space-around; /* Distribute items evenly */
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    main {
        margin: 15px auto;
        padding: 0 10px;
        gap: 40px;
    }
    .content-section {
        padding: 20px;
        min-height: 300px;
    }
    section h1, section h2, section h3 {
        font-size: 1.5rem;
    }
    section p, section ul {
        font-size: 0.9rem;
    }
    #profession-text {
        font-size: 1.2rem;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .card, .projectCard {
        padding: 10px;
    }
    .card img, .projectCard img, .project-video-preview {
        height: 120px;
    }
    .card-title, .projectCard-title {
        font-size: 0.85rem;
    }
    .projectCard h5 {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .card-link, .projectCard-link {
        font-size: 0.85rem;
    }
    .edu-icon {
        width: 80px;
        height: 80px;
    }
    .chessboard {
        /* Minimum size for chessboard squares - increased from 30px to 40px */
        grid-template-columns: repeat(8, min(40px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(40px, 12.5vw - 1px));
        max-width: 320px; /* Increased from 240px to 320px */
    }
    .square img {
        width: 60%; /* Adjust piece size */
        height: 60%;
    }
}

.cursor-particle {
    pointer-events: none; /* Crucial: ensures particles don't block clicks */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* Smooth transitions */
}

/* --- Hero/Landing Section Styles --- */
.hero-section {
    margin: 0 0 60px 0; /* Extra bottom margin for hero section */
    min-height: 100vh; /* Full viewport height */
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: url('../images/projectImgs/nighthome.jpg') center center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.greeting-text {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #d97706 50%, #92400e 75%, #78350f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  animation: slideInUp 1s ease-out 0.5s both;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-subtitle-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInUp 1s ease-out 0.7s both;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 600px;
}

.hero-description p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.9s both;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.hero-btn.primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.hero-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.hero-btn.secondary-btn {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #64748b;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.hero-btn.secondary-btn:hover {
  background: rgba(100, 116, 139, 0.1);
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.3);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 1.1s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.stat-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-link:hover::before {
  left: 100%;
}

.stat-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.stat-link:hover .stat-number {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.stat-link:hover .stat-label {
  color: #fbbf24;
}

body.light-mode .stat-link:hover {
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

body.light-mode .stat-link:hover .stat-number {
  color: #d97706;
}

body.light-mode .stat-link:hover .stat-label {
  color: #f59e0b;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInScale 1.2s ease-out 0.8s both;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fbbf24;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.4);
  background: #1e293b;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 80px rgba(251, 191, 36, 0.6);
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  animation: fadeIn 1s ease-out 1.5s both;
  z-index: 3;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #94a3b8, transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* About Section Styles */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.about-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.about-title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-main-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profile-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile-image-border {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.profile-image-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.2;
}

.profile-title {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Professional Contact Info */
.profile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1rem;
}

.contact-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #93c5fd;
}

.contact-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.social-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #1e293b;
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -50px;
}

/* Professional Achievements */
.professional-achievements {
  margin-top: 1.5rem;
}

.achievements-title {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.achievement-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

.achievement-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

.about-text-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

/* Professional Introduction */
.professional-intro {
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

.about-intro strong {
  color: #fbbf24;
  font-weight: 600;
}

/* Core Competencies */
.core-competencies {
  margin-bottom: 1rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.competency-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.competency-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.competency-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.competency-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.competency-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Experience Highlights */
.experience-highlights {
  margin-bottom: 1rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.highlight-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.highlight-marker {
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  position: relative;
}

.highlight-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.highlight-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.highlight-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action */
.about-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.about-cta-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
}

.about-cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Light Mode Styles */
body.light-mode .about-subtitle {
  color: #64748b;
}

body.light-mode .contact-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .contact-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .contact-link {
  color: #2563eb;
}

body.light-mode .contact-link:hover {
  color: #1d4ed8;
}

body.light-mode .contact-text {
  color: #475569;
}

body.light-mode .achievement-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .achievement-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .achievement-label {
  color: #475569;
}

body.light-mode .competency-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .competency-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .competency-content h4 {
  color: #1e293b;
}

body.light-mode .competency-content p {
  color: #475569;
}

body.light-mode .highlight-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .highlight-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .highlight-content h4 {
  color: #1e293b;
}

body.light-mode .highlight-content p {
  color: #475569;
}

body.light-mode .about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  }

body.light-mode .about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.1);
}

body.light-mode .about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Responsive Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .projectCard, .nav-btn, .hero-btn, .btn, .cta-button {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize custom cursor */
#custom-cursor {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize floating preview */
#project-float-preview {
    will-change: transform, left, top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize magnetic effects */
.nav-btn, .hero-btn, #copyright-badge {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none !important;
}

body {
    color: #e0e0e0; /* Default text color for dark mode */
    background: #0f172a; /* Simple dark background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section, section, section p, section ul, .card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link {
    color: #fff;
    background: rgba(35, 41, 70, 0.3); /* Make more transparent to see particles */
}

body.light-mode .content-section,
body.light-mode section,
body.light-mode section p,
body.light-mode section ul,
body.light-mode .card,
body.light-mode .projectCard,
body.light-mode .card-title,
body.light-mode .projectCard-title,
body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #111;
    background: linear-gradient(135deg, #f2fcfe 0%, #e2eff5 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .card-link, .projectCard-link {
    color: #88aaff;
    transition: color 0.25s ease;
}

a:hover, .card-link:hover, .projectCard-link:hover {
    color: #f0f0f0;
}

.card, .projectCard, .card-title, .projectCard-title, .card-link, .projectCard-link, section p, section ul {
    background: transparent !important;
}
body.light-mode .card, body.light-mode .projectCard, body.light-mode .card-title, body.light-mode .projectCard-title, body.light-mode .card-link, body.light-mode .projectCard-link, body.light-mode section p, body.light-mode section ul {
    background: transparent !important;
}

.card, .projectCard {
    background: rgba(255, 255, 255, 0.07);
    height: auto;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d9ff;
    border: 2px solid transparent; /* Add border for glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.projectCard:hover {
    background: linear-gradient(135deg, rgba(86, 32, 203, 0.5), rgba(68, 123, 211, 0.5)) !important;
    box-shadow: 0 0 0 4px #a4508b55, 0 12px 30px rgba(164, 80, 139, 0.7);
    border-color: #a4508b;
}

body.light-mode .card,
body.light-mode .projectCard {
    border: 2px solid transparent;
}
body.light-mode .card:hover,
body.light-mode .projectCard:hover {
    background: linear-gradient(135deg, rgba(34, 131, 27, 0.5), rgba(12, 107, 14, 0.5)) !important;
    box-shadow: 0 0 0 4px #43e97b55, 0 12px 30px #38f9d744;
    border-color: linear-gradient(135deg,rgba(131, 55, 237, 0.5),rgba(38, 113, 234, 0.5));
}

.nav-bar, .nav-btn {
    background: none;
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0);
    color: #fff;
    box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    border-color: #2193b0;
    animation: navBtnGlow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes navBtnGlow {
    0% {
        box-shadow: 0 0 15px 4px #6dd5ed, 0 0 40px 8px #2193b055;
    }
    100% {
        box-shadow: 0 0 30px 10px #6dd5ed, 0 0 60px 16px #2193b077;
    }
}

.content-section h3 {
    font-size: 1.5rem; /* Consistent font size for section headings */
    margin-bottom: 15px; /* Space below headings */
    color: white; /* Light color for headings in dark mode */
    text-align: center; /* Centers the heading text */
}

/* Webkit (Chrome, Safari) specific scrollbar hiding */
html::-webkit-scrollbar {
    width: 0; /* Hides the vertical scrollbar */
    background: transparent;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/*
* ========================================
* Background Elements
* ========================================
*/
#background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gif {
    position: absolute;
    opacity: 1; /* Set to full opacity for visibility */
    transition: transform 0.1s linear; /* Fast transition for scroll transform */
    will-change: transform; /* Optimizes animations for performance */
    object-fit: cover; /* Ensures GIFs cover their area without distortion */
    border-radius: 8px; /* Slightly rounded corners for GIFs */
    background-color: transparent;
}

/*
* ========================================
* Theme Toggling
* ========================================
*/
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit; /* Inherits text color from its parent (body) */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Animation for toggle button */
}
#theme-toggle:focus {
    outline: none; /* Removes outline on focus for a cleaner look */
}
#theme-toggle:hover {
    opacity: 0.8; /* Slightly reduces opacity on hover */
    transform: scale(1.1) rotate(15deg); /* Slight enlarge and rotation effect on hover */
}
/* Click micro-interaction for theme toggle */
#theme-toggle:active {
    transform: scale(0.95) rotate(-15deg); /* Quick scale down and reverse rotation on click */
    transition: transform 0.1s ease-out; /* Faster transition for click */
}


/*
* ========================================
* Light Mode Styles
* ========================================
*/
body.light-mode {
    background: linear-gradient(135deg, #f2fcfe, #e2eff5);
    color: #111;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.light-mode header {
    background: none;
    color: #333333;
    box-shadow: none;
}

body.light-mode footer {
    background-color: rgba(245, 245, 245, 0.9); /* Lighter footer background */
    border-top: 1px solid #e0e0e0; /* Subtle border for footer */
    color: #666666;
}

body.light-mode .nav-btn {
    background-color: #f0f0f0; /* Soft light grey for buttons */
    color: #111;
}

body.light-mode .nav-btn.active {
    background: linear-gradient(90deg, #6dd5ed, #2193b0); /* Vibrant blue gradient for active button */
    color: #111; /* White text on active button */
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.5); /* Stronger, more focused glow */
    border-color: #2193b0; /* Matching border color */
}

body.light-mode .nav-btn:hover:not(.active) {
    color: #2193b0; /* More vibrant blue on hover */
    border-color: #2193b0;
    background-color: #e8f5fb; /* Slightly lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
}

body.light-mode .content-section {
    background: rgba(242, 252, 254, 0.8);
}

body.light-mode .content-section h1,
body.light-mode .content-section h2,
body.light-mode .content-section h3 {
    color: black; /* A slightly deeper, more professional blue for headings */
}

body.light-mode .content-section p,
body.light-mode .content-section ul,
body.light-mode .content-section h5 {
    color: #444444; /* Slightly darker text for paragraphs and lists */
}

body.light-mode .card,
body.light-mode .projectCard {
    background: rgba(248, 248, 248, 0.95); /* Very light, nearly white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Subtle, light shadow */
    /* Hover states for .card and .projectCard are now primarily handled by .colorful-dot.active */
}


body.light-mode .card-title,
body.light-mode .projectCard-title {
    color: #333333; /* Darker title */
}

body.light-mode .card-link,
body.light-mode .projectCard-link {
    color: #2193b0; /* Vibrant blue links */
}

body.light-mode .projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* For the colorful dot effect in light mode */
body.light-mode .colorful-dot.active {
    box-shadow: 0 0 20px 5px var(--dot-color, #ff00ff); /* Use a light mode specific color for the glow */
}

/*
* ========================================
* Layout: Header, Main, Footer
* ========================================
*/
header {
    background: none;
    box-shadow: none;
    padding: 15px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

footer {
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
    background-color: rgba(20, 30, 40, 0.8); /* Matches header background style */
    border-top: 1px solid #444; /* Adds a subtle top border */
    margin-top: auto; /* Pushes the footer to the bottom of the page in a flex column layout */
}

main {
    flex: 1; /* Allows main content to take up all available vertical space between header and footer */
    width: 100%; /* Occupies full width of its parent */
    max-width: 1200px; /* Maximum width for the content area */
    margin: 40px auto; /* Centers the main content horizontally with vertical spacing */
    padding: 0 20px; /* Horizontal padding to prevent content from touching screen edges */
    display: flex;
    flex-direction: column; /* Stacks individual content sections vertically */
    gap: 80px; /* Vertical space between different content sections */
    box-sizing: border-box; /* Includes padding in the element's total width/height */
}

/*
* ========================================
* Navigation Bar
* ========================================
*/
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
    background: linear-gradient(90deg, #232946 0%, #1a2539 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px #23294644;
    padding: 0.5rem 0.7rem;
    align-items: center;
    margin: 0 auto 1.2rem auto;
    width: fit-content;
    max-width: 94vw;
}

.nav-btn {
    background: #fff;
    border: 2px solid #334dff;
    padding: 16px 32px;
    font-size: 1.22rem;
    color: #111;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    box-shadow: 0 2px 8px #334dff11;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 5px 15px #334dff44;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #334dff, #6dd5ed);
    border-color: #334dff;
    box-shadow: 0 0 16px #334dff77;
    transform: scale(1.07);
}

.nav-btn:active {
    transform: scale(0.93);
    background: linear-gradient(90deg, #6dd5ed 60%, #334dff 100%);
    box-shadow: 0 2px 8px #334dff33;
    transition: transform 0.12s cubic-bezier(.22,1,.36,1), background 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s cubic-bezier(.22,1,.36,1);
}

/*
* ========================================
* Content Sections
* ========================================
*/
.content-section {
    position: relative; /* Enables absolute positioning for children or pseudo-elements */
    z-index: 2; /* Ensures content is above floating particles and background layers */
    min-height: 400px; /* Minimum height for each section to ensure scrollability and visual presence */
    padding: 50px; /* Consistent internal padding for all sections */
    margin: 40px 0; /* Add vertical spacing between sections */
    border-radius: 20px; /* Rounded corners for sections */
    box-sizing: border-box;
    background: rgba(25, 25, 55, 0.6); /* Semi-transparent dark background for sections */
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); /* Consistent shadow for depth */
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out, opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transitions for theme changes and scroll-in */
    opacity: 0; /* Initial state for scroll-in animation */
    transform: translateY(20px); /* Initial state for scroll-in animation */
}

/* When the section is in view, apply the animation */
.content-section.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* General Section Headings and Text */
section h1,
section h2,
section h3 {
    font-size: 2.2rem; /* Consistent large font size for main headings */
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    color: #88aaff; /* Light blue heading color */
    text-align: center;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; /* Added transition for text-shadow */
}
/* Micro-interaction for section headings on hover */
section h1:hover,
section h2:hover,
section h3:hover {
    text-shadow: 0 0 15px rgba(136, 170, 255, 0.7); /* Subtle glow on hover */
}

section p,
section ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfd8ff; /* Light text color */
}

ul {
    list-style-type: square; /* Square bullet points for lists */
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/*
* ========================================
* About Section Specific
* ========================================
*/
#about-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

#projects-section, #skills-section, #education-section, #awards-section, #gitrch-section {
    min-height: 500px;
    padding: 60px 0 60px 0;
    margin: 60px 0; /* Extra spacing for projects section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/moon.avif'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 1 !important;
    border-radius: 20px; /* Matches the section's border-radius */
}
#skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/island.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body:not(.light-mode) #skills-section::before {
    background-image: url('../images/projectImgs/nightIsland2.jpg');
}


#education-section {
    background: none;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
}
#education-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/projectImgs/nightViewUni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
}
body.light-mode #education-section::before {
    background-image: url('../images/staticImgs/uni.avif');
    opacity: 1;
}
#education-section h2 {
    color: #eaf6ff;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}
.edu-degree {
    color: #eaf6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.edu-gpa {
    color: #ffd86b;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}
body.light-mode #education-section h2 {
    color: #1a2a3a;
}
body.light-mode .edu-degree {
    color: #1a2a3a;
}
body.light-mode .edu-gpa {
    color: #b8860b;
}

#awards-section {
    margin: 60px 0; /* Extra spacing for awards section */
}
#awards-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/staticImgs/getintouch.jpg'); /* Your specified background GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Places the pseudo-element behind the main content of the section */
    opacity: 0.2; /* Makes the background subtle */
    border-radius: 20px; /* Matches the section's border-radius */
}

#gitrch-section {
    margin: 60px 0 40px 0; /* Extra spacing for contact section, less bottom margin */
    position: relative;
}
#gitrch-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1 !important;
    border-radius: 20px;
    pointer-events: none;
}
body:not(.light-mode) #gitrch-section::before {
    background-image: url('../images/projectImgs/nightmountain.jpg');
}

body.light-mode #gitrch-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/staticImgs/samurai-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1 !important;
  border-radius: 20px;
}

body.light-mode .dennis-intro-section {
    background: none !important;
}
.dennis-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
body.light-mode .dennis-intro-section::before {
    /* background: none !important; */
    background-image: url('../images/staticImgs/imageSelfCartoon.jpeg') !important;
    opacity: 1 !important;
}

.profile-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: block;
    box-shadow: 0 4px 24px 0 #1e40af33;
    border: 4px solid #fff;
    background: #fff;
    position: relative;
    top: 0;
}
@media (max-width: 600px) {
    .profile-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
}

#profession-text {
    font-family: 'Montserrat', sans-serif; /* Changed font: Montserrat is a popular, modern choice */
    font-size: 1.8rem; /* Increased size */
    font-weight: 700; /* Made it bolder for prominence */
    letter-spacing: 0.05em; /* Added slight letter spacing */
    text-transform: uppercase; /* Made uppercase for stronger visual impact */
    color: rgba(255,255,255,100); /* Default (Dark Mode) color */
    transition: color 0.5s ease-in-out, font-size 0.3s ease; /* Smooth transition for color */
}

body.light-mode #profession-text {
    color: rgba(0, 0, 0,100); /* Vibrant blue for light mode */
}

/* Ensure the typing cursor also changes color with the theme */
.typing-cursor {
    color: #e0e0e0; /* Default (Dark Mode) cursor color */
    transition: color 0.5s ease-in-out;
}

body.light-mode .typing-cursor {
    color: #333333; /* Light Mode cursor color to match text */
}

/*
* ========================================
* Card & Project Card Styling
* ========================================
*/
.cards-container,
.projectCards-container { /* Applies styles to both general cards and project-specific cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid by default */
    gap: 30px; /* Space between grid items (cards) */
    padding: 0 10px;
    margin: 20px auto; /* Centers the card grid within its parent section */
    width: 100%; /* Takes full width of parent section */
    max-width: 1100px; /* Maximum width for the card grid */
    box-sizing: border-box;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain; /* Ensures the full image fits without cropping */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
    background-color: #0f172a; /* Optional: to match the card background if image doesn't fill space */
}


.projectCard img { /* Specific height for project cards images/previews */
    width: 100%;
    height: 220px; /* Increased height for project card images/videos for more prominence */
    object-fit: fill;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

/* Style for the YouTube video preview iframe */
.project-video-preview {
    width: 100%;
    height: 220px; /* Match the increased height of .projectCard img */
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.6);
}

.card-title,
.projectCard-title {
    font-weight: 700;
    font-size: 1.0rem;
    margin-bottom: 10px;
    color: #aac4ff;
    text-align: center;
}

.card-link,
.projectCard-link {
    color: #88aaff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes the link to the bottom of the flex container */
    position: relative; /* For underline animation */
    transition: color 0.25s ease;
}
/* Micro-interaction for links: animated underline */
.card-link::after,
.projectCard-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #f0f0f0; /* Color of the underline in dark mode */
    transition: width 0.3s ease;
}
.card-link:hover::after,
.projectCard-link:hover::after {
    width: 100%; /* Expands on hover */
}
body.light-mode .card-link::after,
body.light-mode .projectCard-link::after {
    background: #2193b0; /* Color of the underline in light mode */
}


.card-link:hover,
.projectCard-link:hover {
    color: #f0f0f0;
}

/* Styling for Project Description (h5 inside projectCard) */
.projectCard h5 {
    background: linear-gradient(135deg, #4a70a3, #2f548a); /* Soft gradient background */
    padding: 10px 15px; /* Increased padding */
    border-radius: 10px; /* More rounded corners */
    font-size: 0.95rem; /* Slightly larger font */
    margin-top: 15px; /* More space from the title above */
    margin-bottom: 15px; /* More space from the link below */
    color: #e6f0ff; /* Lighter text for better contrast on gradient */
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/*
* ========================================
* Education Section Specific
* ========================================
*/
.edu-icon {
    width: 150px; /* Increased width for better visibility */
    height: 150px; /* Increased height to give more room for the image */
    object-fit: contain; /* Ensures the entire image is visible, scaling down if necessary */
    margin-bottom: 12px;
    filter: drop-shadow(0 0 3px #88aaff); /* Subtle glow effect */
}

.edu-degree {
    font-weight: 500;
    font-size: 1.0rem;
    color: #c0d1ff;
    text-align: center;
    margin-top: 6px;
}

/*
* ========================================
* Skills Section Specific
* ========================================
*/
.skills-container {
    flex-grow: 1; /* Allows it to take up remaining space within skillSection */
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 1rem;
    display: flex;
    height: auto;
    max-height: 1200px;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

/*
* ========================================
* Chessboard Styling (Skills Section)
* ========================================
*/
.chessboard-container {
    /* CSS Variables for easy color adjustments */
    --light-square: #f0e9e0;
    --dark-square: #a0836f;
    --highlight-color: #ffbb33;
    --selected-color: #33aaff;
    --board-border: #5c4a3d;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.chessboard {
    display: grid;
    /* Responsive grid columns/rows, increased from min(60px, 12.5vw - 1px) to min(70px, 14vw - 1px) for larger squares */
    grid-template-columns: repeat(8, min(70px, 14vw - 1px));
    grid-template-rows: repeat(8, min(70px, 14vw - 1px));
    gap: 2px; /* Small gap between squares */
    background: var(--board-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 6px 15px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    user-select: none; /* Prevents text selection on pieces/squares */
    height: auto;
    width: auto;
    max-width: 700px; /* Increased from 600px to 700px for larger overall size */
}

.square {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Updated transitions for colorful dot effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.light {
    background-color: var(--light-square);
}

.dark {
    background-color: var(--dark-square);
}

.square img {
    width: 70%; /* Image size relative to square */
    height: 70%;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Prevents image from blocking click events on the square */
}

.square:hover {
    /* These properties are now largely overridden by .colorful-dot.active */
    box-shadow: 0 0 15px 4px rgba(51, 170, 255, 0.8), 0 0 8px 2px rgba(51, 170, 255, 0.6); /* Enhanced glow on hover */
    border-radius: 10px;
}
/* Micro-interaction for chessboard squares on click */
.square:active {
    transform: scale(0.95); /* Quick scale down on click */
    background-color: rgba(51, 170, 255, 0.3); /* Slight color change on press */
}

/* Highlight & Selection for Chessboard */
.highlight {
    background-color: var(--highlight-color);
    box-shadow: 0 0 20px 6px var(--highlight-color), 0 0 10px 3px rgba(255, 187, 51, 0.6);
}

.selected {
    background-color: var(--selected-color);
    box-shadow: 0 0 25px 8px var(--selected-color), 0 0 12px 4px rgba(51, 170, 255, 0.7);
}

/*
* ========================================
* Social Links
* ========================================
*/

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centered in the current layout */
    gap: 10px; /* Increased gap for better spacing */
    margin: 20px auto; /* Centered margin */
    width: 100%;
    max-width: 300px; /* A reasonable max-width */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.0); /* Ensure background is fully transparent */
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, border 0.3s ease-in-out, box-shadow 0.2s ease-out;
    border: none; /* Remove the border */
    box-shadow: none; /* Remove any default box-shadow */
}

.social-links a:hover {
    background: rgba(84, 13, 238, 0.5);
    transform: translateY(-3px) scale(1.1); /* Lift and slight scale */
    border-color: rgba(84, 13, 238, 0.8);
    box-shadow: 0 0 15px rgba(84, 13, 238, 0.7); /* Subtle glow on hover */
}
/* Micro-interaction for social links on click */
.social-links a:active {
    transform: scale(0.9); /* Quick scale down on click */
    box-shadow: 0 0 5px rgba(84, 13, 238, 0.9); /* More intense but smaller shadow on click */
    background: rgba(84, 13, 238, 0.7);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}


/*
* ========================================
* Animations
* ========================================
*/
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px 3px rgba(102, 153, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(102, 153, 255, 0.85);
    }
}

/* Typing animation cursor */
.typing-cursor {
    animation: blink-caret .75s step-end infinite; /* Blinking animation */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: currentColor; } /* Blinks with the current text color */
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Specific animation for the user name */
#user-name {
    display: inline-block; /* Crucial for applying transforms to inline text */
    opacity: 0; /* Start invisible */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 1s ease-out forwards; /* Custom animation for name */
    animation-delay: 0.2s; /* Delay the animation slightly after profile pic loads */
}


@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

.floating-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff; /* Will be overridden inline */
    opacity: 0.95;
    animation: floatUpDown 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1;
    filter: blur(0.3px);
    mix-blend-mode: screen;
}

/* Light mode adjustments for particles */
body.light-mode .floating-particle {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    mix-blend-mode: multiply;
}

/* Ensure particles are visible on all backgrounds */
.floating-particle {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Hide particles on hero/intro section */
.hero-section .floating-particle {
    display: none !important;
}

/* Chess tooltip styles */
#chess-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.light-mode #chess-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add some variety to particle sizes */
.floating-particle:nth-child(3n) {
    width: 16px;
    height: 16px;
}

.floating-particle:nth-child(5n) {
    width: 10px;
    height: 10px;
}

.floating-particle:nth-child(7n) {
    width: 18px;
    height: 18px;
}

@keyframes floatUpDown {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-30px) translateY(-40px) scale(1.1); 
        opacity: 1;
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.9;
    }
}

@keyframes magneticBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/*
* ========================================
* Responsiveness (Media Queries)
* ========================================
*/

/* Tablets and larger phones (landscape) */
@media (max-width: 992px) {
    .cards-container,
    .projectCards-container {
        grid-template-columns: repeat(2, 1fr); /* Changes to 2 columns */
    }
    .chessboard {
        /* Adjust column/row size for smaller screens - increased from 50px to 60px */
        grid-template-columns: repeat(8, min(60px, 13vw - 1px));
        grid-template-rows: repeat(8, min(60px, 13vw - 1px));
        max-width: 500px; /* Increased from 400px to 500px for tablets */
    }
}

/* Smaller tablets and large phones (portrait) */
@media (max-width: 768px) {
    header {
        padding: 10px 20px; /* Reduced header padding */
    }
    .nav-bar {
        gap: 15px;
        flex-wrap: wrap; /* Allows navigation buttons to wrap */
        justify-content: center;
    }
    .nav-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }
    main {
        margin: 20px auto;
        padding: 0 15px; /* Adjust main padding */
        max-width: 95%; /* Allows content to take up more width */
        gap: 60px; /* Reduced gap between sections */
    }
    .content-section {
        padding: 30px;
        min-height: 350px; /* Adjust min-height for smaller screens */
    }
    section h1, section h2, section h3 {
        font-size: 1.8rem;
    }
    section p, section ul {
        font-size: 1rem;
    }
    #profession-text {
        font-size: 1.5rem; /* Adjust for smaller screens */
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .cards-container,
    .projectCards-container {
        grid-template-columns: 1fr; /* Changes to single column for small screens */
        gap: 20px;
        padding: 0;
    }
    .card, .projectCard {
        padding: 15px;
        text-align: center;
    }
    .card img {
        height: 150px;
    }
    .projectCard img, .project-video-preview {
        height: 150px;
    }
    .edu-icon {
        width: 100px;
        height: 100px;
    }
    .edu-degree {
        font-size: 0.85rem;
    }
    .chessboard {
        /* Even smaller grid for mobile portrait - increased from 40px to 50px */
        grid-template-columns: repeat(8, min(50px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(50px, 12.5vw - 1px));
        max-width: 400px; /* Increased from 320px to 400px for phones */
    }
}

/* Extra small devices / Mobile phones (portrait) */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    .nav-bar {
        gap: 10px;
        justify-content: space-around; /* Distribute items evenly */
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    main {
        margin: 15px auto;
        padding: 0 10px;
        gap: 40px;
    }
    .content-section {
        padding: 20px;
        min-height: 300px;
    }
    section h1, section h2, section h3 {
        font-size: 1.5rem;
    }
    section p, section ul {
        font-size: 0.9rem;
    }
    #profession-text {
        font-size: 1.2rem;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .card, .projectCard {
        padding: 10px;
    }
    .card img, .projectCard img, .project-video-preview {
        height: 120px;
    }
    .card-title, .projectCard-title {
        font-size: 0.85rem;
    }
    .projectCard h5 {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .card-link, .projectCard-link {
        font-size: 0.85rem;
    }
    .edu-icon {
        width: 80px;
        height: 80px;
    }
    .chessboard {
        /* Minimum size for chessboard squares - increased from 30px to 40px */
        grid-template-columns: repeat(8, min(40px, 12.5vw - 1px));
        grid-template-rows: repeat(8, min(40px, 12.5vw - 1px));
        max-width: 320px; /* Increased from 240px to 320px */
    }
    .square img {
        width: 60%; /* Adjust piece size */
        height: 60%;
    }
}

.cursor-particle {
    pointer-events: none; /* Crucial: ensures particles don't block clicks */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* Smooth transitions */
}

/* --- Hero/Landing Section Styles --- */
.hero-section {
    margin: 0 0 60px 0; /* Extra bottom margin for hero section */
    min-height: 100vh; /* Full viewport height */
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: url('../images/projectImgs/nighthome.jpg') center center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.greeting-text {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #d97706 50%, #92400e 75%, #78350f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  animation: slideInUp 1s ease-out 0.5s both;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-subtitle-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInUp 1s ease-out 0.7s both;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 600px;
}

.hero-description p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.9s both;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.hero-btn.primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.hero-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.hero-btn.secondary-btn {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #64748b;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.hero-btn.secondary-btn:hover {
  background: rgba(100, 116, 139, 0.1);
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.3);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 1.1s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.stat-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-link:hover::before {
  left: 100%;
}

.stat-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.stat-link:hover .stat-number {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.stat-link:hover .stat-label {
  color: #fbbf24;
}

body.light-mode .stat-link:hover {
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

body.light-mode .stat-link:hover .stat-number {
  color: #d97706;
}

body.light-mode .stat-link:hover .stat-label {
  color: #f59e0b;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInScale 1.2s ease-out 0.8s both;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fbbf24;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.4);
  background: #1e293b;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 80px rgba(251, 191, 36, 0.6);
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  animation: fadeIn 1s ease-out 1.5s both;
  z-index: 3;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #94a3b8, transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* About Section Styles */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.about-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.about-title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-main-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profile-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile-image-border {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.profile-image-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 1;
}

.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.2;
}

.profile-title {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Professional Contact Info */
.profile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1rem;
}

.contact-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #93c5fd;
}

.contact-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.social-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #1e293b;
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -50px;
}

/* Professional Achievements */
.professional-achievements {
  margin-top: 1.5rem;
}

.achievements-title {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.achievement-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

.achievement-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

.about-text-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

/* Professional Introduction */
.professional-intro {
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

.about-intro strong {
  color: #fbbf24;
  font-weight: 600;
}

/* Core Competencies */
.core-competencies {
  margin-bottom: 1rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.competency-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.competency-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.competency-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.competency-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.competency-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Experience Highlights */
.experience-highlights {
  margin-bottom: 1rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.highlight-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.highlight-marker {
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  position: relative;
}

.highlight-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.highlight-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.highlight-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action */
.about-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.about-cta-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
}

.about-cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Light Mode Styles */
body.light-mode .about-subtitle {
  color: #64748b;
}

body.light-mode .contact-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .contact-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .contact-link {
  color: #2563eb;
}

body.light-mode .contact-link:hover {
  color: #1d4ed8;
}

body.light-mode .contact-text {
  color: #475569;
}

body.light-mode .achievement-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .achievement-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .achievement-label {
  color: #475569;
}

body.light-mode .competency-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .competency-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .competency-content h4 {
  color: #1e293b;
}

body.light-mode .competency-content p {
  color: #475569;
}

body.light-mode .highlight-item {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  }

body.light-mode .highlight-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .highlight-content h4 {
  color: #1e293b;
}

body.light-mode .highlight-content p {
  color: #475569;
}

body.light-mode .about-cta-btn.secondary {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .about-cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  }

body.light-mode .about-cta-btn.tertiary {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.1);
}

body.light-mode .about-cta-btn.tertiary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-profile-section {
    order: 1;
  }
  
  .about-text-section {
    order: 2;
  }
  
  .competencies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-content {
    padding: 3rem 1.5rem;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .about-subtitle {
    font-size: 1.1rem;
  }
  
  .profile-pic {
    width: 200px;
    height: 200px;
  }
  
  .profile-image-border {
    width: 230px;
    height: 230px;
  }
  
  .profile-image-glow {
    width: 250px;
    height: 250px;
  }
  
  .profile-name {
    font-size: 1.6rem;
  }
  
  .section-heading {
    font-size: 1.3rem;
  }
  
  .about-intro {
    font-size: 1rem;
  }
  
  .competency-item,
  .highlight-item {
    padding: 1.2rem;
  }
  
  .about-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .about-cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 2rem 1rem;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .about-subtitle {
    font-size: 1rem;
  }
  
  .profile-pic {
    width: 180px;
    height: 180px;
  }
  
  .profile-image-border {
    width: 210px;
    height: 210px;
  }
  
  .profile-image-glow {
    width: 230px;
    height: 230px;
  }
  
  .profile-name {
    font-size: 1.4rem;
  }
  
  .profile-title {
    font-size: 1rem;
  }
  
  .contact-item {
    padding: 0.4rem;
  }
  
  .contact-link,
  .contact-text {
    font-size: 0.8rem;
  }
  
  .achievement-item {
    padding: 0.8rem;
  }
  
  .achievement-number {
    font-size: 1.1rem;
  }
  
  .achievement-label {
    font-size: 0.8rem;
  }
  
  .section-heading {
    font-size: 1.2rem;
  }
  
  .about-intro {
    font-size: 0.95rem;
  }
  
  .competency-item,
  .highlight-item {
    padding: 1rem;
  }
  
  .competency-icon {
    font-size: 1.5rem;
  }
  
  .competency-content h4 {
    font-size: 1rem;
  }
  
  .competency-content p {
    font-size: 0.85rem;
  }
  
  .highlight-content h4 {
    font-size: 1rem;
  }
  
  .highlight-content p {
    font-size: 0.85rem;
  }
  
  .about-cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Light Mode Styles */
body.light-mode .hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

body.light-mode .hero-overlay {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.8) 50%, rgba(203, 213, 225, 0.7) 100%);
}

body.light-mode .greeting-text {
  color: #64748b;
}

body.light-mode .hero-title {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #60a5fa 50%, #93c5fd 75%, #dbeafe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .hero-subtitle {
  color: #334155;
}

body.light-mode .hero-description p {
  color: #475569;
}

body.light-mode .stat-number {
  color: #1e40af;
}

body.light-mode .stat-label {
  color: #64748b;
}

body.light-mode .hero-logo {
  border-color: #1e40af;
  background: #f8fafc;
}

body.light-mode .hero-logo-glow {
  background: radial-gradient(circle, rgba(30, 64, 175, 0.2) 0%, transparent 70%);
}

body.light-mode .scroll-text {
  color: #64748b;
}

body.light-mode .scroll-arrow {
  background: linear-gradient(to bottom, #64748b, transparent);
}

body.light-mode .about-video-overlay {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.9) 100%);
}

body.light-mode .about-title {
  color: #1e40af;
}

body.light-mode .about-title-underline {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}

body.light-mode .profile-name {
  color: #1e293b;
}

body.light-mode .profile-title {
  color: #64748b;
}

body.light-mode .about-intro {
  color: #1e293b;
}

body.light-mode .about-intro strong {
  color: #1e40af;
}

body.light-mode .about-detail-item {
  background: rgba(30, 64, 175, 0.05);
  border-color: rgba(30, 64, 175, 0.1);
}

body.light-mode .about-detail-item:hover {
  background: rgba(30, 64, 175, 0.1);
  border-color: rgba(30, 64, 175, 0.2);
}

body.light-mode .detail-content h4 {
  color: #1e40af;
}

body.light-mode .detail-content p {
  color: #475569;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
}
  
  .about-main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-profile-section {
    order: 1;
  }
  
  .about-text-section {
    order: 2;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-main-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-profile-section {
    order: 1;
  }

  .about-text-section {
    order: 2;
  }

  /* Responsive spacing for mobile */
  .content-section {
    margin: 30px 0; /* Reduced spacing on mobile */
    padding: 30px 20px; /* Reduced padding on mobile */
  }

  .hero-section {
    margin: 0 0 40px 0; /* Reduced bottom margin on mobile */
  }

  #about-section,
  #projects-section,
  #skills-section,
  #education-section,
  #awards-section,
  #gitrch-section {
    margin: 40px 0; /* Reduced spacing on mobile */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .hero-logo {
    width: 120px;
    height: 120px;
  }
  
  .hero-logo-glow {
    width: 160px;
    height: 160px;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
  }
  
  .profile-image-border {
    width: 180px;
    height: 180px;
  }
  
  .profile-image-glow {
    width: 200px;
    height: 200px;
}
  
  .profile-name {
  font-size: 1.5rem;
  }
  
  .profile-title {
    font-size: 1.1rem;
  }
  
  .about-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* Essential Content Section Styles */
.content-section {
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
}

.content-section[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

.content-section:not([style*="display: none"]) {
  opacity: 1;
  pointer-events: auto;
}

/* Loader Overlay Styles */
#loader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #101010;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.77,0,0.18,1);
}

.loader-content {
  text-align: center;
}

.loader-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 3.5em;
}

.loader-greeting {
  display: none;
  font-size: 2.2rem;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: #fff;
  position: relative;
  animation: fadeInGreeting 0.5s;
}

.loader-greeting.active {
  display: inline-flex;
  animation: fadeInGreeting 0.5s;
}

.loader-greeting .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: #00c3ff;
  border-radius: 50%;
  margin-left: 0.4em;
  animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

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

.loader-bar {
  width: 120px;
  height: 6px;
  background: #fff;
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00c3ff, #ffff1c);
  border-radius: 3px;
  animation: loader-bar-anim 1.2s cubic-bezier(0.77,0,0.18,1) forwards;
}

@keyframes loader-bar-anim {
  to { width: 100%; }
}

#loader-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* Custom Animated Cursor */
#custom-cursor {
  border: 2px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
  will-change: transform, left, top, border-color;
  z-index: 20000;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Magnetic Button Enhancement */
.nav-btn, .hero-btn {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s cubic-bezier(.22,1,.36,1), transform 0.2s cubic-bezier(.22,1,.36,1);
}

.nav-btn:hover, .hero-btn:hover {
  box-shadow: 0 4px 24px 0 rgba(0,195,255,0.18);
  transform: scale(1.04);
}

/* Floating Project Preview Styles */
#project-float-preview {
  position: fixed;
  pointer-events: none;
  z-index: 12000;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s cubic-bezier(.22,1,.36,1);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

#project-float-preview.active {
  opacity: 1;
}

#project-float-img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.22);
  background: #222;
  margin-bottom: 0.7em;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
}

#project-float-preview.active #project-float-img {
  transform: scale(1.18);
}

#project-float-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  background: rgba(0,0,0,0.7);
  padding: 0.2em 0.8em;
  border-radius: 6px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  #project-float-preview, #project-float-img { display: none !important; }
}

#copyright-badge {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 12000;
  display: flex;
  align-items: center;
  background: rgba(30, 34, 44, 0.97);
  border-radius: 24px;
  box-shadow: 0 2px 12px #0003;
  padding: 6px 18px 6px 8px;
  gap: 10px;
  font-size: 1.08rem;
  color: #f4f4f4;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

#copyright-badge:hover {
  background: #334dff;
  color: #fff;
  box-shadow: 0 4px 24px #334dff55;
}

#copyright-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent !important;
  border: 2px solid #334dff;
  box-shadow: 0 2px 8px #334dff33;
}

#copyright-badge-fullname {
  display: none;
  font-size: 1.08rem;
  color: #fff;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

#copyright-badge:hover #copyright-badge-text {
  display: none;
}

#copyright-badge:hover #copyright-badge-fullname {
  display: inline;
}

@media (max-width: 600px) {
  #copyright-badge {
    top: auto !important;
    left: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    font-size: 0.85rem !important;
    padding: 4px 10px 4px 4px !important;
    gap: 6px !important;
    border-radius: 18px !important;
  }
  #copyright-badge-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

.cursor-see-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00e676;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px #000a;
}

.cursor-eye-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  font-size: 1.15rem !important;
}

/* Light Mode Button Styles */
body.light-mode .nav-btn,
body.light-mode .hero-btn {
    background: #fff !important;
    color: #111 !important;
    border-color: #334dff;
}

body.light-mode .nav-btn.active,
body.light-mode .nav-btn:hover,
body.light-mode .hero-btn:hover,
body.light-mode .hero-btn:active {
    background: linear-gradient(90deg, #334dff, #6dd5ed) !important;
    color: rgb(0,0,0) !important;
    border-color: #334dff;
}

/* Mobile Navigation Styles */
@media (max-width: 600px) {
  .nav-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 0.5rem 0.2rem !important;
    width: 100vw !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    scrollbar-width: none;
  }
  .nav-bar::-webkit-scrollbar {
    display: none;
  }
  .nav-btn {
    min-width: 110px !important;
    padding: 8px 8px !important;
    font-size: 0.95rem !important;
    border-radius: 28px !important;
    flex: 0 0 auto !important;
    margin: 0 2px !important;
    aspect-ratio: 2.8/1 !important;
  }
}

.nav-btn, .hero-btn {
  aspect-ratio: 2.8/1;
}

@media (max-width: 600px) {
  .content-section,
  section {
    width: 92vw !important;
    padding: 10px 1vw !important;
  }
  .card, .projectCard {
    width: 100% !important;
  }
  .profile-pic,
  .edu-icon,
  .projectCard img,
  .card img,
  #project-float-img {
    width: 80px !important;
    height: 80px !important;
    max-width: 100% !important;
    max-height: 80px !important;
  }
}

@media (max-width: 600px) {
  .chessboard-container {
    justify-content: center !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
  }
  .chessboard {
    margin: 0 auto !important;
    max-width: 280px !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/*
* ========================================
* Modern Footer Styles
* ========================================
*/
.modern-footer {
  background: linear-gradient(135deg, #1a2539 0%, #0f172a 100%);
  border-top: 1px solid rgba(102, 153, 255, 0.2);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6699ff, transparent);
  animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(102, 153, 255, 0.5);
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6699ff, #88aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-brand p {
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #6699ff, #88aaff);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links li a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links li a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #6699ff;
}

.footer-links li a:hover {
  color: #6699ff;
  padding-left: 15px;
}

.footer-links li a:hover::before {
  opacity: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #a0a0a0;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #6699ff;
}

.social-links-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(102, 153, 255, 0.1);
  border: 1px solid rgba(102, 153, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links-footer a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 153, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-links-footer a:hover::before {
  left: 100%;
}

.social-links-footer a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 153, 255, 0.3);
  border-color: #6699ff;
}

.social-links-footer img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-links-footer a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(102, 153, 255, 0.1);
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #6699ff;
}

.separator {
  color: #666;
  font-size: 0.8rem;
}

/* Light Mode Styles for Footer */
body.light-mode .modern-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(33, 147, 176, 0.2);
}

body.light-mode .modern-footer::before {
  background: linear-gradient(90deg, transparent, #2193b0, transparent);
}

body.light-mode .footer-brand h3 {
  background: linear-gradient(135deg, #2193b0, #6dd5ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .footer-brand p {
  color: #666;
}

body.light-mode .footer-section h4 {
  color: #333;
}

body.light-mode .footer-section h4::after {
  background: linear-gradient(90deg, #2193b0, #6dd5ed);
}

body.light-mode .footer-links li a {
  color: #666;
}

body.light-mode .footer-links li a:hover {
  color: #2193b0;
}

body.light-mode .footer-links li a::before {
  color: #2193b0;
}

body.light-mode .contact-item {
  color: #666;
}

body.light-mode .contact-item a {
  color: #666;
}

body.light-mode .contact-item a:hover {
  color: #2193b0;
}

body.light-mode .social-links-footer a {
  background: rgba(33, 147, 176, 0.1);
  border: 1px solid rgba(33, 147, 176, 0.2);
}

body.light-mode .social-links-footer a::before {
  background: linear-gradient(90deg, transparent, rgba(33, 147, 176, 0.2), transparent);
}

body.light-mode .social-links-footer a:hover {
  box-shadow: 0 8px 25px rgba(33, 147, 176, 0.3);
  border-color: #2193b0;
}

body.light-mode .footer-bottom {
  border-top: 1px solid rgba(33, 147, 176, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

body.light-mode .footer-bottom p {
  color: #666;
}

body.light-mode .footer-bottom-links a {
  color: #666;
}

body.light-mode .footer-bottom-links a:hover {
  color: #2193b0;
}

body.light-mode .separator {
  color: #999;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .social-links-footer {
    justify-content: center;
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .footer-section h4 {
    text-align: center;
  }
  
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 1.5rem 1rem 1rem;
  }
  
  .footer-bottom {
    padding: 1rem;
  }
  
  .footer-logo {
    width: 40px;
    height: 40px;
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .footer-brand p {
    font-size: 0.9rem;
  }
  
  .social-links-footer a {
    width: 40px;
    height: 40px;
  }
  
  .social-links-footer img {
    width: 20px;
    height: 20px;
  }
}

/*
* ========================================
* Scroll Animation Styles
* ========================================
*/

/* Character Animation for Text Reveals */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(-90deg);
  transition: all 0.3s ease;
}

.char.animated {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Title Underline Animation */
.title-underline {
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0;
  margin-top: 0.5rem;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Pinned Section Styles */
.pinned-section {
  position: relative;
  z-index: 10;
}

/* Parallax Elements */
.parallax-element {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Staggered Animation Container */
.staggered-container {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.staggered-container.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform-origin: left;
  z-index: 1000;
}

/* Enhanced Card Hover Effects for Scroll Animations */
.projectCard.scroll-animated {
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.projectCard.scroll-animated:hover {
  transform: perspective(1000px) rotateY(-10deg) translateZ(20px);
  box-shadow: 0 20px 40px rgba(102, 153, 255, 0.3);
}

/* Profile Image Scroll Effects */
.profile-pic.scroll-animated {
  transition: all 0.8s ease;
}

.profile-pic.scroll-animated:hover {
  transform: scale(1.05) rotate(5deg);
  filter: brightness(1.2) contrast(1.1);
}

/* Social Links Scroll Animation */
.social-link.scroll-animated {
  transition: all 0.4s ease;
}

.social-link.scroll-animated:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Chess Piece Scroll Animations */
.chess-piece.scroll-animated {
  transition: all 0.6s ease;
}

.chess-piece.scroll-animated:hover {
  transform: scale(1.2) rotate(15deg);
  filter: brightness(1.3);
}

/* Hero Section Scroll Effects */
.hero-title.scroll-animated {
  transition: all 0.8s ease;
}

.hero-title.scroll-animated:hover {
  text-shadow: 0 0 30px rgba(102, 153, 255, 0.8);
  transform: scale(1.02);
}

/* Stats Counter Animation */
.stat-number.scroll-animated {
  transition: all 0.6s ease;
}

.stat-number.scroll-animated.animated {
  animation: countUp 2s ease-out forwards;
}

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

/* Floating Particles Enhanced */
.floating-particle.scroll-animated {
  transition: all 0.8s ease;
}

.floating-particle.scroll-animated:hover {
  transform: scale(1.5) rotate(180deg);
  filter: brightness(1.5);
}

/* Section Transition Effects */
.content-section.scroll-transition {
  transition: all 0.8s ease;
}

.content-section.scroll-transition.entering {
  transform: translateX(100%);
  opacity: 0;
}

.content-section.scroll-transition.entered {
  transform: translateX(0);
  opacity: 1;
}

.content-section.scroll-transition.exiting {
  transform: translateX(-100%);
  opacity: 0;
}

/* Light Mode Adjustments for Scroll Animations */
body.light-mode .title-underline {
  background: linear-gradient(90deg, #2193b0, #6dd5ed);
}

body.light-mode .scroll-progress {
  background: linear-gradient(90deg, #2193b0, #6dd5ed);
}

body.light-mode .projectCard.scroll-animated:hover {
  box-shadow: 0 20px 40px rgba(33, 147, 176, 0.3);
}

body.light-mode .hero-title.scroll-animated:hover {
  text-shadow: 0 0 30px rgba(33, 147, 176, 0.8);
}

/* Responsive Adjustments for Scroll Animations */
@media (max-width: 768px) {
  .char {
    transform: translateY(30px) rotateX(-45deg);
  }
  
  .title-underline {
    height: 2px;
    margin-top: 0.3rem;
  }
  
  .projectCard.scroll-animated:hover {
    transform: perspective(500px) rotateY(-5deg) translateZ(10px);
  }
  
  .profile-pic.scroll-animated:hover {
    transform: scale(1.03) rotate(3deg);
  }
}

@media (max-width: 480px) {
  .char {
    transform: translateY(20px) rotateX(-30deg);
  }
  
  .title-underline {
    height: 1px;
    margin-top: 0.2rem;
  }
  
  .projectCard.scroll-animated:hover {
    transform: perspective(300px) rotateY(-3deg) translateZ(5px);
  }
  
  .profile-pic.scroll-animated:hover {
    transform: scale(1.02) rotate(2deg);
  }
}

/* Performance Optimizations */
.scroll-animated {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animated.animation-completed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile optimizations for scroll animations */
@media (max-width: 768px) {
  .scroll-animated {
    transition-duration: 0.4s;
    transform: translateY(20px) scale(0.98);
  }
}

/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Custom Scrollbar for Horizontal Scroll */
.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5a6fd8, #6a4190);
}

body.light-mode .horizontal-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #2193b0, #6dd5ed);
}

body.light-mode .horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #1e7a8c, #5bb8c4);
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-logo-glow {
    width: 160px;
    height: 160px;
  }

  .about-title {
    font-size: 2rem;
  }

  .profile-pic {
    width: 150px;
    height: 150px;
  }

  .profile-image-border {
    width: 180px;
    height: 180px;
  }

  .profile-image-glow {
    width: 200px;
    height: 200px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .about-cta-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  /* Responsive spacing for small mobile */
  .content-section {
    margin: 20px 0; /* Further reduced spacing on small mobile */
    padding: 20px 15px; /* Further reduced padding on small mobile */
  }

  .hero-section {
    margin: 0 0 30px 0; /* Further reduced bottom margin on small mobile */
  }

  #about-section,
  #projects-section,
  #skills-section,
  #education-section,
  #awards-section,
  #gitrch-section {
    margin: 30px 0; /* Further reduced spacing on small mobile */
  }
}

/*
* ========================================
* Dynamic Video Background
* ========================================
*/
.dynamic-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0; /* Hidden by default, GSAP will control visibility */
  transition: opacity 0.3s ease; /* Faster transition for better responsiveness */
  pointer-events: none; /* Ensure it doesn't interfere with interactions */
}

.dynamic-video-bg.active {
  opacity: 1;
}

.dynamic-video-bg.inactive {
  opacity: 0;
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  /* Performance optimizations */
  will-change: transform, currentTime;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  /* Smooth video transitions */
  transition: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.5) 50%, rgba(51, 65, 85, 0.3) 100%);
  z-index: 0;
  transition: background 0.5s ease;
}

body.light-mode .video-overlay {
  background: linear-gradient(135deg, rgba(242, 252, 254, 0.6) 0%, rgba(226, 239, 245, 0.4) 50%, rgba(241, 245, 249, 0.2) 100%);
}

/* Ensure content sections have proper z-index */
.content-section {
  position: relative;
  z-index: 1;
  background: rgba(25, 25, 55, 0.8); /* Slightly more transparent to show video */
}

body.light-mode .content-section {
  background: rgba(242, 252, 254, 0.8);
}

/* Animated Background Canvas */
#animated-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Light mode particle color adjustment */
body.light-mode #animated-bg-canvas {
  filter: brightness(0.8) contrast(1.2);
}

/*
* ========================================
* GSAP Text Animation Classes
* ========================================
*/

.char-animated {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.1s ease;
}

.word-animated {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease;
  margin-right: 0.2em;
}

.line-animated {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  margin-bottom: 0.5em;
}

/* Ensure text remains sharp and clear during animations */
.hero-title .char-animated,
.hero-subtitle .word-animated,
.hero-description .line-animated,
.greeting-text .char-animated {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Smooth transitions for all animated text */
.char-animated,
.word-animated,
.line-animated {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* GSAP Text Animation Classes */

.char-animated {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.1s ease;
}

.word-animated {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease;
  margin-right: 0.2em;
}

.line-animated {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  margin-bottom: 0.5em;
}

/* Ensure text remains sharp and clear during animations */
.hero-title .char-animated,
.hero-subtitle .word-animated,
.hero-description .line-animated,
.greeting-text .char-animated {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Smooth transitions for all animated text */
.char-animated,
.word-animated,
.line-animated {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/*

/*
* ========================================
* Modern Portfolio Hero Section
* ========================================
*/

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  padding: 2rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/projectImgs/nighthome.jpg') center center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

/* Hero Left Side */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  width: fit-content;
  backdrop-filter: blur(10px);
  animation: slideInLeft 1s ease-out;
}

.badge-icon {
  font-size: 1.2rem;
  animation: wave 2s ease-in-out infinite;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

.title-line {
  font-size: 1.5rem;
  font-weight: 400;
  color: #94a3b8;
  animation: fadeInUpText 1s ease-out 0.2s both;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.title-name {
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.4s both;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.title-role {
  font-size: 2rem;
  font-weight: 600;
  color: #e2e8f0;
  animation: fadeInUpText 1s ease-out 0.6s both;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 500px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 140px;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.stat-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Hero Right Side */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  animation: fadeInScale 1.5s ease-out 0.5s both;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

.profile-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #f59e0b, #3b82f6);
  border-radius: 50%;
  z-index: -2;
  animation: rotate 10s linear infinite;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 60%;
  right: -15%;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 4s;
}

.card-icon {
  font-size: 1.2rem;
}

.card-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #60a5fa, transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animations */
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Light Mode Styles */
body.light-mode .hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}


body.light-mode .hero-overlay {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(226, 232, 240, 0.6) 100%);
}

body.light-mode .hero-badge {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

body.light-mode .title-line {
  color: #64748b;
}

body.light-mode .title-role {
  color: #334155;
}

body.light-mode .hero-description {
  color: #475569;
}

body.light-mode .stat-card {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-card:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

body.light-mode .floating-card {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .card-text {
  color: #334155;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-left {
    order: 2;
  }
  
  .hero-right {
    order: 1;
  }
  
  .title-name {
    font-size: 3.5rem;
  }
  
  .title-role {
    font-size: 1.5rem;
  }
  
  .profile-image-wrapper {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .title-name {
    font-size: 2.5rem;
  }
  
  .title-role {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .stat-card {
    min-width: 120px;
    padding: 1rem;
  }
  
  .profile-image-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .floating-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1rem 0;
  }
  
  .title-name {
    font-size: 2rem;
  }
  
  .title-role {
    font-size: 1rem;
  }
  
  .hero-badge {
    padding: 0.5rem 1rem;
  }
  
  .badge-text {
    font-size: 0.8rem;
  }
  
  .stat-card {
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .profile-image-wrapper {
    width: 150px;
    height: 150px;
  }
}

/* Ensure text remains sharp and clear during animations */
.title-name .char-animated,
.title-role,
.hero-description,
.badge-text,
.stat-number,
.stat-label,
.btn-text {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Additional text sharpness for hero elements */
.hero-title,
.hero-description,
.hero-badge,
.hero-stats,
.action-buttons {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix profile picture coloring in about section */
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
  filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

/* Light mode profile picture adjustments */
body.light-mode .profile-pic {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  filter: brightness(1.02) contrast(1.05) saturate(1.05);
}

body.light-mode .profile-pic:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

/* NextNet.ai Inspired Hero Section */
.hero-section.nextnet-style {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.hero-content-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-main-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.title-line-1 {
  display: block;
  margin-bottom: 0.5rem;
}

.title-line-2 {
  display: block;
  text-align: right;
}

.title-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: titleReveal 1.2s ease-out forwards;
}

.title-line-2 .title-text {
  animation-delay: 0.3s;
}

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

.hero-subtitle,
.hero-subtitle-2 {
  max-width: 800px;
  margin: 0 auto;
}

.subtitle-text,
.subtitle-text-2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: subtitleReveal 1s ease-out forwards;
  animation-delay: 0.6s;
}

.subtitle-text-2 {
  animation-delay: 0.9s;
}

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

.highlight-text {
  color: #00ff88;
  font-weight: 600;
}

.hero-stats-section {
  margin-top: 2rem;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
  animation: statReveal 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

.stat-item:nth-child(2) {
  animation-delay: 1.4s;
}

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

.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ff88;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: buttonReveal 0.8s ease-out forwards;
  animation-delay: 1.6s;
}

.cta-button.secondary {
  animation-delay: 1.8s;
}

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

.cta-button.primary {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #00cc6a, #00ff88);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.button-text {
  font-weight: 600;
}

.button-arrow,
.button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
  transform: translateX(5px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: scrollIndicatorFade 1s ease-out forwards;
  animation-delay: 2s;
}

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

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.scroll-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content-container {
    padding: 0 1rem;
  }
  
  .hero-main-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .subtitle-text,
  .subtitle-text-2 {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }
  
  .title-line-2 {
    text-align: center;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    width: 100%;
    max-width: 200px;
  }
}

/* Section Transitions */
.section-transition {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Transition Text Styling */
.transition-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out, glowPulse 3s ease-in-out infinite;
  opacity: 0;
  transform: translateY(30px);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 0 40px rgba(102, 126, 234, 0.1);
  }
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Text Reveal Animation */
@keyframes textReveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}

/* Typing Effect Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Blink Cursor Effect */
@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: rgba(255, 255, 255, 0.8);
  }
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.9) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.transition-text:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  animation: float 2s ease-in-out infinite;
}

/* Different animation variations for each transition text */
.transition-text:nth-child(1) {
  animation-delay: 0.2s;
}

.transition-text:nth-child(2) {
  animation-delay: 0.4s;
}

.transition-text:nth-child(3) {
  animation-delay: 0.6s;
}

.transition-text:nth-child(4) {
  animation-delay: 0.8s;
}

.transition-text:nth-child(5) {
  animation-delay: 1s;
}

.transition-text:nth-child(6) {
  animation-delay: 1.2s;
}

/* Special animation for specific transition texts */
.transition-text.text {
  animation: fadeInUp 1.2s ease-out, glowPulse 4s ease-in-out infinite, textReveal 2s ease-out;
}



/* Light mode styles for section transitions */
body.light-mode .section-transition {
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.95) 0%, 
    rgba(241, 245, 249, 0.95) 50%, 
    rgba(226, 232, 240, 0.95) 100%);
}

/* Light mode styles for transition text */
body.light-mode .transition-text {
  color: #1e293b;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  border: 1px solid rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out, glowPulseLight 3s ease-in-out infinite;
}

/* Light mode glow pulse animation */
@keyframes glowPulseLight {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(102, 126, 234, 0.15);
  }
}

body.light-mode .transition-text:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.light-mode .section-transition::before {
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
}



/* Responsive design for section transitions */
@media (max-width: 768px) {
  .section-transition {
    min-height: 150px;
  }
  
  .transition-text {
    font-size: 1.8rem;
    padding: 1.5rem;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .section-transition {
    min-height: 120px;
  }
  
  .transition-text {
    font-size: 1.5rem;
    padding: 1.2rem;
    max-width: 400px;
    line-height: 1.3;
  }
}

/* Coding Stats in About Section */
.coding-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Light mode support for coding stats */
body.light-mode .coding-stats {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .stats-title {
    color: #1a1a1a;
}

body.light-mode .stat-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-item:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .stat-number {
    color: #1a1a1a;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

body.light-mode .stat-label {
    color: rgba(26, 26, 26, 0.8);
}

/* Responsive design for coding stats */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Ensure all images maintain 100% opacity in both day and night modes */
img {
    opacity: 1 !important;
    filter: none !important;
}

/* Override any existing image filters or opacity settings */
.hero-bg,
.hero-bg img,
.dennis-intro-bg img,
.profile-pic,
.card img,
.projectCard img,
.edu-icon,
.social-link img,
.social-links-footer img,
.footer-logo,
.chess-piece img,
.square img,
.floating-card img,
.hero-logo,
.hero-bg-img,
.hero-bg-image,
#project-float-img,
.cursor-particle img,
.floating-particle img,
.contact-icon img,
#copyright-badge-icon img {
    opacity: 1 !important;
    filter: none !important;
}

/* Light mode image overrides */
body.light-mode img,
body.light-mode .hero-bg,
body.light-mode .hero-bg img,
body.light-mode .dennis-intro-bg img,
body.light-mode .profile-pic,
body.light-mode .card img,
body.light-mode .projectCard img,
body.light-mode .edu-icon,
body.light-mode .social-link img,
body.light-mode .social-links-footer img,
body.light-mode .footer-logo,
body.light-mode .chess-piece img,
body.light-mode .square img,
body.light-mode .floating-card img,
body.light-mode .hero-logo,
body.light-mode .hero-bg-img,
body.light-mode .hero-bg-image,
body.light-mode #project-float-img,
body.light-mode .cursor-particle img,
body.light-mode .floating-particle img,
body.light-mode .contact-icon img,
body.light-mode #copyright-badge-icon img {
    opacity: 1 !important;
    filter: none !important;
}

/* Dark mode image overrides */
body:not(.light-mode) img,
body:not(.light-mode) .hero-bg,
body:not(.light-mode) .hero-bg img,
body:not(.light-mode) .dennis-intro-bg img,
body:not(.light-mode) .profile-pic,
body:not(.light-mode) .card img,
body:not(.light-mode) .projectCard img,
body:not(.light-mode) .edu-icon,
body:not(.light-mode) .social-link img,
body:not(.light-mode) .social-links-footer img,
body:not(.light-mode) .footer-logo,
body:not(.light-mode) .chess-piece img,
body:not(.light-mode) .square img,
body:not(.light-mode) .floating-card img,
body:not(.light-mode) .hero-logo,
body:not(.light-mode) .hero-bg-img,
body:not(.light-mode) .hero-bg-image,
body:not(.light-mode) #project-float-img,
body:not(.light-mode) .cursor-particle img,
body:not(.light-mode) .floating-particle img,
body:not(.light-mode) .contact-icon img,
body:not(.light-mode) #copyright-badge-icon img {
    opacity: 1 !important;
    filter: none !important;
}

/* --- About Me Modern Card Layout --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-content.about-card-modern {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
  background: rgba(25, 25, 55, 0.85);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.25);
  padding: 1.5rem 2.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
body.light-mode .about-content.about-card-modern {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.18);
}
.about-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.2rem;
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  background: #fff;
}
.about-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
}
body.light-mode .about-title {
  color: #1e40af;
}
.about-title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 0.5rem auto 0.5rem auto;
  border-radius: 2px;
}
body.light-mode .about-title-underline {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}
.about-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}
body.light-mode .about-subtitle {
  color: #334155;
}
.about-intro {
  font-size: 1.05rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.5rem 0;
}
body.light-mode .about-intro {
  color: #1e293b;
}
.about-stats-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.2rem 0 0.5rem 0;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  min-width: 90px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
}
body.light-mode .about-stat {
  background: rgba(30,64,175,0.07);
}
.stat-label {
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
body.light-mode .stat-label {
  color: #1e40af;
}
.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}
body.light-mode .stat-number {
  color: #1e293b;
}
.stat-link {
  font-size: 0.85rem;
  color: #60a5fa;
  text-decoration: underline;
  margin-top: 0.1rem;
}
body.light-mode .stat-link {
  color: #1e40af;
}
@media (max-width: 600px) {
  .about-content.about-card-modern {
    padding: 0.7rem 0.2rem;
    max-width: 98vw;
  }
  .about-stats-row {
    gap: 0.5rem;
  }
  .profile-pic {
    width: 80px;
    height: 80px;
  }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

/* --- Animated About Me Section --- */
#about-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}
#about-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-animated-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  background: rgba(25, 25, 55, 0.82);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(30,40,90,0.18);
}
body.light-mode .about-animated-content {
  background: rgba(242, 252, 254, 0.92);
  box-shadow: 0 8px 32px rgba(180,200,255,0.13);
}
.about-profile-img-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 24px rgba(59,130,246,0.13);
  animation: fadeInScale 1.1s cubic-bezier(.4,0,.2,1) 0.1s both;
}
.about-profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}
.about-animated-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.2s both;
}
body.light-mode .about-animated-name { color: #1e40af; }
.about-animated-title {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.3s both;
}
body.light-mode .about-animated-title { color: #334155; }
.about-animated-caption {
  font-size: 1.02rem;
  color: #e2e8f0;
  text-align: center;
  margin: 0 0 0.2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.4s both;
}
body.light-mode .about-animated-caption { color: #1e293b; }
.about-animated-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  font-size: 0.98rem;
  animation: fadeInScale 0.7s cubic-bezier(.4,0,.2,1) both;
}
body.light-mode .about-stat { background: rgba(30,64,175,0.07); }
.about-stat-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.about-stat-label { font-size: 0.85rem; color: #fbbf24; font-weight: 600; }
body.light-mode .about-stat-label { color: #1e40af; }
.about-stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; }
body.light-mode .about-stat-number { color: #1e293b; }
.about-animated-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.7rem 0 0 0;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) 0.6s both;
}
.about-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.about-social-link img:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .about-animated-content {
    padding: 1rem 0.2rem;
    max-width: 98vw;
  }
  .about-animated-stats { gap: 0.5rem; }
  .about-profile-img { width: 70px; height: 70px; }
  .about-profile-glow { width: 90px; height: 90px; }
}
/* Remove old about-section background image rules */
#about-section::before { display: none !important; content: none !important; }
body.light-mode #about-section::before { display: none !important; content: none !important; }

#education-section .card.scroll-animated {
  transition: transform 0.7s cubic-bezier(.22,1,.36,1), box-shadow 0.7s cubic-bezier(.22,1,.36,1), background 0.4s;
  will-change: transform, box-shadow, background;
}
#education-section .card.scroll-animated:hover {
  transform: perspective(900px) rotateY(12deg) rotateX(-6deg) scale(1.07) translateY(-18px) skewY(-2deg);
  box-shadow: 0 24px 48px 0 rgba(33,147,176,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
  background: linear-gradient(120deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
}
body.light-mode #education-section .card.scroll-animated:hover {
  background: linear-gradient(120deg, #f7971e 0%, #ffd200 100%);
  color: #1a2a3a;
}
#education-section .card.scroll-animated:hover .edu-degree,
#education-section .card.scroll-animated:hover .edu-gpa {
  color: #fff;
}
body.light-mode #education-section .card.scroll-animated:hover .edu-degree,
body.light-mode #education-section .card.scroll-animated:hover .edu-gpa {
  color: #1a2a3a;
}

.dennis-intro-bg { display: none !important; }

/* Removed conflicting hero background styles to ensure background image shows properly */

/* Custom Animated Cursor */
body, html {
  cursor: none !important;
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4fa3ff;
  box-shadow: 0 0 16px 4px rgba(79,163,255,0.35);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  opacity: 0.95;
}
.custom-cursor.active {
  box-shadow: 0 0 24px 8px #ffb300, 0 0 4px 2px #fff;
  background: #ffb300;
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 1;
}
.custom-cursor.click {
  transform: translate(-50%, -50%) scale(0.85);
}
.custom-cursor.hide {
  opacity: 0;
}

/* Interactive elements highlight */
a:hover, button:hover, .projectCard:hover, .hero-cta-btn:hover, .about-cta-btn:hover, .social-link:hover {
  cursor: none !important;
}

/* Testimonials Section */
.testimonials-section {
  padding: 3rem 0 2rem 0;
  background: var(--testimonials-bg, #f8fafc);
  text-align: center;
}
.testimonials-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(60, 60, 120, 0.10), 0 1.5px 6px 0 rgba(60, 60, 120, 0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 340px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(60, 60, 120, 0.16), 0 2.5px 12px 0 rgba(60, 60, 120, 0.10);
}
.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.testimonial-author {
  font-weight: 600;
  color: #4fa3ff;
  margin-bottom: 0.2rem;
}
.testimonial-title {
  font-size: 0.98rem;
  color: #888;
  font-weight: 400;
}
@media (max-width: 900px) {
  .testimonials-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .testimonial-card {
    max-width: 95vw;
  }
}

/* Contact Section Modern Styles */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-form {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(60, 60, 120, 0.10);
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 300px;
  max-width: 370px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form-field label {
  font-weight: 600;
  color: #4fa3ff;
  margin-bottom: 0.1rem;
}
.contact-form-field input,
.contact-form-field textarea {
  border: 1.5px solid #e0e7ef;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border: 1.5px solid #4fa3ff;
  box-shadow: 0 0 0 2px rgba(79,163,255,0.12);
}
.contact-form-submit {
  background: linear-gradient(90deg, #4fa3ff 60%, #1e90ff 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.7rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.08rem;
  margin-top: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(79,163,255,0.10);
  transition: background 0.2s, transform 0.18s;
}
.contact-form-submit:hover {
  background: linear-gradient(90deg, #1e90ff 60%, #4fa3ff 100%);
  transform: translateY(-2px) scale(1.04);
}
.contact-social-animated {
  background: #f8fafc;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px 0 rgba(60, 60, 120, 0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.contact-social-label {
  font-weight: 600;
  color: #4fa3ff;
  margin-bottom: 0.2rem;
}
.contact-social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}
.contact-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(79,163,255,0.08);
  width: 44px;
  height: 44px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.contact-social-icons a:hover {
  background: #4fa3ff;
  box-shadow: 0 4px 16px 0 rgba(79,163,255,0.18);
  transform: scale(1.13) rotate(-4deg);
}
.contact-social-icons img {
  width: 26px;
  height: 26px;
  filter: grayscale(0.2);
  transition: filter 0.18s;
}
.contact-social-icons a:hover img {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 4px #fff);
}
.contact-social-info {
  font-size: 0.98rem;
  color: #444;
  text-align: left;
  margin-top: 0.5rem;
}
.contact-social-info a {
  color: #1e90ff;
  text-decoration: none;
  transition: text-decoration 0.18s, color 0.18s;
}
.contact-social-info a:hover {
  text-decoration: underline;
  color: #4fa3ff;
}
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .contact-form, .contact-social-animated {
    max-width: 98vw;
    min-width: 0;
  }
}

/* Modern Professional Footer */
.modern-footer {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  margin-top: 4rem;
  overflow: hidden;
  width: 100%;
}
.footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
}
.footer-wave svg {
  width: 100%;
  height: 100%;
}
.footer-wave .shape-fill {
  fill: #4fa3ff;
  opacity: 0.15;
}
.footer-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand-section {
  grid-column: 1;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo-container {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
}
.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(79,163,255,0.3));
  transition: transform 0.3s ease;
}
.footer-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(79,163,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}
.footer-brand-name {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #4fa3ff, #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.footer-brand-tagline {
  font-size: 1.1rem;
  color: #a0a0a0;
  margin: 0;
  font-weight: 500;
}
.footer-brand-description {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
  margin-top: 0.5rem;
}
.footer-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4fa3ff;
  margin-bottom: 1.2rem;
  position: relative;
}
.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #4fa3ff, transparent);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  position: relative;
}
.footer-link:hover {
  color: #4fa3ff;
  transform: translateX(5px);
}
.footer-link::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: opacity 0.2s;
}
.footer-link:hover::before {
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.contact-icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}
.contact-link, .contact-text {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover {
  color: #4fa3ff;
}
.social-links-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link-footer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  overflow: hidden;
}
.social-link-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79,163,255,0.3), transparent);
  transition: left 0.5s;
}
.social-link-footer:hover::before {
  left: 100%;
}
.social-link-footer:hover {
  background: rgba(79,163,255,0.2);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(79,163,255,0.3);
}
.social-link-footer img {
  width: 24px;
  height: 24px;
  filter: brightness(0.9);
  transition: filter 0.3s;
  z-index: 1;
  position: relative;
}
.social-link-footer:hover img {
  filter: brightness(1.2);
}
.social-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.social-link-footer:hover .social-tooltip {
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 2rem;
  background: rgba(0,0,0,0.2);
}
.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}
.copyright-name {
  color: #4fa3ff;
  font-weight: 600;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-bottom-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-bottom-link:hover {
  color: #4fa3ff;
}
.separator {
  color: #666;
}
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand-section {
    grid-column: 1 / -1;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-content {
    padding: 2rem 1rem 1rem 1rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    padding: 1rem;
  }
}

/* Section Transition Text Animations */
.section-transition {
  padding: 2rem 0;
  text-align: center;
  background: transparent !important;
}



/* Ensure transparency in light mode */
body.light-mode .section-transition {
  background: transparent !important;
}


/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
/* Ensure 100% opacity in both day and night modes */
body.light-mode .hero-bg-image,
body:not(.light-mode) .hero-bg-image {
  opacity: 1;
}

/* Remove conflicting About Me and Hero section backgrounds to defer to professional-about.css */
#about-section,
#about-section::before {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ========================================
   MOBILE OPTIMIZATIONS - COMPREHENSIVE FIXES
   ======================================== */

/* Mobile-first approach for better performance */
@media (max-width: 768px) {
  /* 1. IMPROVE UI FRIENDLINESS */
  
  /* Better touch targets */
  .nav-btn, .hero-btn, .btn, .cta-button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Improved spacing and readability */
  .content-section {
    padding: 20px 15px;
    margin: 20px 0;
    min-height: auto;
  }
  
  /* Better typography for mobile */
  h1, h2, h3 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  h4, h5, h6 {
    font-size: 1.2rem !important;
    line-height: 1.4;
  }
  
  p, li {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  /* 2. FIX BACKGROUND VIDEO */
  .dynamic-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }
  
  #background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
  }
  
  /* Ensure video plays on mobile */
  #background-video[data-theme="dark"],
  #background-video[data-theme="light"] {
    display: block !important;
  }
  
  /* 3. REDUCE SECTION SIZES */
  .hero-section {
    min-height: 80vh;
    padding: 20px 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  .hero-description {
    font-size: 1rem !important;
    margin: 15px 0;
  }
  
  /* 4. FIX CHESSBOARD WIDTH */
  .chessboard-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .chessboard {
    width: 100%;
    max-width: 320px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    aspect-ratio: 1;
  }
  
  .square {
    aspect-ratio: 1;
  }
  
  .square img {
    width: 70%;
    height: 70%;
  }
  
  /* 5. IMPROVE CARD LAYOUTS */
  .cards-container,
  .projectCards-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }
  
  .card, .projectCard {
    padding: 15px;
  margin: 0;
    border-radius: 12px;
  }
  
  .card img, .projectCard img {
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* 6. BETTER ABOUT ME SECTION */
  .about-wide-section {
    padding: 20px 0;
    min-height: auto;
  }
  
  .about-wide-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  
  .about-img-col {
    flex: none;
    margin-bottom: 15px;
  }
  
  .about-img-col .profile-pic {
    width: 120px;
    height: 120px;
  }
  
  .about-content-col {
  text-align: center;
  }
  
  .about-content-col .about-title {
    font-size: 1.8rem;
  }
  
  .about-content-col .profile-title {
    font-size: 1.1rem;
  }
  
  .about-content-col .about-intro {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* 7. IMPROVE NAVIGATION */
  .nav-bar {
    padding: 10px 15px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-btn {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  
  /* 8. BETTER SOCIAL LINKS */
  .social-links {
    gap: 15px;
    justify-content: center;
  }
  
  .social-links img {
    width: 32px;
    height: 32px;
  }
  
  /* 9. IMPROVE FOOTER */
  .modern-footer {
    padding: 30px 15px 20px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  /* 10. BETTER CONTACT FORM */
  .contact-flex {
    flex-direction: column;
    gap: 25px;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .contact-form-field input,
  .contact-form-field textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
  }
  
  .contact-form-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Even more compact for very small screens */
  .content-section {
    padding: 15px 10px;
    margin: 15px 0;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .nav-bar {
    padding: 8px 10px;
    gap: 6px;
  }
  
  .nav-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .about-img-col .profile-pic {
    width: 100px;
    height: 100px;
  }
  
  .about-content-col .about-title {
    font-size: 1.6rem;
  }
  
  .chessboard-container {
    max-width: 280px;
  }
  
  .chessboard {
    max-width: 280px;
  }
  
  .square img {
    width: 65%;
    height: 65%;
  }
  
  .card img, .projectCard img {
    height: 100px;
  }
  
  .edu-icon {
    width: 60px;
    height: 60px;
  }
  
  .edu-degree {
    font-size: 0.9rem;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.6rem !important;
  }
  
  .content-section {
    padding: 15px 20px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-btn, .btn, .cta-button {
    border-width: 0.5px;
  }
  
  .card, .projectCard {
    border-width: 0.5px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .nav-btn:hover,
  .btn:hover,
  .cta-button:hover,
  .card:hover,
  .projectCard:hover,
  .social-link:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Add active states for touch feedback */
  .nav-btn:active,
  .btn:active,
  .cta-button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  .card:active,
  .projectCard:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .floating-particle {
    animation-duration: 8s;
  }
  
  .scroll-animated {
    animation-duration: 0.6s;
  }
  
  /* Optimize background images */
  .hero-bg,
  .about-wide-section,
  .hero-section {
    background-attachment: scroll;
  }

  .card,
  .projectCard,
  .nav-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  * {
    transition-duration: 0.2s;
  }
}

@media (max-width: 768px) {
  .nav-btn {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.8);
  }
  .nav-btn.active {
    background: rgba(59, 130, 246, 1);
    color: #ffffff;
  }
  .nav-btn:focus,
  .btn:focus,
  .cta-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
  .hero-title,
  .about-content-col .about-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .hero-description,
  .about-content-col .about-intro {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}