/* <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
    /> */
    /* <!-- css stylesheet --> */
    main {
    position: relative;
    z-index: 10; /* Important: Make sure your content is above the background layers */
}
:root {
    --bg-dark-blue: #0f1c2d; /* Primary deep background color */
    --bg-medium-blue: #1a2a3a; /* Slightly lighter shade for gradients */
    --accent-cyan: #00e6e6; /* Bright cyan for highlights */
    --accent-teal: #00b894; /* Teal for secondary accents */
    --particle-color: rgba(0, 230, 230, 0.6); /* Color for small particles */
    --shape-color-1: rgba(0, 230, 230, 0.08); /* Translucent cyan for shapes */
    --shape-color-2: rgba(0, 184, 148, 0.08); /* Translucent teal for shapes */
}

/* Base body style for contrast and overflow handling */
body {
    background-color: var(--bg-dark-blue); /* Ensure body itself has a dark background */
    /* overflow: hidden; Hide any overflow from animations */
    min-height: 100vh;
    position: relative;
}
    :root {
        /* --primary-color: #00e6e6; Bright Cyan */
        --primary-color: #00adb5; /* Slightly Softer Cyan */
        
        --secondary-bg-color: #1a2a3a; /* Dark Blue-Gray */
        --text-color: #e0e0e0; /* Light Gray */
        --accent-color: #00b894; /* Teal */
        --link-hover-color: #00ffff; /* Brighter Cyan */
        --header-bg-gradient-start: #1a2a3a;
        --header-bg-gradient-end: #2a3d4a;
        --header-shadow-color: rgba(0, 230, 230, 0.2);
        --header-border-color: rgba(0, 230, 230, 0.3);
      }
      body {
        background: #181a1b;
        color: #f5f6fa;
        font-family: "Segoe UI", Arial, sans-serif;
        margin: 0;
        padding: 0;
      }
       
      /* h2 {
        color: #00adb5;
      } */
      /* .topheader {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #23272b;
        padding: 2rem;
        margin-top: 2rem;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      } */
      /* header {
        border-radius: 12px;
        width: 70rem;
        text-align: center;
        padding: 2rem 1rem 1rem 1rem;
        background: #23272b;
      }
      header h1 {
        margin: 0;
        font-size: 2.5rem;
        letter-spacing: 2px;
      }
      header p {
        color: #b2becd;
        margin-top: 0.5rem;
        font-size: 1.2rem;
      } */
      /* section {
        max-width: 900px;
        margin: 2rem auto;
        background: #23272b;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
      } */
       /* --- About Section Specific Styles --- */

