@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Orbitron:wght@400..900&display=swap');
/* Title: Orbitron, subtitle: Audiowide, text: IBM Plex Mono*/

:root {
    --primary-purple: #9900a1;
    --primary2-purple: #67006d;
    --secondary-purple: #4801ad;
    --third-purple: #a78bfa;
    --accent-blue: #2e8eff;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(25, 25, 25, 0.8);    
    --clear-bg: rgba(72, 1, 173, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --warning: #fbbf24;
    --error: #ef4444;
    --border-glow: rgba(153, 0, 161, 0.3);
    --grid-size: 20px;
    --text-gradient: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    --popup-gradient: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    --tag: rgba(139, 92, 246, 0.2);
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary-purple); 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary2-purple); 
}


html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 400;
    overflow-x: hidden;
}

#intro {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-bg);
    color: #4801ad;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

#intro svg {
    width: clamp(250px, 80vw, 500px);
    height: auto;
    z-index: 1;
}

#main-content {
    display: none;
    padding: 12px;
    color: white;
}

.particle-container { 
    position: fixed; 
    inset: 0; 
}

.particle {
    position: absolute;
    width: clamp(4px, 1vw, 8px);
    height: clamp(4px, 1vw, 8px);
    border-radius: 50%;
    filter: blur(1px);
}

.falling {
    background: var(--secondary-purple);
    animation: fall linear infinite;
}

@keyframes fall {
    from { 
        transform: translateY(-10px); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { 
        transform: translateY(100vh); 
        opacity: 0; 
    }
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 8vw, 48px);
    font-weight: 700;
}

.subtitle {
    font-family: 'Audiowide', sans-serif;
    font-size: clamp(16px, 4vw, 26px);
    font-weight: 400;
}

@media (max-width: 680px) {
    .subtitle {
        display: none;
    }
}

.code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 500;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
    position: relative;
    padding-bottom: 150px;
    padding-top: 75px;
}

.quote-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.quote-content {
    background: var(--popup-gradient);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 12px;
    text-align: center;
    max-width: 95%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-family: sans-serif;
}

/* .chatbot-button {
    position: fixed;
    bottom: clamp(15px, 3vw, 20px);
    right: clamp(15px, 3vw, 20px);
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background-color: var(--primary-purple);
    color: white;
    font-size: clamp(20px, 5vw, 28px);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000;
    display: none;
}

.chatbot-button:hover {
  background-color: var(--primary2-purple);
  transform: scale(1.05);
}

.chatbot-logo {
    width: clamp(30px, 8vw, 45px);
    height: auto;
    fill: black;
}*/

.scroll-down-arrows {
    width: clamp(60px, 15vw, 80px);
    height: clamp(75px, 18vw, 100px);
    position: absolute;
    left: 50%;
    margin-left: clamp(-30px, -7.5vw, -40px);
    bottom: clamp(20px, 5vh, 30px);
    padding: 10px;
}

.scroll-down-arrows path {
    stroke: var(--primary-purple);
    fill: transparent;
    stroke-width: 3px;
    animation: arrow 2s infinite;
    filter: drop-shadow(0px -2px 2px rgba(153, 0, 161, 0.5));
}

@keyframes arrow {
    0% {opacity:0}
    40% {opacity:1}
    80% {opacity:0}
    100% {opacity:0}
}

.scroll-down-arrows path.a1 {
    animation-delay:-1s;
}

.scroll-down-arrows path.a2 {
    animation-delay:-0.5s;
}

.scroll-down-arrows path.a3 { 
    animation-delay:0s;
}

nav {
    background: var(--clear-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-purple);
    padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 32px);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: -5vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: clamp(16px, 4vw, 32px);
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(14px, 2.5vw, 16px);
}

.nav-links a:hover {
    color: var(--primary-purple);
    text-shadow: 0 0 10px var(--primary-purple);
}

.nav-links a::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
    transition: all 0.3s ease;
}

