:root {
    /* Dark Mode (Default) */
    --bg-color: #000000;
    --bg-secondary: #141414;
    --bg-header: rgba(20, 20, 20, 0.9);
    --bg-header-border: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ececec;
    --text-secondary: #969696;
    --text-muted: #969696;
    
    --accent-color: #FD6F00;
    --accent-glow: rgba(253, 111, 0, 0.5);
    
    /* Gradients & Components */
    --card-bg: linear-gradient(145deg, #060606, #1a1a1a);
    --stats-bg: linear-gradient(145deg, #1f1f1f, #1a1a1a);
    --input-bg: linear-gradient(145deg, rgba(26, 26, 26, 0.6), rgba(20, 20, 20, 0.6));
    --footer-bg: linear-gradient(145deg, #1a1a1a, #141414);
    
    --shadow-heavy: 8px 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-light: -8px -8px 16px rgba(40, 40, 40, 0.1);
    
    --circle-inner: rgba(17, 17, 17, 0.65);
    --filter-btn-bg: linear-gradient(145deg, #242424, #1f1f1f);

    /*ring1 and ring2*/
    --primary: #ff6b00; 
    --secondary: #ff6b00;
}

body.light-mode {
    /* Light Mode Overrides */
    --bg-color: #f4f4f4;
    --bg-secondary: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-header-border: rgba(0, 0, 0, 0.1);
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    
    /* Keep accent consistent but potentially legible */
    --accent-color: #e26403; 
    
    --card-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
    --stats-bg: linear-gradient(145deg, #ffffff, #f0f0f0);
    --input-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8));
    --footer-bg: linear-gradient(145deg, #e6e6e6, #ffffff);
    
    --shadow-heavy: 5px 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-light: -5px -5px 10px rgba(255, 255, 255, 0.8);
    
    --circle-inner: rgba(240, 240, 240, 0.65);
    --filter-btn-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
}

html {
    scroll-behavior: smooth; 
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    min-height: 200vh; 
    position: relative;
    font-family: sans-serif;
    color: var(--text-secondary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure the canvas is fixed and covers the screen */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -500;
    background-color: var(--bg-color); 
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.hero-header, .main-content {
    background: transparent !important;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(20, 20, 20, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

body.light-mode::after {
    opacity: 0.1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255,140,60,0.03), transparent 6%),
                radial-gradient(circle at 90% 90%, rgba(80,120,255,0.02), transparent 8%);
    z-index: 0;
    pointer-events: none;
}

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    z-index: 9999;
}

#progressBar {
    height: 100%;
    width: 0%; 
    background-color: var(--accent-color); 
    transition: width 0.5s ease-out; 
}

.hero-header{
    width:100%;
    height: 100%;
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}
.wrapper{
    max-width: 100%;
    position: relative;
    z-index: 1;
}
header{
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    z-index: 10;
    background-color: var(--bg-header); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
    border-bottom: 0.1px solid var(--bg-header-border); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}


.logo-text{
    font-size: 30px;
    font-weight: 500;
    color: var(--accent-color);
    margin-left: 1.5rem;
    text-shadow: 
        0 0 20px var(--accent-glow),
        0 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 8px rgba(253, 111, 0, 0.3));
}

.logo-text img {
    height: 30px;
    width: auto;
    display: block;
}

nav {
    background-color: transparent;
    display: flex;
    align-items: center;
}
nav .navlinks{
    list-style-type: none;
}
nav .navlinks li{
    display: inline-block;
    margin-left: 30px;
}
nav .navlinks li a {
    color: #ffffff;
    color: var(--text-primary);
    margin-right: 1.5rem;
    position: relative;
    text-decoration: none;
    padding-bottom: 3px;
    transition: color 0.3s;
}

nav .navlinks li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav .navlinks li a:hover::after {
    width: 100%;
}

nav .navlinks li a:hover {
    color: var(--accent-color);
}

.theme-toggle {
    cursor: pointer;
    margin-left: 20px;
    margin-right: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

nav .togglebtn {
    width: 30px;
    height: 22px;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

nav .togglebtn span {
    display: block;
    background-color: var(--accent-color);
    width: 100%;
    height: 3px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

@media(max-width: 930px) {
    nav .togglebtn {
        display: flex; 
    }

    .theme-toggle {
        margin-right: 60px; 
    }

    nav .togglebtn.click span:first-child {
        transform: translateY(9.5px) rotate(45deg);
        background-color: var(--text-primary); 
    }

    nav .togglebtn.click span:nth-child(2) {
        transform: scale(0);
        opacity: 0;
    }

    nav .togglebtn.click span:last-child {
        transform: translateY(-9.5px) rotate(-45deg);
        background-color: var(--text-primary);
    }

    nav .navlinks {
        position: fixed;
        inset: 0;
        background: var(--bg-header); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        
        z-index: 9999 !important;
        
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s ease-in-out;
        
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        padding: 0;
    }

    nav .navlinks.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    nav .navlinks li {
        display: block;
        margin: 0;
        opacity: 0; 
        transform: translateY(20px);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    nav .navlinks.open li {
        opacity: 1;
        transform: translateY(0);
    }

    nav .navlinks li a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--text-primary); 
        margin: 0;
        display: inline-block;
    }
    
    nav .navlinks li a:hover {
        color: var(--accent-color);
        transform: scale(1.1);
    }
    
    nav .navlinks li a::after {
        display: none;
    }

    nav .navlinks.open li:nth-child(1) { transition-delay: 0.1s; }
    nav .navlinks.open li:nth-child(2) { transition-delay: 0.2s; }
    nav .navlinks.open li:nth-child(3) { transition-delay: 0.3s; }
    nav .navlinks.open li:nth-child(4) { transition-delay: 0.4s; }
    nav .navlinks.open li:nth-child(5) { transition-delay: 0.5s; }
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 2rem;
    position: relative;
}

.container .hero-bg{
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 0;
}


.container .hero-pic{
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.container .ring-1 {
    position: absolute;
    width: 106%;
    height: 106%;
    top: -3%;
    left: -3%;
    
    border-radius: 50%;
    border: 2px dashed var(--primary);
    border-top-color: transparent;
    border-left-color: transparent;
    z-index: 2;
    pointer-events: none;
    
    animation: spin-right 10s linear infinite;
}

.container .ring-2 {
    position: absolute;
    width: 102%;
    height: 102%;
    top: -1%;
    left: -1%;
    
    border-radius: 50%;
    border: 1px solid var(--secondary);
    border-bottom-color: transparent;
    border-right-color: transparent;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    
    animation: spin-left 8s linear infinite;
}

@keyframes spin-right {
    100% { transform: rotate(360deg); }
}

@keyframes spin-left {
    100% { transform: rotate(-360deg); }
}

.hero-pic img{
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.3s;
}

body.light-mode .hero-pic img {
    filter: grayscale(20%); 
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    justify-content: center; 
    height: 100%; 
}

.hero-text h1, 
.hero-text h2, 
.hero-text h3 {
    margin: 0;     
    line-height: 1.2; 
}

.hero-text h3 {
    color: var(--text-secondary);
    font-size: 20px;
}

.hero-text h2 span {
    color: var(--accent-color);
    font-size: 45px;
    font-family: "Share Tech Mono", monospace;
    letter-spacing: 1px;
}

.hero-text h1 {
    color: var(--text-primary);
    font-size: 65px;
}

.btn-group{
    margin:15px 0;
}
.btn-group .btn, .btn2{
    color: var(--accent-color);
    background-color: var(--bg-secondary);
    border:1px solid var(--accent-color);
    padding: 12px 25px;
    margin: 5px 0px;
    margin-right:7px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-group .btn:hover, .btn2:hover{
     background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color:#141414;
    transform: translateZ(20px) translateY(-2px);
    border-color: #ff8c3a;
}

.btn.active{
    padding: 14px 25px;
    color:#141414;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn.active a, .btn.active{
    color: #141414;
}

.light-mode .btn.active a, .btn.active{
    color:#ffffff;
}

.btn.active:hover {
    background-color: rgba(255, 255, 255, 0.1); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(253, 111, 0, 0.3);
}

.btn, .submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before, .submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn:hover::before, .submit-btn:hover::before {
    left: 100%;
}


.hero-text .social i{
    color: var(--text-secondary);
    font-size: 18px;
    margin-right: 20px;
    margin-top: 20px;
    transition: 0.5s;
}
.hero-text .social i:hover{
    color: var(--accent-color);
    transform: rotate(360deg);
}

.stats-section {
    display: flex;
    justify-content: center; 
    padding: 20px;
    background: var(--stats-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; 
    max-width: 400px; 
    margin: 50px auto; 
    box-shadow: 
        var(--shadow-heavy),
        var(--shadow-light),
        inset 2px 2px 4px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-container {
    display: flex;
    align-items: center; 
    color: var(--text-secondary); 
    text-align: center;
}

.stat-number {
    display: block; 
    font-size: 2em; 
    font-weight: bold;
    color: var(--accent-color); 
    line-height: 1.2; 
    text-shadow: 0 0 10px var(--accent-glow);
}

.stat-label {
    margin: 0; 
    font-size: 1em;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-separator {
    width: 1px;
    height: 60px; 
    background-color: var(--text-secondary);
    opacity: 0.3; 
    margin: 0 10px; 
}

@media (max-width: 480px) {
    .stat-container {
        flex-direction: column; 
    }
    .stat-separator {
        width: 80%;
        height: 1px;
        margin: 10px 0;
    }
    .stat-item {
        padding: 10px 0;
    }
}

@media(max-width:768px)
{
    .container{
        flex-direction: column;
        /* FIX: Increased padding to create space between header and hero */
        padding-top: 8.5rem; 
    }
    
    .hero-text{
        padding: 0px 0px 40px 0px; 
    }
}

.container2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: start;
}

/* Large Tablets (1024px) */
@media (max-width: 1024px) {
    .container2 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        width: 95%;
        padding: 16px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .container2 {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
        padding: 16px;
        margin: 30px auto;
    }
}

/* Small Mobile (600px) */
@media (max-width: 600px) {
    .container2 {
        width: 100%;
        padding: 12px;
        gap: 16px;
        margin: 20px auto;
    }
}

/* Extra Small Mobile (400px) */
@media (max-width: 400px) {
    .container2 {
        width: 100%;
        padding: 10px;
        gap: 12px;
        margin: 15px auto;
    }
}

        /* --- CARDS & SECTIONS --- */
        .card2 {
            background: linear-gradient(145deg, rgba(6,6,6,0.55), rgba(26,26,26,0.45));
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            height: fit-content;
            width: 100%;
            max-width: 100%;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.25s ease, box-shadow 0.25s ease;
            border: 1px solid rgba(255,255,255,0.04);
            backdrop-filter: blur(6px) saturate(120%);
            -webkit-backdrop-filter: blur(6px) saturate(120%);
            box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
        }

        .card2.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Tablet Responsive */
        @media (max-width: 768px) {
            .card2 {
                padding: 20px;
                max-width: 100%;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 600px) {
            .card2 {
                padding: 16px;
                margin-bottom: 16px;
            }
        }

        /* Extra Small Mobile */
        @media (max-width: 400px) {
            .card2 {
                padding: 12px;
                margin-bottom: 12px;
            }
        }

        /* Section Headers */
        h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h2 i {
            color: #ff6b00; /* Orange Icon color */
        }

        /* --- TIMELINE STYLES (Education & Experience) --- */
        .timeline-item {
            position: relative;
            padding-left: 15px;
            margin-bottom: 25px;
            border-left: 2px solid #333;
            display: flex;             
            flex-wrap: wrap;
            margin-right: auto;
        }

        .timeline-item:last-child {
            margin-bottom: 0;
            border-left: 2px solid transparent; /* Stop line for last item */
        }

        /* The Orange Ring Dot */
        .timeline-dot {
            position: absolute;
            left: -6px; /* Center over the line */
            top: 0;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid #ff6b00;
            background-color: #0b0f15;
            box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
        }

        .role {
            color: #ff6b00;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .date{
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 10px;
            margin-top: 5px;
            margin-left: auto;
        }

        /* --- SKILLS GRID STYLES --- */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .skill-tag {
            background: rgba(255,255,255,0.02);
            padding: 12px 15px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            border: 1px solid rgba(255,255,255,0.04);
            transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
            backdrop-filter: blur(6px) saturate(120%);
            -webkit-backdrop-filter: blur(6px) saturate(120%);
            box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.02);
        }

.skill-tag:hover {
    border-color: #ff6b00;
    transform: translateX(5px);
}

.skill-dot {
    width: 6px;
    height: 6px;
    background-color: #ff6b00;
    border-radius: 50%;
}

body.light-mode .card2 {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

body.light-mode .timeline-item {
    border-left: 2px solid #d0d0d0;
}

body.light-mode .timeline-item:last-child {
    border-left: 2px solid transparent;
}

body.light-mode .timeline-dot {
    background-color: #ffffff;
    border: 2px solid #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

body.light-mode .role {
    color: #ff6b00;
    font-weight: 600;
}

body.light-mode .place {
    color: #333333;
    font-size: 0.95rem;
}

body.light-mode .date {
    color: #666666;
    font-size: 0.85rem;
}

body.light-mode .description {
    color: #444444;
    font-size: 0.9rem;
    line-height: 1.4;
}

body.light-mode .skill-tag {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    color: #333333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

body.light-mode .skill-tag:hover {
    border-color: #ff6b00;
    background-color: #fff9f0;
}

body.light-mode h2 {
    color: #333333;
}

body.light-mode h2 i {
    color: #ff6b00;
}

.Skills, .About.me, .Contact.me, .Projects {
padding: 80px;
text-align: center;
color: var(--text-primary);
}

.main-content h1{
    color: var(--text-primary);
    font-size: 50px;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.skill {
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.circle {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  --angle: 0deg;

  background: conic-gradient(var(--accent-color) var(--angle), #222 var(--angle));

  backdrop-filter: blur(6px);

  -webkit-backdrop-filter: blur(6px);

  background-color: rgba(255, 255, 255, 0.05);

  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.4);

  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

body.light-mode .circle {
    background: conic-gradient(var(--accent-color) var(--angle), #ddd var(--angle));
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.8),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.circle:hover {
  transform: scale(1.08);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 30px var(--accent-glow);
}

.circle::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  transform: rotate(30deg);
  pointer-events: none;
}

.circle::after {
  content: "";
  width: 95px;
  height: 95px;
  background: var(--circle-inner);
  border-radius: 50%;
  position: absolute;
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

.icon {
  position: absolute;
  font-size: 32px;
  color: white;
  z-index: 3;
  opacity: 0.4; 
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}

body.light-mode .icon {
    color: #333;
    opacity: 0.7;
}

.meta { 
  margin-top: 12px; 
}

.value {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.label {
  color: var(--text-primary);
  margin-top: 6px;
  font-size: 16px;
  font-family:monospace;
}

.circle {
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

.circle:hover {
  transform: translateY(-10px) scale(1.08);

  box-shadow:
    inset 0 5px 10px rgba(255, 255, 255, 0.25),
    inset 0 -6px 12px rgba(0, 0, 0, 0.45),
    0 12px 25px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(253, 111, 0, 0.4);
}

.circle:hover .icon {
  opacity: 0.9;
  transform: scale(1.12);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(253, 111, 0, 0.7));
}
.contact-section {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
    color: var(--text-secondary);
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.light-mode .contact-section h2 {
    text-shadow: none;
}

.projects-grid {
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 20px 0;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        var(--shadow-heavy),
        var(--shadow-light),
        inset 2px 2px 4px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    
    border: 1px solid var(--accent-color);

    box-shadow: 
        12px 20px 40px rgba(0, 0, 0, 0.8),          
        -8px -8px 20px rgba(40, 40, 40, 0.2),       
        inset 2px 2px 6px rgba(255, 255, 255, 0.08),
        inset -2px -2px 6px rgba(0, 0, 0, 0.6),     
        0 0 40px rgba(253, 111, 0, 0.25);           
}

body.light-mode .card:hover {
    box-shadow:
        12px 20px 40px rgba(0, 0, 0, 0.1),
        -8px -8px 20px rgba(255, 255, 255, 0.8);
}

/* IMAGE */
.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(20px);
}

body.light-mode .card-img {
    filter: grayscale(30%) brightness(1);
}

.card:hover .card-img {
    filter: grayscale(30%) brightness(1);
    transform: translateZ(30px) scale(1.05);
}

/* BODY */
.card-body {
    padding: 24px;
    position: relative;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0) 0%, rgba(28, 28, 28, 0.4) 100%);
    transform: translateZ(10px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body.light-mode .card-body {
    background: transparent;
}

/* CATEGORY ICON */
.category-icon {
    position: absolute;
    top: 55%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-color);
    z-index: 10;
}

.tech {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.light-mode .card-body p {
    text-shadow: none;
}

/* BUTTON */

.button-group {
  display: flex;       
  align-items: center; 
}

.git-btn {
    display: flex;            
    margin: 15px auto;        
    justify-content: center;  
    
    max-width: 40%;
    align-items: center;     
    padding: 10px 20px;
    color: var(--accent-color);
    font-size: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4),
        inset 1px 1px 2px #9e9e9e;
    transform: translateZ(15px);
}

body.light-mode .git-btn {
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px #fff;
    background: #f0f0f0;
}

.git-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;
}

.git-btn:hover::before {
    left: 100%;
}

.git-btn:hover {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color:#141414;
    transform: translateZ(20px) translateY(-2px);
    border-color: #ff8c3a;
}

body.light-mode .git-btn:hover {
    color: #ffffff;
    background: #ff8c3a;
}

.git-btn i{
    color: var(--accent-color);
    margin-left: 8px;
}

.git-btn:hover i{
    color: #141414;
}

body.light-mode .git-btn:hover i{
    color: #ffffff;
}

.btn:hover {
    transform: translateZ(20px) translateY(-2px);
}


.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-mode .form-input {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: rgba(253, 111, 0, 0.5);
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(20, 20, 20, 0.8));
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(253, 111, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

body.light-mode .form-input:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(253, 111, 0, 0.1);
}

.textarea {
    height: 140px;
    resize: none;
    grid-column: span 1;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
}

.dropdown-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.textarea {
    grid-column: span 1;
}

.submit-btn {
    margin-top: 30px;
    padding: 12px 36px;
    font-size: 16px;
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(253, 111, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

body.light-mode .submit-btn {
    color: #000000;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    backdrop-filter: blur(15px);
    color: #fff;
    border-color: rgba(255, 140, 58, 0.8);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 
        0 8px 25px rgba(253, 111, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

body.light-mode .submit-btn:hover {
    color: #000000;
}



@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .textarea {
        grid-column: span 1;
    }
    .submit-btn {
        float: none;
        width: 100%;
    }
}

/*Footer*/
.footer {
    background: var(--footer-bg);
    padding: 40px 0 20px;
    text-align: center;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--accent-glow);
    text-align: center;
    text-align: center;
    width: 100%;     /* Ensures the text box spans the whole width */
    display: block;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin-bottom: 30px;
}

.footer-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
    position: relative;
}

.footer-menu li a:hover::after {
    width: 100%;
}

.footer-menu li a:hover {
    color: var(--accent-color);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.5), rgba(20, 20, 20, 0.5));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

body.light-mode .footer-socials a {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 
        5px 5px 10px rgba(0,0,0,0.1),
        -5px -5px 10px rgba(255,255,255,0.8);
}

.footer-socials a:hover {
    border-color: rgba(253, 111, 0, 0.5);
    color: var(--accent-color);
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    backdrop-filter: blur(15px);
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 
        0 8px 20px rgba(253, 111, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.footer-line {
    width: 60%;
    margin: 20px auto;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(150, 150, 150, 0.3), transparent);
}

.footer-credit {
    color: var(--text-secondary);
    font-size: 14px;
}


.filter-section {
    text-align: center;
    margin-top: 40px;
}

.filter-btn {
    background: var(--filter-btn-bg);
    padding: 8px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-mode .filter-btn {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 
        3px 3px 6px rgba(0,0,0,0.1),
        -3px -3px 6px rgba(255,255,255,0.8);
}

.filter-btn:hover {
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    color: var(--accent-color);
    border-color: rgba(253, 111, 0, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color:#141414;
    border-color: rgba(255, 140, 58, 0.5);
}

body.light-mode .filter-btn.active {
    color: #fff;
}

/* Background canvas and subtle overlays */
#bg-canvas{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.wrapper, .hero-header, .main-content{
    position: relative;
    z-index: 2;
}

footer{
    position: relative;
    z-index: 1;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255,140,60,0.03), transparent 6%),
                radial-gradient(circle at 90% 90%, rgba(80,120,255,0.02), transparent 8%);
    z-index: 0;
    pointer-events: none;
}

/* Responsive typography tweaks */
@media (max-width:768px){
 .hero-text h1{ font-size: 36px;}
 .hero-text h2 span{ font-size: 24px;}
 .container{ padding-top:4rem;}
}

@media (max-width:420px){
 .hero-text h1{ font-size: 28px;}
 .hero-text h2 span{ font-size: 20px;}
}

/* small utility for subtle elevated sections */
.elevated {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}


/*TABLET SCREENS (768px - 1024px)*/

@media screen and (max-width: 1024px) {
    .container {
        padding-top: 6rem;
        gap: 40px;
    }

    .container .hero-pic, 
    .container .hero-bg {
        width: 380px;
        height: 380px;
    }

    .hero-text h1 {
        font-size: 55px;
    }

    .hero-text h2 span {
        font-size: 38px;
    }

    .hero-text h3 {
        font-size: 18px;
    }

    .skills {
        gap: 60px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .Skills, .About.me, .Contact.me, .Projects {
        padding: 60px 40px;
    }
}

/* MOBILE SCREENS (max-width: 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header {
        padding: 15px 10px;
    }

    .logo-text {
        font-size: 24px;
        margin-left: 1rem;
    }

    .logo-text img {
        height: 24px;
        width: auto;
    }

    .container {
        flex-direction: column;
        /* FIX: Increased padding to create space between header and hero */
        padding-top: 8.5rem; 
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 280px;
        height: 280px;
        margin-bottom: 20px; 
        margin-left: auto;   
        margin-right: auto;  
    }

    .hero-text {
        align-items: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text h2 span {
        font-size: 28px;
    }

    .hero-text h3 {
        font-size: 16px;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn-group .btn, .btn2 {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .hero-text .social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .hero-text .social i {
        margin-right: 0;
    }

    .stats-section {
        flex-direction: column;
        max-width: 280px;
        padding: 30px 20px;
        margin: 30px auto;
    }

    .stat-separator {
        width: 80%;
        height: 1px;
        margin: 15px 0;
    }

    .stat-container {
        flex-direction: column;
    }

    .Skills, .About.me, .Contact.me, .Projects {
        padding: 50px 20px;
    }

    .main-content h1 {
        font-size: 36px;
    }

    .skills {
        gap: 50px;
        margin-top: 40px;
    }

    .circle {
        width: 90px;
        height: 90px;
    }

    .circle::after {
        width: 80px;
        height: 80px;
    }

    .icon {
        font-size: 28px;
    }

    .value {
        font-size: 16px;
    }

    .label {
        font-size: 14px;
    }

    .contact-section {
        max-width: 100%;
        padding: 0 20px;
    }

    .contact-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .textarea {
        grid-column: span 1;
        height: 120px;
    }

    .submit-btn {
        width: 100%;
        float: none;
        margin-top: 20px;
    }

    .filter-section {
        margin-top: 30px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
        margin: 5px;
    }

    .projects-grid {
        width: 95%;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }

    .card {
        max-width: 100%;
    }

    .card-img {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .footer {
        padding: 30px 20px 15px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-menu li a {
        font-size: 15px;
    }

    .footer-socials {
        gap: 15px;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-line {
        width: 80%;
    }

    .footer-credit {
        font-size: 12px;
    }
}

/* Small Tablets & Large Mobile (600px) */
@media screen and (max-width: 600px) {
    .projects-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 15px;
    }

    .card {
        border-radius: 14px;
    }

    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 18px;
    }

    .tech {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .card-body p {
        font-size: 12px;
    }

    .git-btn {
        padding: 8px 16px;
        font-size: 11px;
        margin-top: 12px;
    }
}

/* SMALL MOBILE SCREENS (max-width: 480px) */
@media screen and (max-width: 480px) {
    .projects-grid {
        width: 100%;
        padding: 0 10px;
        gap: 15px;
    }

    .card {
        border-radius: 12px;
    }

    .card-img {
        height: 160px;
    }

    .card-body {
        padding: 16px;
    }

    .tech {
        font-size: 11px;
    }

    .card-body p {
        font-size: 11px;
    }

    .git-btn {
        padding: 7px 14px;
        font-size: 10px;
    }

    .logo-text {
        font-size: 20px;
        margin-left: 0.5rem;
    }

    .logo-text img {
        height: 20px;
        width: auto;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 220px;
        height: 220px;
        margin-bottom: 15px; /* Reduced from 30px */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 span {
        font-size: 24px;
    }

    .hero-text h3 {
        font-size: 14px;
    }

    .stats-section {
        max-width: 260px;
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.9em;
    }

    .Skills, .About.me, .Contact.me, .Projects {
        padding: 40px 15px;
    }

    .main-content h1 {
        font-size: 30px;
    }

    .skills {
        gap: 40px;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .circle::after {
        width: 70px;
        height: 70px;
    }

    .icon {
        font-size: 24px;
    }

    .contact-section h2 {
        font-size: 24px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 16px;
    }

    .tech {
        font-size: 12px;
    }

    .card-body p {
        font-size: 12px;
    }

    .git-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-menu li a {
        font-size: 14px;
    }

    .footer-socials a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* LANDSCAPE MOBILE (max-height: 500px) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        padding-top: 4rem;
        min-height: auto;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 220px;
        height: 220px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text h2 span {
        font-size: 20px;
    }
}

/*print style*/
@media print {
    .menu-toggle,
    nav .navlinks,
    .btn-group,
    .social,
    .footer-socials,
    #bg-canvas {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-text h1,
    .hero-text h2 span,
    .main-content h1 {
        color: black;
    }
}