.about {
    /* These styles apply directly to the .about div as a content block */
    max-width: 70rem; /* Constrain width for better readability */
    width: 95%;
    margin: 4rem auto; /* Top/bottom margin and auto for centering */
    padding: 2.5rem 2rem; /* Add padding for content spacing */
    background: linear-gradient(145deg, var(--secondary-bg-color), #2a3d4a); /* Similar background to header */
    border-radius: 15px; /* Matching border-radius */
    box-shadow: 0 8px 25px var(--header-shadow-color); /* Similar glowing shadow */
    border: 1px solid var(--header-border-color); /* Matching border */
    box-sizing: border-box;

    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly below for animation */
    animation: fadeInSlideUp 1.2s ease-out forwards; /* New animation for about section */
    animation-delay: 1.5s; /* Delay to appear after header */
}

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

.about h2 {
    font-family: 'Orbitron', sans-serif; /* Futuristic font for heading */
    font-size: 2.2em; /* Slightly larger heading */
    margin-top: 0;
    margin-bottom: 1.5rem; /* More space below heading */
    color: var(--primary-color); /* Bright accent color for heading */
    letter-spacing: 2px; /* Add letter spacing */
    text-shadow: 0 0 8px var(--primary-color); /* Glowing text effect */
    position: relative;
    padding-bottom: 0.5rem; /* Space for the underline effect */
}

.about h2 .bracket {
    color: var(--accent-color); /* Different color for the bracket in the heading */
    font-weight: bold;
    font-size: 0.8em; /* Slightly smaller bracket */
}

/* .about h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px; 
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: expandUnderline 2s infinite alternate;
} */

/* @keyframes expandUnderline {
    from { width: 60px; }
    to { width: 100px; }
} */

.about p {
    font-family: 'Share Tech Mono', monospace; /* Monospace font for body text */
    color: var(--text-color); /* Light gray for readability */
    line-height: 1.8; /* Increased line height for better readability */
    font-size: 1.05em; /* Slightly larger paragraph text */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/* Styling for highlighted text within paragraphs */
.about p .highlight {
    color: var(--primary-color); /* Use primary accent color */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 230, 230, 0.5); /* Subtle glow */
    transition: text-shadow 0.3s ease;
}

.about p .highlight:hover {
    text-shadow: 0 0 12px var(--link-hover-color); /* Stronger glow on hover */
}

/* Optional: Add a subtle text glow on hover for interactive elements within p tags if any */
.about p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.about p a:hover {
    color: var(--link-hover-color);
    text-shadow: 0 0 10px var(--link-hover-color);
}
      /* .about {
        margin-bottom: 2rem;
      }
      .about h2 {
        margin-top: 0;
        color: #00adb5;
      }
      .about p {
        color: #b2becd;
        line-height: 1.6;
      } */
       /* --- Tools & Technologies Section Styles --- */

.skills-section {
    /* Container styling consistent with .about and .contact */
    max-width: 70rem;
    width: 95%;
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, var(--secondary-bg-color), #2a3d4a);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--header-shadow-color);
    border: 1px solid var(--header-border-color);
    box-sizing: border-box;
    
    /* Animation consistent with other blocks */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1.2s ease-out forwards;
    animation-delay: 2.5s; /* Stagger animation after Contact */
}

/* Reusing the fadeInSlideUp keyframes from the About section */

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


.skills-section h2 {
    /* Heading style consistent with other sections */
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--primary-color);
    position: relative;
    text-align: left; /* Center the section title */
}

.skills-section h2 .bracket {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8em;
}




.tools-grid { /* Renamed from .tools for clearer scope */
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 2rem; /* Increased vertical gap */
    justify-content: center;
    margin-bottom: 0; /* Remove redundant bottom margin */
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px; /* Slightly wider block */
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool:hover {
    background-color: rgba(0, 230, 230, 0.1); /* Subtle background highlight */
    transform: scale(1.05) translateY(-5px); /* Lift and scale effect */
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.5); /* Stronger glow on hover */
}

.tool i.tool-icon {
    /* Styling for Font Awesome Icons */
    font-size: 3rem; /* Larger icon size */
    color: var(--primary-color); /* Bright accent color */
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.tool img.tool-icon-img {
    /* Styling for SVG Icons (like Flutter) */
    width: 3rem; /* Match icon size */
    height: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(0, 230, 230, 0.4)); /* Subtle glow for SVGs */
    transition: filter 0.3s ease;
}

.tool:hover i.tool-icon {
    color: var(--link-hover-color);
    text-shadow: 0 0 12px var(--link-hover-color); /* Intense glow on hover */
}

.tool:hover img.tool-icon-img {
    filter: drop-shadow(0 0 10px var(--link-hover-color));
}

.tool span {
    /* Text style consistent with code/digital look */
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.05rem; /* Slightly larger text */
    color: var(--text-color); /* Light gray text */
    transition: color 0.3s ease;
}

.tool:hover span {
    color: var(--primary-color); /* Text highlights on hover */
}
      /* .tools {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        margin-bottom: 2rem;
      }
      .tool {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80px;
      }
      .tool i {
        font-size: 2.5rem;
        color: #00adb5;
        margin-bottom: 0.5rem;
      }
      .tool span {
        font-size: 1rem;
        color: #b2becd;
      } */
/* --- Projects & Applications Section Styles --- */