.hamburger:focus {
    outline: none;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 0 5px rgba(153, 0, 161, 0.5);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(72, 1, 173, 0.2) 100%);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--secondary-purple);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 60px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 24px;
        font-weight: 500;
        padding: 15px 20px;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: visible;
        display: block;
        width: 100%;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-purple);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .nav-links a:hover::after {
        width: 80%;
    }
    
    .nav-links a:hover {
        color: var(--primary-purple);
        text-shadow: 0 0 15px var(--primary-purple);
        transform: translateX(10px);
    }
    
    .nav-links a::before {
        content: '';
        opacity: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
}

.home-container {
    transform: rotate(2deg);
    padding: clamp(30px, 8vw, 60px);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    top: clamp(-10vh, -5vw, -20vh);
}

@media (max-width: 912px) {
    .home-container {
        flex-direction: column;
        text-align: center;
        transform: rotate(0deg);
        padding: 20px;
        top: -5vh;
    }
}

.home-content {
    flex: 1;
    margin-right: 10px;
}

@media (max-width: 912px) {
    .home-content {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.home-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 8vw, 68px);
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--secondary-purple));
    animation: pulse 3s infinite;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
}

/* Additional mobile-specific adjustments for home text */
@media (max-width: 480px) {
    .home-text {
        line-height: 1.1;
        letter-spacing: -1px;
    }
}

@media (max-width: 320px) {
    .home-text {
        letter-spacing: -0.5px;
    }
}
 
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.moving-line-container {
    margin-top: -20px;
    display: flex;
    white-space: nowrap;
    width: clamp(300px, 80vw, 640px);
    height: 20px;
    overflow: hidden;
    color: var(--primary-purple);
    user-select: none;
}

@media (max-width: 912px) {
    .moving-line-container {
        width: 100%;
        margin-top: -10px;
    }
}

.moving-line {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    padding: 0 4px;
    animation: loopText 7s infinite linear;
    text-shadow: 0px 0px 5px rgba(153,0,161,1);
    letter-spacing: -3px;
}

@keyframes loopText {
    from {transform: translate(-100%);}
    to {transform: translate(0);}
}

.profile-pic {
    width: clamp(80px, 20vw, 120px);
    height: auto;
    border-radius: 50%;
}

.about-container {
    background: car(--clear-bg);
    border: 1px solid var(--secondary-purple);
    border-radius: 16px;
    padding: clamp(20px, 6vw, 32px);
    backdrop-filter: blur(15px);
    display: grid;
    align-items: center;
    text-align: center;
    margin-top: clamp(-8vh, -3vw, -15vh);
    max-width: 95%;
}

.skill-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--secondary-purple);
    border-radius: 16px;
    padding: clamp(12px, 3vw, 16px);
    backdrop-filter: blur(15px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    width: clamp(120px, 25vw, 22vh);
    min-width: 100px;
    text-align: center;
    user-select: none;
    transform-origin: center;
    perspective: 600px;
}

.skill-card:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
    animation: skillbounce 0.6s ease infinite;
    transform: translateY(-5px);
}

@keyframes skillbounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.circle-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--dark-bg);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
}

.circle-transition.expand {
    z-index: 999;
    opacity: 1;
    animation: circleTransition 1s ease forwards;
}

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

.skill-card img {
    width: clamp(35px, 8vw, 50px);
    height: auto;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 45vw, 280px), 1fr));
    gap: clamp(16px, 4vw, 24px);
    padding: clamp(16px, 4vw, 24px);
    margin: clamp(20px, 5vw, 32px) auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

.project-card {
    background: var(--clear-bg);
    border: 1px solid var(--secondary-purple);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 723px) {
    .project-card {
        width: 50%;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
}

/* Inside card details */
.project-card img {
    width: 100%;
    height: clamp(150px, 25vw, 200px);
    object-fit: cover;
}

.project-info {
    padding: clamp(12px, 3vw, 16px);
    padding-bottom: clamp(20px, 5vw, 32px);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2px, 1vw, 4px);
    margin-top: 8px;
    justify-content: center;
}

.tech-tag {
    background: var(--tag);
    color: var(--primary-purple);
    padding: clamp(2px, 1vw, 4px) clamp(4px, 2vw, 6px);
    border-radius: 20px;
    font-size: clamp(10px, 2.5vw, 14px);
    border: 1px solid var(--secondary-purple);
}

