/* Base Variables - Premium Palette */
:root {
    /* Light Mode - Soft & Eye-Friendly */
    --bg-color: #f5f6f8;
    --text-color: #3a3f47;
    --text-muted: #6b7280;
    --primary-color: #7c73e6;
    --primary-rgb: 124, 115, 230;
    /* Softer Purple */
    --secondary-color: #4db8a0;
    /* Muted Teal */

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(200, 205, 215, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

    --card-bg: rgba(255, 255, 255, 0.75);
    --nav-bg: rgba(255, 255, 255, 0.75);

    --gradient-1: linear-gradient(135deg, #8b82e8 0%, #b5aef5 100%);
    --gradient-text: linear-gradient(45deg, #7c73e6, #4db8a0);

    --body-bg: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
    --bg-alt: #eef0f3;
    /* Subtle alternative for sections */
}

/* Dark Mode - Deep & Rich */
[data-theme="dark"] {
    --bg-color: #0f0f12;
    /* Very dark slate */
    --text-color: #ecf0f1;
    --text-muted: #b2bec3;
    --primary-color: #8c7ae6;
    /* Lighter Purple */
    --secondary-color: #55efc4;

    --glass-bg: rgba(25, 25, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --card-bg: rgba(30, 30, 40, 0.6);
    --nav-bg: rgba(15, 15, 18, 0.8);

    --body-bg: linear-gradient(to top, #09203f 0%, #537895 100%);
    /* Deep ocean gradient */
    /* Alternate Dark BG: linear-gradient(120deg, #2b32b2 0%, #1488cc 100%); Too bright? */
    --body-bg: radial-gradient(circle at 50% 10%, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    --bg-alt: #16161d;
    /* Slightly lighter deep slate */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Project Badges --- */
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.badge-item {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
}

.badge-major {
    background: rgba(0, 184, 148, 0.15);
    color: var(--secondary-color);
    border-color: rgba(0, 184, 148, 0.3);
}

.badge-minor {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-color);
    border-color: rgba(108, 99, 255, 0.3);
}

.badge-group {
    background: rgba(69, 170, 242, 0.15);
    color: #45aaf2;
    border-color: rgba(69, 170, 242, 0.3);
}

.badge-stack {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

html {
    scroll-padding-top: 85px;
    /* Offset for fixed navbar anchor linking */
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    background: var(--body-bg);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 80px;
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;

    /* Glass Effect */
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (max-width: 320px) {
    .navbar {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.5rem;
    }
}



.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 0.8rem;
}

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    padding: 0;
    pointer-events: none;
}

@media (min-width: 969px) {
    .nav-links {
        display: flex;
    }
}

.nav-links.active {
    display: flex;
    max-width: 800px;
    opacity: 1;
    transform: translateX(0) scale(1);
    padding: 0 1.5rem;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links li {
    margin: 0;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links.active li {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Staggered Delays for links */
.nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    /* Ensure full pill is hit-able */
}

.nav-links a:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* Hover Line Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.theme-btn:hover {
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.corner-btn {
    order: 3;
    /* Ensure it's always at the end */
}

.hamburger {
    order: 2;
    display: flex;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.hamburger.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- Hero Section (Premium Overhaul) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0 40px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

/* Left Column: Text Content */
.hero-text {
    text-align: left;
}

.badge-new {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
    animation: fadeInDown 0.8s ease;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.typewriter-roles {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrap on small desktop if really needed, but try to keep inline */
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.typewriter-roles .dot {
    display: none;
}

.typewriter-roles span:not(.dot) {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    font-weight: 600;
    color: var(--text-color) !important;
}

/* Role Specific Styling - Global Colors */
.typewriter-roles .role-main {
    /* grid-column properties removed from global scope */
    background: rgba(65, 88, 208, 0.15);
    /* Royal Blue Tint */
    border-color: rgba(65, 88, 208, 0.3);
}

.typewriter-roles .role-learner {
    background: rgba(0, 184, 148, 0.15);
    /* Soft Cyan/Green Tint */
    border-color: rgba(0, 184, 148, 0.3);
}

.typewriter-roles .role-solver {
    background: rgba(253, 203, 110, 0.2);
    /* Warm Amber/Gold Tint */
    border-color: rgba(253, 203, 110, 0.4);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 550px;
    word-wrap: break-word;
}

@media (max-width: 320px) {
    .hero-description {
        font-size: 1rem;
    }
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    padding: 1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
}

/* Right Column: Visual Elements */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    padding: 20px;
    animation: float 6s infinite ease-in-out;
}

.profile-image-container {
    width: clamp(250px, 80vw, 320px);
    height: clamp(250px, 80vw, 320px);
    margin: 0 auto;
    border-radius: 50%;
    padding: 10px;
    background: var(--gradient-1);
    box-shadow: 0 25px 60px rgba(108, 99, 255, 0.4);
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
}

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

.role-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.experience-badge {
    background: rgba(0, 184, 148, 0.1);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Floating Elements */
.floating-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--glass-shadow);
    z-index: 6;
    animation: floatBubble 5s infinite ease-in-out;
}

.code-bubble {
    top: -10px;
    right: -20px;
    animation-delay: 1s;
}

.rocket-bubble {
    bottom: 20px;
    left: -30px;
    animation-delay: 2s;
}

/* Orbs Background */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: floatOrb 20s infinite linear;
}

.orb-1 {
    width: clamp(150px, 40vw, 400px);
    height: clamp(150px, 40vw, 400px);
    background: var(--primary-color);
    top: -100px;
    right: -50px;
}

.orb-2 {
    width: clamp(120px, 35vw, 350px);
    height: clamp(120px, 35vw, 350px);
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: clamp(100px, 30vw, 300px);
    height: clamp(100px, 30vw, 300px);
    background: var(--accent-color);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@media (max-width: 480px) {
    .orb-3 {
        display: none;
    }

    .orb-1 {
        right: -20px;
        top: -50px;
        width: 250px;
        height: 250px;
    }

    .orb-2 {
        left: -20px;
        bottom: -20px;
        width: 200px;
        height: 200px;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, 50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

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

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

/* Responsive Overrides for Hero */
@media (max-width: 968px) {
    .hero {
        align-items: flex-start;
        height: auto;
        min-height: auto;
        padding-top: 40px;
    }

    .hero-container {
        width: 90%;
        max-width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .hero-text {
        text-align: center;
        min-height: 85vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .typewriter-roles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .typewriter-roles .role-main {
        grid-column: 1 / -1;
    }

    .typewriter-roles .dot {
        display: none;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        padding: 2rem 0 4rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.5rem, 12vw, 2.5rem);
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .typewriter-roles span:not(.dot) {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-profile-card {
        padding: 2rem 1.5rem;
    }
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a29bfe 0%, #6C63FF 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

/* --- Sections General --- */
.section {
    padding: 7rem 5%;
    position: relative;
    transition: background 0.5s ease;
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 5%;
    }
}

#about,
#approach {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.active::after {
    width: 120px;
}

/* --- About Section (Enhanced Layout) --- */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 968px) {
    .about-content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .about-text {
        text-align: center;
    }

    .about-info-card {
        width: 100%;
        position: static;
    }
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Interests Tags */
.interests-container h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.line-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
}

.tag {
    background: var(--card-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tag i {
    color: var(--primary-color);
}

.tag:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* About Info Card (Glassmorphism) */
.about-info-card {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: sticky;
    top: 120px;
}

.info-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    border: 4px solid var(--glass-border);
    animation: floatAvatar 4s ease-in-out infinite;
}

@keyframes floatAvatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.info-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.info-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.info-list li span {
    font-weight: 600;
    color: var(--text-color);
}

.info-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item small {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Skills Arsenal --- */
.skills-arsenal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 968px) {
    .skills-arsenal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.arsenal-category {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.8rem 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (max-width: 480px) {
    .arsenal-category {
        padding: 1.2rem 0.8rem;
    }
}

.arsenal-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.arsenal-category h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.arsenal-category h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.arsenal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.skill-card {
    background: rgba(255, 255, 255, 0.5);
    /* Slightly different bg for contrast inside glass box */
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

    flex: 1 1 80px;
    max-width: 130px;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* Specific Grid for Web Tech (3 columns) */
.web-tech .arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    justify-items: center;
}

@media (max-width: 480px) {
    .web-tech .arsenal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .web-tech .arsenal-grid {
        grid-template-columns: 1fr;
    }
}

.web-tech .skill-card {
    max-width: 100%;
    /* Allow to fill grid cell */
    width: 100%;
}

[data-theme="dark"] .skill-card {
    background: rgba(255, 255, 255, 0.03);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
    display: block;
}

.skill-card i:not([style*="color"]) {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}


/* --- Contact Section (Polished) --- */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-main {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    text-align: center;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-main:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Work Status - Pulsing Indicator */
.work-status {
    background: rgba(0, 184, 148, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 184, 148, 0.2);
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulsar {
    width: 10px;
    height: 10px;
    background: #00b894;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #00b894;
}

.pulsar::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00b894;
    border-radius: 50%;
    animation: pulsar-ping 1.5s infinite ease-out;
}

@keyframes pulsar-ping {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00b894;
}

/* Contact Grid & Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-header h3 {
        font-size: 1.8rem;
    }

    .contact-info-main {
        padding: 2.5rem 1.5rem;
    }
}

.contact-item-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

.contact-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item-card:hover .contact-icon-box {
    background: var(--gradient-1);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.contact-item-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-item-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.social-card:hover {
    transform: translateX(10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.15);
}

.social-card:hover .social-icon-box {
    transform: rotate(10deg);
}

/* --- Methodology Section --- */
.approach-container {
    max-width: 1200px;
    margin: 0 auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.approach-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
}

.approach-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

.approach-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.approach-card:hover .approach-icon-box {
    background: var(--gradient-1);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.approach-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Footer (Premium Glassmorphism) --- */
.footer {
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 400px;
}

.footer-about-details {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    max-width: 450px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.footer-social-grid {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.footer-social-item {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
    border-color: var(--primary-color);
}

.footer-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-location i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 2rem;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-made-with i {
    font-size: 0.8rem;
    margin: 0 2px;
}

.fa-heart {
    color: #e74c3c;
}

.fa-code {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-about {
        margin: 0 auto;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-grid {
        justify-content: center;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Global Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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





/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .typewriter-roles {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 12px;
    }

    .typewriter-roles .role-main {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        /* Ensure it spans and centers properly */
        text-align: center;
    }

    .nav-links.active {
        position: absolute;
        right: 0;
        top: 70px;
        width: 100%;
        max-width: none;
        height: auto;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(0);
        opacity: 1;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-container {
        padding: 0;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .about-info-card {
        position: static;
        width: 100%;
    }

    .skills-arsenal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .arsenal-category {
        width: 100%;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info-main {
        padding: 2rem 1.5rem;
    }

    .contact-item-card {
        padding: 2rem 1.5rem;
    }
}