.projects-section {
    /* Container styling consistent with .about and .contact */
    max-width: 70rem;
    width: 95%;
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, var(--secondary-bg-color), #2a3d4a);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--header-shadow-color);
    border: 1px solid var(--header-border-color);
    box-sizing: border-box;

    /* Animation consistent with other blocks */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1.2s ease-out forwards;
    animation-delay: 3s; /* Stagger animation after Tools */
}

.projects-section h2 {
    /* Heading style consistent with other sections */
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--primary-color);
    position: relative;
    text-align: left;
}

.projects-section h2 .bracket {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8em;
}

.projects-container { /* Renamed from .projects */
    margin-top: 0;
}

.project-card { /* Renamed from .project */
    background: var(--bg-medium-blue); /* Slightly lighter background than the section */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.1); /* Subtle internal glow */
    border-left: 5px solid var(--accent-color); /* Stronger accent border */
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--header-shadow-color); /* Lift and stronger external glow */
    border-left-color: var(--primary-color); /* Accent color switch */
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color); /* Accent color for title */
    text-shadow: 0 0 5px rgba(0, 230, 230, 0.5);
}

.project-description {
    font-family: 'Share Tech Mono', monospace;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.7;
}

.project-details-list {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: none; /* Remove default list style */
}

.project-details-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.project-details-list li::before {
    content: "\2022"; /* Bullet point */
    font-size: 1.2em;
    color: var(--accent-color); /* Cyan bullet */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.project-link {
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--link-hover-color);
    text-shadow: 0 0 10px var(--link-hover-color);
}

.project-link i {
    font-size: 0.9em;
}

.tech-stack-list { /* Replaced inline styling for the tools bar */
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 230, 230, 0.2);
}

.tech-icon-wrapper {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.tech-icon-wrapper:hover {
    transform: translateY(-2px) scale(1.1);
}

.tech-icon-img {
    width: 28px;
    height: 28px;
    margin-right: 0.3rem;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* Specific image adjustments for better visibility */
.tech-icon-img.white-bg { background: #fff; border-radius: 4px; padding: 2px; }
.tech-icon-img.small-icon { width: 24px; height: 24px; }
.tech-icon-img.large-icon { width: 45px; height: auto; }

.tech-icon-fa {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-right: 0.3rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.tech-icon-wrapper:hover .tech-icon-fa {
    color: var(--link-hover-color);
    text-shadow: 0 0 8px var(--link-hover-color);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.button-primary {
    /* Style for the "See All Projects" button */
    font-family: 'Orbitron', sans-serif;
    background: var(--primary-color);
    color: var(--secondary-bg-color); /* Dark text on bright button */
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.5);
    border: 2px solid var(--primary-color);
}

.button-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 25px var(--link-hover-color);
    transform: scale(1.05);
}
      /* .projects {
        margin-top: 2rem;
      }
      .project {
        background: #181a1b;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
      }
      .project h3 {
        margin: 0 0 0.5rem 0;
        color: #00adb5;
      }
      .project p {
        margin: 0 0 1rem 0;
        color: #b2becd;
      }
      .project a {
        color: #00adb5;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.2s;
      }
      .project a:hover {
        color: #f5f6fa;
      } */

      /* --- Futuristic Form Styles --- */


.futuristic-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-family: 'Share Tech Mono', monospace;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--accent-color); /* Teal color for labels */
    font-size: 0.95em;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    /* Base style for input fields and textarea */
    max-width: 70rem;
    /* width: 95%; */
    padding: 0.8rem;
    background-color: var(--secondary-bg-color); /* Darker background than container */
    border: 1px solid var(--header-border-color); /* Light cyan border */
    border-radius: 6px;
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    transition: all 0.3s ease;
    resize: vertical; /* Allow vertical resize on textarea */
}

/* Glowing Focus Effect */
.form-input:focus {
    outline: none;
    border-color: var(--primary-color); /* Bright cyan border on focus */
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.7); /* Strong glow */
    background-color: #11202e; /* Even darker background on focus */
}

/* Autocomplete/Autofill Fix for Chrome */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus, 
.form-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0 30px var(--secondary-bg-color) inset !important;
    box-shadow: 0 0 0 30px var(--secondary-bg-color) inset !important;
}