.project-links {
    display: flex;
    gap: clamp(16px, 4vw, 32px);
    list-style: none;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.project-link {
    color: var(--secondary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(14px, 2.5vw, 16px);
}

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

.project-link::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-link:hover::before {
    opacity: 1;
}

.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 1000;
    padding: clamp(20px, 5vh, 40px);
    overflow: auto;
}

.popup-content {
    position: relative;
    margin: auto;
    padding: clamp(10px, 3vw, 20px);
    width: clamp(300px, 90vw, 60%);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    background: var(--clear-bg);
    border: 1px solid var(--secondary-purple);
    border-radius: 16px;
    backdrop-filter: blur(32px);
    text-align: center;
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.popup-close {
    color: white;
    float: right;
    font-size: clamp(24px, 6vw, 32px);
    font-weight: bold;
    transition: all 0.2s ease;
}

.popup-close:hover,
.popup-close:focus {
    color: var(--primary-purple);
    text-decoration: none;
}

.popup-title {
    color: white;
    text-align: center;
}

.popup-title .moving-line-container {
    margin-left: auto;
    margin-right: auto;
    width: clamp(150px, 50vw, 25%);
    margin-top: -10px;
}

.popup-info {
    padding: 2px clamp(8px, 3vw, 16px);
}

.see-more-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border: none;
    border-radius: 12px;
    padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
    color: white;
    font-weight: 600;
    font-size: clamp(16px, 4vw, 26px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(153, 0, 161, 0.4);
}

.contact-container {
    background: var(--clear-bg);
    border: 1px solid var(--secondary-purple);
    border-radius: 20px;
    padding: clamp(24px, 6vw, 48px);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 20px var(--secondary-purple);
    max-width: clamp(300px, 90vw, 600px);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-purple), var(--third-purple), var(--secondary-purple));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-container:hover::before {
    opacity: 0.2;
}

.form-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(24px, 8vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: clamp(16px, 4vw, 24px);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-purple);
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 500;
}

.form-label::before {
    content: '> ';
    color: var(--accent-blue);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: clamp(12px, 3vw, 16px);
    background: var(--card-bg);
    border: 1px solid var(--secondary-purple);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    resize: none;
    border-radius: 16px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 2px var(--secondary-purple);
    background: rgba(0, 0, 0, 0.7);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.form-textarea {
    min-height: clamp(100px, 20vw, 120px);
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 3vw, 16px);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.submit-btn {
    width: 100%;
    padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
    background: var(--secondary-purple);
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.submit-btn:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-purple);
}

.char-count {
    font-size: clamp(10px, 2vw, 12px);
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 40px);
    flex-direction: column;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: row;
    gap: clamp(10px, 1vw, 1.5vw);
    padding-top: 10vh;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.float-wrapper {
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    animation-duration: var(--duration);
    will-change: transform;
}

.footer-column {
    background: linear-gradient(45deg, rgba(72, 1, 173, 0.3), rgba(167, 139, 250, 0.3), rgba(72, 1, 173, 0.3));
    border: 1px solid var(--secondary-purple);
    border-radius: 20px;
    padding: clamp(24px, 6vw, 48px);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 20px var(--secondary-purple);
    width: clamp(280px, 85vw, 30vw);
    max-width: 400px;
    text-align: center;
    transform: translateY(var(--base-offset));
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 1024px) {
    .footer-column {
        transform: translateY(0);
    }
}


.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.footer-info a {
    background-color: var(--tag);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    border-radius: 999px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: clamp(14px, 2.5vw, 16px);
}

.footer-info a:hover {
    transform: scale(1.05);
    background-color: var(--primary-purple);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-info a::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -100px;
    opacity: 0.6;}

.footer-info a:hover::before {
    animation: shine 1.5s ease-out infinite;
}

@keyframes shine {
    0% {
        left: -100px;
    }
    60% {
        left: 100%;
    }
    to {
        left: 100%;
    }
}


