/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --accent-primary: #00f5ff;
    --accent-secondary: #ff006e;
    --accent-gradient: linear-gradient(135deg, #00f5ff 0%, #ff006e 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a35;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none; /* Custom cursor for desktops */
}

/* ================================
   CUSTOM CURSOR
   ================================ */
.cursor-dot, .cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    transition: transform 0.1s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

/* ================================
   PARTICLE CANVAS
   ================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    z-index: 1002;
}

.logo-bracket {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 3rem 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    position: relative;
    animation: glitch-skew 1s infinite;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00f5ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ff006e;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(70px, 9999px, 71px, 0); }
    40% { clip: rect(61px, 9999px, 35px, 0); }
    60% { clip: rect(10px, 9999px, 85px, 0); }
    80% { clip: rect(85px, 9999px, 40px, 0); }
    100% { clip: rect(46px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    20% { clip: rect(52px, 9999px, 74px, 0); }
    40% { clip: rect(79px, 9999px, 85px, 0); }
    60% { clip: rect(75px, 9999px, 5px, 0); }
    80% { clip: rect(30px, 9999px, 43px, 0); }
    100% { clip: rect(97px, 9999px, 71px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(1deg); }
    20% { transform: skew(0deg); }
    30% { transform: skew(-1deg); }
    40% { transform: skew(0deg); }
    50% { transform: skew(0.5deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(-0.5deg); }
    80% { transform: skew(0deg); }
    90% { transform: skew(0.5deg); }
    100% { transform: skew(0deg); }
}

/* Typing Effect */
.typing-container {
    margin-bottom: 1.5rem;
    min-height: 1.6em; /* Prevent layout shift */
}

.typing-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--accent-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.cursor-blink {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.3);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    min-width: 140px;
    text-align: center;
}

.floating-card i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card p {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.card-4 {
    top: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 2;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    padding: 8rem 3rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent-primary);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Code Window */
.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.window-header {
    background: var(--bg-card);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto; /* Enable scroll for long code lines */
}

.code-keyword { color: #ff006e; }
.code-class { color: #00f5ff; }
.code-function { color: #ffbd2e; }
.code-string { color: #27c93f; }

/* ================================
   SKILLS SECTION
   ================================ */
.skills-section {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Improved responsiveness */
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0; /* Default for animation */
}

/* ================================
   PROJECTS SECTION
   ================================ */
.projects-section {
    padding: 8rem 3rem;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Better collapse on mobile */
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.2) rotate(360deg);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat i {
    color: var(--accent-primary);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-section {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-primary);
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all; /* Prevents email overflow */
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

/* ================================
   AOS ANIMATIONS
   ================================ */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ================================
   RESPONSIVE DESIGN (Format Tweaks)
   ================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .hero-container, .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }

    .hero-visual {
        height: 400px;
        order: 0;
        margin-bottom: 2rem;
    }
    
    .floating-card {
        padding: 1.2rem;
    }
    
    /* Mobile Menu Logic */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hide off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 2.5rem;
        z-index: 1001;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .skills-container, .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .about-text, .about-visual {
        text-align: left; /* Reset text align for readability */
    }
    
    .about-visual {
        margin-top: 2rem;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    body {
        cursor: auto; /* Revert to default cursor on touch */
    }
    
    .cursor-dot, .cursor-ring {
        display: none;
    }
    
    .hero-section {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Optimizing Hero Visual for Mobile */
    .hero-visual {
        height: 320px;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        min-width: auto;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .floating-card p {
        font-size: 0.8rem;
    }
    
    /* Adjusted positions to fit small screens */
    .card-1 { top: 5%; left: 0%; }
    .card-2 { top: 40%; right: 0%; }
    .card-3 { bottom: 10%; left: 5%; }
    .card-4 { top: 10%; right: 5%; }
    
    .scroll-indicator {
        display: none; /* Hide on mobile to save space */
    }
    
    .about-section, .skills-section, .projects-section, .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .glitch {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    /* Tighten layout for very small screens */
    .card-1 { top: 0%; left: 0%; }
    .card-2 { top: 45%; right: 0%; }
    .card-3 { bottom: 5%; left: 0%; }
    .card-4 { top: 10%; right: 0%; }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .code-content {
        font-size: 0.75rem;
        padding: 1rem;
    }
}
/* Dashboard Main Container */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: rgba(15, 15, 25, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sidebar Styling */
.db-sidebar {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.db-tab {
    background: transparent;
    border: none;
    color: #888;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s all ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-tab.active {
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    border-left: 3px solid #00ffff;
}

/* Dashboard Content & Grid */
.db-content { padding: 40px; }

.db-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.db-chart-container {
    position: relative;
    max-width: 220px;
    margin: auto;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
}

#chart-percent {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #00ffff;
}

/* Proficiency Bars */
.db-bar-item { margin-bottom: 22px; }

.db-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
}

.db-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.db-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .dashboard-wrapper { grid-template-columns: 1fr; }
    .db-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Container to handle centering */
.cv-center-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    width: 100%;
}

/* Updated Gradient Button with Animation */
.btn-resume-gradient {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(90deg, #37e2ee 0%, #4b90f9 45%, #e92e8d 100%);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    /* Added Pulsing Glow Animation */
    animation: pulse-glow 2s infinite;
}

.btn-resume-gradient:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(233, 46, 141, 0.5);
    filter: brightness(1.1);
    animation: none; /* Stops pulsing on hover for a clean feel */
}

/* The Pulsing Animation Logic */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(55, 226, 238, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(55, 226, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(55, 226, 238, 0);
    }
}

.cv-tagline {
    margin-top: 18px;
    color: #a0a0b0;
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.5px;
}
/* Contact Section Dashboard */
.contact-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    margin-top: 40px;
}

/* Left Sidebar (Info) */
.contact-info-side {
    padding: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--border-color);
}

.side-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Right Side (Form) */
.contact-form-side {
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

/* Matching the Resume Gradient for Send Button */
.btn-send {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    animation: none !important; /* No pulse here for stability */
}

.btn-send:hover {
    transform: scale(1.02);
}

/* Responsive Fix */
@media (max-width: 900px) {
    .contact-dashboard {
        grid-template-columns: 1fr;
    }
    .contact-info-side {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}
/* Credentials Layout Wrapper */
.credentials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 30px;
}

.column-subtitle {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

/* Certification Items (Minimalist List) */
.cred-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cred-item-alt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
    transition: 0.3s ease;
}

.cred-item-alt h4 { font-size: 1.1rem; margin-bottom: 5px; }
.cred-item-alt p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }

.cred-item-alt:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 255, 0.05);
    transform: translateX(8px);
}

/* Internship Card Style */
.intern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.intern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.date-badge {
    background: rgba(255, 0, 110, 0.1);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.intern-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.intern-body .company {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.intern-tasks {
    list-style: none;
    margin-bottom: 1.5rem;
}

.intern-tasks li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.intern-tasks li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Helpers */
.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.multi-links {
    display: flex;
    gap: 15px;
}

.cred-link-minimal {
    text-decoration: none;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .credentials-wrapper { grid-template-columns: 1fr; }
}
.status-text {
    font-size: 2.5rem; /* Matches your counter font size */
    font-weight: 700;
    background: var(--accent-gradient); /* Uses your brand teal-to-pink gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif; /* Maintains font consistency */
}