.button-submit {
    /* Primary button style consistent with "See All Projects" button */
    font-family: 'Orbitron', sans-serif;
    background: var(--primary-color);
    color: var(--secondary-bg-color); 
    padding: 0.8rem 2rem;
    border-radius: 50px; 
    /* border: none; */
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.5);
    align-self: flex-start; /* Aligns button to the left */
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.button-submit:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 25px var(--link-hover-color);
    transform: translateY(-2px);
    border: 2px solid var(--primary-color); /* This now swaps the color, but size stays same */
}

.form-note {
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent-color);
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5rem;
}
      /* contact ection CSS start */
.contact-section { /* Renamed from .contact to avoid potential conflicts if section is a parent */
    /* margin-top: 4rem; */
    background: linear-gradient(145deg, var(--secondary-bg-color), #2a3d4a);
    border-radius: 15px;
    /* padding: 2rem; */
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px var(--header-shadow-color);
    border: 1px solid var(--header-border-color);
    max-width: 70rem;
    margin: 4rem auto;
    /* margin-left: auto;
    margin-right: auto; */
    /* Animation (optional, but good for flow) */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1.2s ease-out forwards;
    animation-delay: 2s; 
}

.contact-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--primary-color);
    position: relative;
}

.contact-section h2 .bracket {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8em;
}


      @media (max-width: 600px) {
        /* section {
          padding: 1rem;
        } */
        .tools {
          gap: 1rem;
        }
        .tool {
          width: 60px;
        }
      }
      /* --- Futuristic Background --- */
.futuristic-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        120deg,
        var(--bg-dark-blue) 0%,
        var(--bg-medium-blue) 50%,
        var(--accent-teal) 100%
    );
    background-size: 200% 200%;
    animation: bgMove 20s ease-in-out infinite alternate;
    filter: blur(1px);
    opacity: 0.8;
}

@keyframes bgMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* --- Animated Particles --- */
.animated-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, var(--particle-color) 1px, transparent 1px),
        radial-gradient(circle, var(--particle-color) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    background-position: 0 0, 25px 25px;
    animation: particleFlow 60s linear infinite;
    opacity: 0.7;
    filter: brightness(1.2) saturate(1.2);
}

@keyframes particleFlow {
    from {
        background-position: 0 0, 25px 25px;
    }
    to {
        background-position: 600px 600px, 700px 700px;
    }
}

/* --- Floating Shapes --- */
.floating-shapes-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-direction: alternate;
    filter: blur(5px);
}

.shape:nth-child(1) {
    width: 150px; height: 150px;
    background-color: var(--shape-color-1);
    top: 10%; left: 5%;
    animation-name: float1;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px; height: 200px;
    background-color: var(--shape-color-2);
    top: 50%; left: 80%;
    animation-name: float2;
    animation-delay: 3s;
    border-radius: 30%;
}

.shape:nth-child(3) {
    width: 100px; height: 100px;
    background-color: var(--shape-color-1);
    top: 70%; left: 20%;
    animation-name: float3;
    animation-delay: 6s;
}

.shape:nth-child(4) {
    width: 180px; height: 180px;
    background-color: var(--shape-color-2);
    top: 20%; left: 70%;
    animation-name: float1;
    animation-delay: 9s;
    transform: rotate(45deg);
}