.footer-btn {
    background: none;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000;
}

.svg-logo {
    transition: transform 0.2s;
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    fill: black;
}

.svg-logo:hover {
    fill: var(--accent-blue);
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.copyright-footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: clamp(50px, 12vw, 70px);
    padding-left: clamp(10px, 3vw, 10px);
    padding-right: clamp(10px, 3vw, 10px);
}

.copyright-footer .moving-line-container {
    width: 100%;
}

.pulse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,90,240,0.6), rgba(98,70,234,0.2));
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
}

.not-found-content {
    z-index: 1;
    position: relative;
    background: rgba(20, 20, 30, 0.9);
    padding: clamp(30px, 8vw, 60px) clamp(20px, 6vw, 40px);
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px rgba(127, 90, 240, 0.3);
    max-width: 90vw;
    margin: 20px;
}

.go-back-btn {
    display: inline-block;
    padding: clamp(10px, 3vw, 14px) clamp(20px, 6vw, 32px);
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #7f5af0, #6246ea);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.4);
    transition: all 0.3s ease;
}

.go-back-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px var(--primary-purple);
}

.go-back-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: 0.75s;
}

.go-back-btn:hover::before {
    left: 125%;
}


/* Mobile-specific optimizations */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    section {
        padding: 15px;
        padding-bottom: 60px;
        padding-top: 30px;
    }
    
    .home-container {
        padding: 50px;
        transform: none;
    }
    
    .skill-container {
        gap: 8px;
    }
    
    .skill-card {
        width: clamp(80px, 40vw, 120px);
        padding: 8px;
    }
    
    .project-container {
        gap: 12px;
        padding: 8px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .tech-stack {
        gap: 2px;
    }
    
    .tech-tag {
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .popup-content {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }
    
    .contact-container {
        padding: 20px;
        margin: 10px;
    }
    
    .footer-container {
        gap: 15px;
        padding-top: 5vh;
    }
    
    .footer-column {
        width: 90vw;
        padding: 20px;
    }
}

/* Tablet optimizations */
@media (min-width: 481px) and (max-width: 1024px) {
    .home-container {
        padding: 40px;
    }
    
    .skill-container {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .skill-card {
        width: clamp(140px, 20vw, 180px);
    }
    
    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-column {
        width: clamp(300px, 45vw, 400px);
        margin-bottom: 20px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .project-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
    
    .skill-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .footer-container {
        margin: 0 auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .skill-card:hover,
    .project-card:hover,
    .nav-links a:hover,
    .project-link:hover {
        transform: none;
        box-shadow: none;
        color: inherit;
        text-shadow: none;
        border-color: inherit;
    }
    
    .skill-card:active,
    .project-card:active {
        transform: scale(0.98);
    }
    
    .see-more-btn:hover,
    .submit-btn:hover,
    .go-back-btn:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    .see-more-btn:active,
    .submit-btn:active,
    .go-back-btn:active {
        transform: scale(0.98);
    }
    
    /* Remove hover animations on touch devices */
    .nav-links a::before,
    .project-link::before {
        display: none;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .skill-card img,
    .project-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape phone optimizations */
@media (max-width: 896px) and (orientation: landscape) {
    section {
        min-height: auto;
        padding: 20px 40px;
    }
    
    .home-container {
        top: 0;
        margin-top: 20px;
    }
    
    .footer-main {
        height: auto;
        min-height: 100vh;
    }
    
    .scroll-down-arrows {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        display: none;
    }
    
    .moving-line {
        animation: none;
    }
    
    .scroll-down-arrows path {
        animation: none;
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #bb00cc;
        --secondary-purple: #5500bb;
        --text-secondary: #cccccc;
        --card-bg: rgba(0, 0, 0, 0.9);
    }
    
    .skill-card,
    .project-card,
    .contact-container,
    .footer-column {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .particle-container,
    .scroll-down-arrows,
    .chatbot-button,
    nav {
        display: none !important;
    }
    
    section {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .project-card,
    .skill-card,
    .footer-column {
        break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .home-text,
    .form-title,
    .logo {
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}