.shape:nth-child(5) {
    width: 120px; height: 120px;
    background-color: var(--shape-color-1);
    top: 85%; left: 90%;
    animation-name: float2;
    animation-delay: 12s;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(0.8) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(100px, 50px) scale(1.1) rotate(30deg); opacity: 0; }
}
@keyframes float2 {
    0% { transform: translate(0, 0) scale(0.9) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-120px, -80px) scale(1.2) rotate(-20deg); opacity: 0; }
}
@keyframes float3 {
    0% { transform: translate(0, 0) scale(0.7) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(80px, -100px) scale(1.0) rotate(45deg); opacity: 0; }
}

      /* .futuristic-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        background: linear-gradient(
          120deg,
          #181a1b 0%,
          #23272b 50%,
          #00adb5 100%
        );
        background-size: 200% 200%;
        animation: bgMove 10s ease-in-out infinite alternate;
        filter: blur(2px);
      }
      @keyframes bgMove {
        0% {
          background-position: 0% 50%;
        }
        100% {
          background-position: 100% 50%;
        }
      }
      .glow-grid {
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background-image: repeating-linear-gradient(
            0deg,
            rgba(0, 173, 181, 0.08) 0 1px,
            transparent 1px 40px
          ),
          repeating-linear-gradient(
            90deg,
            rgba(0, 173, 181, 0.08) 0 1px,
            transparent 1px 40px
          );
        box-shadow: 0 0 80px 10px #00adb5, 0 0 120px 40px #393e46;
        mix-blend-mode: lighten;
        opacity: 0.7;
        animation: gridGlow 6s linear infinite alternate;
      }
      @keyframes gridGlow {
        0% {
          box-shadow: 0 0 80px 10px #00adb5, 0 0 120px 40px #393e46;
        }
        100% {
          box-shadow: 0 0 120px 30px #00adb5, 0 0 160px 60px #393e46;
        }
      }
      @import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap");
 */
      /* --- Header Specific Styles --- */

      

      .futuristic-header {
        text-align: center;
        padding: 3rem 2rem;
        background: linear-gradient(
          145deg,
          var(--header-bg-gradient-start),
          var(--header-bg-gradient-end)
        );
        border-radius: 15px;
        box-shadow: 0 10px 30px var(--header-shadow-color);
        position: relative;
        z-index: 10; /* Ensure header is above any background effects */
        transform: translateY(0);
        animation: fadeIn 1.5s ease-out forwards;
        border: 1px solid var(--header-border-color);
        max-width: 70rem;
        width: 95%;

        margin: 2rem auto; /* Center the header if it's not the only content */
        overflow: hidden; /* For any internal overflow */
        box-sizing: border-box; /* Include padding/border in element's total width/height */
      }

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

      .futuristic-header h1 {
        font-family: "Orbitron", sans-serif;
        font-size: 2.8em;
        margin-bottom: 0.5rem;
        letter-spacing: 3px;
        color: var(--text-color);
        position: relative;
        display: inline-block;
        text-shadow: 0 0 10px var(--primary-color);
      }

      .futuristic-header h1::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 2px;
        background: var(--primary-color);
        box-shadow: 0 0 8px var(--primary-color);
        animation: pulseUnderline 2s infinite alternate;
      }

      @keyframes pulseUnderline {
        from {
          width: 50%;
          opacity: 0.7;
        }
        to {
          width: 70%;
          opacity: 1;
        }
      }

      .futuristic-header .header-link {
        text-decoration: none;
        color: inherit;
      }

      .futuristic-header .bracket {
        color: var(--primary-color);
        font-weight: bold;
        transition: color 0.3s ease;
      }

      .futuristic-header .header-link:hover .bracket {
        color: var(--link-hover-color);
        animation: glitch 0.5s infinite alternate; /* Apply glitch on hover */
      }

      @keyframes glitch {
        0% {
          text-shadow: 0 0 var(--link-hover-color);
          transform: translateX(0);
        }
        25% {
          text-shadow: 2px 0 var(--link-hover-color), -2px 0 red;
          transform: translateX(-1px);
        }
        50% {
          text-shadow: -2px 0 var(--link-hover-color), 2px 0 green;
          transform: translateX(1px);
        }
        75% {
          text-shadow: 1px 0 var(--link-hover-color), -1px 0 blue;
          transform: translateX(-0.5px);
        }
        100% {
          text-shadow: 0 0 var(--link-hover-color);
          transform: translateX(0);
        }
      }

      .futuristic-header .header-tagline {
        font-family: "Share Tech Mono", monospace;
        font-size: 1.1em;
        margin-top: 1rem;
        margin-bottom: 2rem;
        color: var(--text-color);
        line-height: 1.6;
        animation: slideIn 1.5s ease-out forwards;
        animation-delay: 0.5s;
        opacity: 0;
      }

      @keyframes slideIn {
        from {
          opacity: 0;
          transform: translateX(-30px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      /* .futuristic-header .header-tagline i {
    color: var(--link-hover-color);
    margin-right: 0.5rem;
    animation: iconPulse 1.5s infinite alternate;
    text-shadow: 0 0 10px var(--link-hover-color);
} */
      .futuristic-header .header-tagline i {
    color: var(--primary-color); 
    margin-right: 0.5rem;
    animation: iconPulse 1.5s infinite alternate;
    text-shadow: 0 0 8px var(--primary-color);
}
      /* .futuristic-header .header-tagline i {
        color: var(--accent-color);
        margin-right: 0.5rem;
        animation: iconPulse 1.5s infinite alternate;
      } */

      @keyframes iconPulse {
        from {
          transform: scale(1);
        }
        to {
          transform: scale(1.05);
        }
      }

      .futuristic-header .social-links {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        animation: slideIn 1.5s ease-out forwards;
        animation-delay: 1s;
        opacity: 0;
      }

      .futuristic-header .social-icon {
        color: var(--text-color);
        font-size: 1.8em;
        transition: color 0.3s ease, transform 0.3s ease;
        position: relative;
        display: inline-block;
        text-decoration: none; /* Remove underline from social links */
      }

      .futuristic-header .social-icon:hover {
        color: var(--primary-color);
        transform: translateY(-5px) scale(1.1);
        text-shadow: 0 0 15px var(--primary-color);
      }

      .futuristic-header .social-icon::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--primary-color);
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.3s ease-out;
      }

      .futuristic-header .social-icon:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
      }
    /* </style> */
    /* --- Pagination & Filter Controls Styles --- */

.pagination-controls-wrapper {
    /* Main container for positioning, consistent with other sections' structure */
    max-width: 800px; 
    margin: 2rem auto 4rem auto; /* Ensure good spacing after projects */
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between the two control rows */
    box-sizing: border-box;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    /* Aligns the per-page control to the right */
    align-self: flex-end; 
    gap: 0.5rem;
}

.pagination-label {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color); /* Light gray for label */
    font-size: 1rem;
    margin-right: 0.5rem;
}

.futuristic-select {
    /* Style the select box for the digital theme */
    background: var(--secondary-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    appearance: none; /* Hide default arrow for custom styling */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 230, 230, 0.3);
    transition: all 0.3s ease;
}

.futuristic-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--header-shadow-color);
}

.futuristic-select option {
    /* Ensure options look consistent */
    background: var(--secondary-bg-color);
    color: var(--text-color);
    padding: 0.5rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-button {
    /* Style for the Previous/Next buttons */
    background: var(--secondary-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 230, 230, 0.5);
    margin: 0 1rem;
}

.pagination-button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--secondary-bg-color);
    box-shadow: 0 0 15px var(--link-hover-color);
    transform: translateY(-2px); /* Subtle lift */
}

.pagination-button:disabled {
    /* Style for inactive buttons */
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--accent-color);
    box-shadow: none;
}

.pagination-numbers-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
}

/* Style for individual page numbers (if they are inserted as spans/buttons) */
.page-number-item { 
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.page-number-item:hover {
    color: var(--link-hover-color);
    text-shadow: 0 0 5px var(--link-hover-color);
}

.page-number-item.active {
    background: var(--accent-color);
    color: var(--secondary-bg-color);
    font-weight: bold;
    box-shadow: 0 0 8px var(--accent-color);
}
/* --- Pagination Number Items (Page 1, 2, 3...) --- */

/* Base style for all page number elements */
.page-number-item {
    /* Ensures buttons/spans are visually similar to text display */
    font-family: 'Share Tech Mono', monospace; 
    padding: 0.3rem 0.7rem; 
    border-radius: 4px;
    
    /* Inactive/default state: dark background, primary color text */
    background: var(--secondary-bg-color); /* Dark background */
    color: var(--primary-color);           /* Cyan text color */
    
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Style for the current/active page number */
.page-number-item.active {
    /* Active state: Inverted colors with a strong glow */
    background: var(--primary-color); /* Bright Cyan background */
    color: var(--secondary-bg-color); /* Dark text on active background */
    font-weight: bold;
    box-shadow: 0 0 8px var(--primary-color);
    cursor: default; /* Not clickable */
}

/* Hover state for clickable page numbers (buttons) */
button.page-number-item:not(.active):hover {
    /* Subtle shift and glow on hover */
    background: #2a3d4a; /* Slightly lighter dark background */
    color: var(--link-hover-color);
    text-shadow: 0 0 5px var(--link-hover-color);
    transform: translateY(-1px); /* Subtle lift */
}

/* Style for the ellipsis (...) to blend in */
.page-number-item[style*="cursor: default"] { /* Targets the dots span */
    background: transparent !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
    padding: 0 0.2rem;
}

/* media css */
/* root sesponsiveness */
@media (max-width: 768px) {
    :root {
        /* Slightly reduce base font size on small screens for better space management */
        font-size: 15px; 
    }
}

/* header */
/* Adjustments for tablets and mobiles (e.g., screens 900px wide and smaller) */
@media (max-width: 900px) {
    .futuristic-header {
        /* Reduce padding and height on smaller screens */
        padding: 2rem 1rem;
    }

    .header-content {
        /* Allow content to stack or use more space */
        flex-direction: column; 
        text-align: center;
        gap: 1.5rem;
    }

    .header-tagline, .header-title, .header-subtitle {
        /* Reduce header text size */
        font-size: 1.5rem; /* Adjust as needed */
    }
}

/* Adjustments for mobile phones (e.g., screens 600px wide and smaller) */
@media (max-width: 600px) {
    .header-title {
        font-size: 2rem; /* Ensure the main title is readable but smaller */
        letter-spacing: 1px;
    }
    .header-tagline, .header-subtitle {
        font-size: 0.8rem;
    }
    .header-links {
        /* Stack social links vertically or reduce spacing */
        justify-content: center;
        gap: 1rem;
    }
    .header-links a {
        font-size: 1.5rem;
    }
}

/* section containers */
@media (max-width: 850px) {
    .about,
    .skills-section,
    .projects-section,
    .contact-section,
    .pagination-controls-wrapper {
        max-width: 95%; /* Use almost the full width of the screen */
        margin-left: auto;
        margin-right: auto;
        /* Reduce side padding for more content space */
        padding: 2rem 1rem; 
    }

    /* Reduce general heading size */
    .about h2,
    .skills-section h2,
    .contact-section h2,
    .projects-section h2 {
        font-size: 1.8em;
    }
}

/* tools */

@media (max-width: 500px) {
    .tools-grid {
        /* Ensure tools wrap properly, increasing the gap slightly */
        gap: 2rem 1rem; 
    }

    .tool {
        /* Give tools a fixed width so 3-4 fit comfortably */
        width: 70px; 
    }
    
    .tool i.tool-icon,
    .tool img.tool-icon-img {
        /* Shrink the icons slightly */
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .tool span {
        /* Shrink the label text */
        font-size: 0.9rem;
    }
}

/* projects */
@media (max-width: 600px) {
    .project-card {
        padding: 1rem; /* Less padding inside the card */
    }

    .project-header {
        /* Allow the title and the "Live Site/View Code" link to stack */
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem; /* Space between stacked items */
    }

    .project-card h3 {
        /* Smaller title */
        font-size: 1.3rem; 
    }
    
    .tech-stack-list {
        /* Increase wrapping gap for tech icons */
        gap: 0.8rem 0.5rem; 
    }
}
/* contact form */
@media (max-width: 500px) {
    .button-submit {
        /* Ensure the submit button takes full width for better tapping */
        width: 100%; 
        align-self: center; 
        justify-content: center;
    }

    .form-input {
        padding: 0.6rem; /* Slightly smaller padding */
        font-size: 0.95em;
    }
}