/* Complete UI redesign - Enhanced modern theme */
:root {
    /* Color scheme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-accent: #1e1e1e;
    --bg-card: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --accent-color: #9d4edd;
    --accent-secondary: #6a00f4;
    --accent-hover: #c77dff;
    --accent-glow: rgba(157, 78, 221, 0.6);
    
    /* Gradients and effects */
    --gradient-primary: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    --gradient-glow: linear-gradient(135deg, #9d4edd, #c77dff, #6a00f4);
    --transition-speed: 0.4s;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    
    /* Layout */
    --border-radius: 8px;
    --card-border: 1px solid rgba(255, 255, 255, 0.03);
    --card-blur: blur(20px);
}

/* Base styles - Consolidated text handling properties */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(106, 0, 244, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Consolidated text handling for all text elements */
p, h1, h2, h3, h4, h5, h6, span, a, button, div, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-word;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    line-height: 1.6;
}

/* Apply justified text to content paragraphs */
p, .timeline-item p, .project-card p, .activity-content p, 
.about-summary p, .about-text p, .category-description, 
.timeline-item li, .hero-description p {
    text-align: justify;
    text-justify: inter-word;
}

/* Consolidated container styles */
.container, .project-content, .activity-content, .feature-box, 
.about-card, .skill-category, .contact-content, 
.timeline-item, .hero-description {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Universal image sizing */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Optimized style for interactive elements */
.nav-link, .btn, .skill-name, .project-tags span, .activity-tags span {
    text-overflow: ellipsis;
    white-space: normal;
    overflow: visible;
}

/* Fix for links and code */
a, code, pre {
    word-break: break-all;
    word-wrap: break-word;
}

/* Common animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    0%   { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes float {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-40px) rotate(180deg); }
    100% { transform: translateY(40px) rotate(360deg); }
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%  { transform: translateY(-10px); }
    60%  { transform: translateY(-5px); }
}

@keyframes pulseBolt {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.2); }
}

@keyframes burstIn {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInStagger {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulseLight {
    0%, 100% { opacity: 0.1; }
    50%      { opacity: 0.2; }
}

@keyframes spinBurst {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes rotateBackground {
    0%   { transform: rotate(35deg); }
    100% { transform: rotate(395deg); }
}

@keyframes orbit {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit-child {
    0%   { transform: scale(0.8); opacity: 0.5; }
    50%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes glitch-effect {
    0%   { transform: translate(0); }
    20%  { transform: translate(-3px, 3px); }
    40%  { transform: translate(-3px, -3px); }
    60%  { transform: translate(3px, 3px); }
    80%  { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Replace the rotateText animation with typewriter styling */
@keyframes blink {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: var(--accent-color); }
}

.text-rotate {
    display: inline-block;
    color: var(--accent-color);
    position: relative;
    padding-right: 3px;
    min-width: 10px; /* Ensure space for cursor when empty */
}

.text-rotate.typing {
    border-right: 2px solid var(--accent-color);
    animation: blink 0.7s infinite;
}

/* Remove the old rotateText animation and after pseudo-element */
.text-rotate::after {
    content: none; /* Remove the content that was using rotateText animation */
}

/* Layout and sections */
main {
    min-height: 100vh;
    padding-top: 80px;
}

.section {
    display: block;
    min-height: 100vh;
    padding: 100px 0;
    opacity: 1;
    position: relative;
}

.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.2;
}

.section-title {
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 10px;
}

/* Header and navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Navigation links and buttons */
.nav-link, .nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 0;
    transition: all var(--transition-speed);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-link::after, .nav-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: width var(--transition-speed);
}

.nav-link:hover, .nav-btn:hover {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-btn:hover::after {
    width: 100%;
}

.nav-link.active, .nav-btn.active {
    color: var(--accent-color);
}

.nav-link.active::after, .nav-btn.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: visible;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-glow);
    border-radius: 50px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-primary);
}

.btn:hover::after {
    opacity: 0.5;
}

.btn.primary {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.btn.primary::before {
    background: var(--accent-hover);
}

.btn.primary::after {
    opacity: 0.3;
}

.btn.primary:hover {
    border-color: var(--accent-hover);
}

.btn.primary:hover::after {
    opacity: 0.8;
}

.btn.small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Hero section */
#home {
    display: flex;
    align-items: center;
    padding-bottom: 0;
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    display: inline-block;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 68px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1.5px;
    background-image: var (--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.5s ease;
}

.hero-content h1:hover {
    text-shadow: 0 0 15px var(--accent-glow);
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 26px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.highlight {
    color: var (--accent-color);
    position: relative;
}

.hero-description {
    margin-bottom: 40px;
}

.hero-description p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: center;
    position: relative;
}

/* Avatar and profile image */
.avatar-container {
    width: 380px;
    height: 380px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 
        0 0 0 8px rgba(157, 78, 221, 0.1),
        0 0 40px rgba(157, 78, 221, 0.2),
        var(--box-shadow);
    margin: 0 auto;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(157, 78, 221, 0.2));
    z-index: 1;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
}

/* Feature boxes */
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 0 100px;
    width: 100%;
    max-width: 100%;
}

.feature-box {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: left;
    border: var(--card-border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-box:hover::before {
     opacity: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 26px;
    position: relative;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    transform: translateZ(20px);
    box-shadow: var(--glow-shadow);
}

.feature-box:hover .feature-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    transform: translateZ(10px);
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Stats section */
.stats-container {
    margin: 0 0 100px;
    padding: 60px 50px;
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.stats-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.05;
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

.stats-heading {
    text-align: center;
    font-size: 26px;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.stats-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 10px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: var(--border-radius);
    border: var(--card-border);
    transition: all 0.4s;
    backdrop-filter: blur(12px);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(157, 78, 221, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 26px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-shadow);
}

.stat-item:hover .stat-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: rotate(10deg) scale(1.1);
}

.stat-info {
    flex: 1;
}

.stat-count {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
}

.stat-count::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.stat-item:hover .stat-count::after {
    width: 100%;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.stat-bar span {
    display: block;
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* About section */
.about-summary {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: var(--border-radius);
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    margin: 60px 0;
}

.about-summary .section-title {
    margin-bottom: 30px;
}

.about-summary h3, .about-text h3 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.about-summary h3::after, .about-text h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: var(--accent-color);
    border-radius: 10px;
}

.about-summary p, .about-text > p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-intro {
    margin-bottom: 70px;
}

.about-content {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: var(--border-radius);
    border: var(--card-border);
    box-shadow: var(--box-shadow);
}

/* About cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin: 60px 0;
    width: 100%;
    box-sizing: border-box;
}

.about-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: var(--border-radius);
    padding: 40px;
    border: var(--card-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(157, 78, 221, 0.1), transparent);
    transition: width 0.4s ease;
    z-index: 0;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(157, 78, 221, 0.1);
}

.about-card:hover::before {
    width: 100%;
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 30px 0 0;
    padding-left: 30px;
    border-left: 2px solid rgba(157, 78, 221, 0.3);
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 20px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    left: -38px;
    top: 6px;
    box-shadow: 0 0 0 5px rgba(157, 78, 221, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-hover);
    box-shadow: 0 0 0 8px rgba(157, 78, 221, 0.2);
    transform: scale(1.2);
}

.timeline-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-date {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 12px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50px;
    font-weight: 500;
}

.timeline-item p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline-item ul {
    margin: 15px 0 0;
    padding-left: 20px;
}

.timeline-item li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline-item li::marker {
    color: var(--accent-color);
}

/* Skills section */
.skills-container {
    margin: 60px auto; /* Changed to auto for proper centering */
    position: relative;
    overflow: visible;
    max-width: 1280px;
    width: 100%; /* Added explicit width */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    padding: 0 20px; /* Added consistent padding */
}

.skills-heading {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block; /* Changed from inline-block */
    position: relative;
    width: 100%; /* Added to ensure full width */
    margin-left: auto; /* Center properly */
    margin-right: auto;
    left: 0; /* Reset left positioning */
    transform: none; /* Remove transform that was causing misalignment */
}

.skills-wrapper {
    position: relative;
    padding: 0;
}

.skills-orbit {
    position: relative;
    min-height: auto;
    padding: 20px 0; /* Changed padding to vertical only */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.main-skill {
    position: absolute;
    width: 80px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    z-index: 1;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulse 3s infinite;
}

.main-skill span {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skill-category {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 30px;
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h4 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-category h4 i {
    color: var(--accent-color);
}

.skill-burst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    animation: fadeInStagger 1s forwards;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.skill-item {
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    transform: scale(0);
    animation: burstIn 0.6s forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.skill-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
    z-index: 2;
}

.skill-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
    z-index: -1;
}

.skill-item:hover::before {
    opacity: 0.15;
    animation: pulseLight 2s infinite;
}

.skill-icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.skill-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    animation: spinBurst 1s forwards;
}

.skill-item:hover .skill-icon::after {
    width: 60px;
    height: 60px;
    background: rgba(157, 78, 221, 0.2);
}

.skill-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
}

.skill-level-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-level-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
}

.skill-level-bar span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.6;
}

/* Projects section */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    padding: 10px 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.project-tab::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.project-tab:hover {
    color: var(--text-primary);
}

.project-tab.active {
    color: var(--accent-color);
}

.project-tab.active::after {
    width: 100%;
}

.category-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* Project cards */
.project-card {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s ease;
    border: var(--card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(157, 78, 221, 0.1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
    animation: shine 1.5s forwards;
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 10, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    width: 100%;
}

.project-tags span {
    font-size: 13px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: normal;
    max-width: 100%;
}

.project-tags span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-tags span:hover {
    color: var(--text-primary);
}

.project-tags span:hover::before {
    opacity: 0.8;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* Enhanced Extra-curricular activities section */
.extra-curricular {
    margin: 80px 0;
    padding: 60px;
    background: rgba(21, 21, 21, 0.7);
    border-radius: var(--border-radius);
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.extra-curricular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.extra-curricular:hover::before {
    transform: scaleX(1);
}

.extra-curricular h3 {
    font-size: 32px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: block;
    color: var(--text-primary);
    width: 100%;
}

.extra-curricular h3 i {
    margin-right: 15px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.extra-curricular h3::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.activity-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    border: var(--card-border);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.activity-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(157, 78, 221, 0.3);
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-icon {
    width: 100px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
}

.activity-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.activity-card:hover .activity-icon {
    width: 120px;
}

.activity-card:hover .activity-icon::before {
    opacity: 0.2;
    animation: rotateBackground 8s linear infinite;
}

.activity-icon i {
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.activity-card:hover .activity-icon i {
    transform: scale(1.3);
    color: var(--accent-hover);
}

/* Modified activity-content to remove dependency on achievement bars */
.activity-content {
    padding: 35px;
    flex: 1;
    position: relative;
    z-index: 1;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.activity-content h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.activity-period {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    background: rgba(157, 78, 221, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    box-shadow: 0 2px 10px rgba(157, 78, 221, 0.1);
}

.activity-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Remove achievement bars */
/* Delete or comment out these styles:
.achievement-bar { ... }
.achievement-label { ... }
.achievement-progress { ... }
.achievement-progress span { ... }
.achievement-progress span::after { ... }
*/

/* Position tags directly after paragraph */
.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0; /* Changed from 25px to 0 since there's no achievement bar now */
    width: 100%;
}

.activity-tags span {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
}

/* Mobile adjustments for extra-curricular section */
@media (max-width: 768px) {
    .extra-curricular {
        padding: 40px 20px;
    }
    
    .activity-icon {
        width: 80px;
        font-size: 28px;
    }
    
    .activity-content {
        padding: 25px;
    }
    
    .activity-content h4 {
        font-size: 20px;
    }
    
    .activity-period {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* Enhanced Mobile Menu Button */
    .mobile-menu-toggle {
        display: block;
        background: rgba(157, 78, 221, 0.1);
        border: 1px solid rgba(157, 78, 221, 0.2);
        color: var(--accent-color);
        font-size: 18px;
        cursor: pointer;
        z-index: 1001;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: var(--glow-shadow);
    }
}

/* Hide hamburger menu button on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding-left: clamp(15px, 5%, 30px);
    padding-right: clamp(15px, 5%, 30px);
}

.contact-info {
    padding: 50px 40px;
    background: rgba(30, 30, 30, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-item p {
    font-size: 17px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--glow-shadow);
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    top: 100%;
    left: 0;
    transition: top 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

social-links a:hover::before {
    top: 0;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Updated Footer Styles */
footer {
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    padding: 100px 0 40px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    position: relative;
    margin-top: 120px;
    overflow: hidden;
}

/* Footer decorative elements */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}

footer::after {
    content: '';
    position: absolute;
    top: -80px;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

/* Footer title styling */
footer .section-title {
    font-size: 42px;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

footer .section-title::after {
    height: 4px;
    background: var(--gradient-primary);
    width: 60px;
    left: 0;
    bottom: -15px;
    transform: none;
    border-radius: 10px;
}

/* Contact content grid */
.contact-content {
    gap: 60px;
    margin-bottom: 70px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Contact information styling */
.contact-info {
    background: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: var(--card-border);
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-10px);
}

.contact-item {
    margin-bottom: 35px;
}

.contact-item i {
    font-size: 22px;
    width: 55px;
    height: 55px;
    background: rgba(157, 78, 221, 0.15);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.contact-item p {
    font-size: 16px;
    font-weight: 500;
}

/* Social links styling */
.social-links {
    margin-top: 40px;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    font-size: 22px;
    transition: all 0.4s ease;
    position: relative;
    background: rgba(157, 78, 221, 0.1);
}

.social-links a:hover {
    transform: translateY(-8px) rotate(360deg);
    background: var(--accent-color);
}

/* Contact form styling */
.contact-form {
    background: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: var(--card-border);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(157, 78, 221, 0.1);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(25, 25, 25, 0.8);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}

/* Footer navigation */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

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

/* Footer copyright section */
.footer-copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 10px;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
}

/* Responsive adjustments for footer */
@media (max-width: 992px) {
    footer .section-title {
        font-size: 36px;
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    footer .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 80px 0 30px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .contact-info, .contact-form {
        padding: 30px 25px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* Enhanced Mobile Menu Button */
    .mobile-menu-toggle {
        display: block;
        background: rgba(157, 78, 221, 0.1);
        border: 1px solid rgba(157, 78, 221, 0.2);
        color: var(--accent-color);
        font-size: 18px;
        cursor: pointer;
        z-index: 1001;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: var(--glow-shadow);
    }
}

@media (max-width: 480px) {
    footer {
        padding: 60px 0 30px;
    }
    
    footer .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    
    .contact-info, .contact-form {
        padding: 25px 20px;
    }
    
    .contact-item {
        margin-bottom: 25px;
    }
    
    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
}

footer .section-title {
    color: var(--text-primary);
    text-align: left;
    display: inline-block;
}

footer .section-title::after {
    left: 0;
    transform: none;
}

.footer-copyright {
    text-align: center;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 15px;
}

@media (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
    }

    footer .section-title {
        text-align: center;
        display: block;
    }

    footer .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Special effects and animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal-left.active, 
.reveal-right.active, 
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-glow);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

.decoration {
    position: fixed;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -200px;
    animation: float 20s infinite alternate ease-in-out;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -150px;
    animation: float 15s infinite alternate-reverse ease-in-out;
}

.decoration-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 30%;
    animation: float 18s infinite alternate-reverse ease-in-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 5;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    font-size: 24px;
    color: var(--accent-color);
    animation: bounceArrow 2s infinite;
}

.scroll-indicator p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Text effects */
.glitch-text {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: 'Akshit Mahajan.';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite;
}

/* Tech orbit */
.tech-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: orbit 20s linear infinite;
}

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.tech-icon:nth-child(1) {
    top: 0%;
    left: 50%;
    animation: orbit-child 20s linear infinite;
}

.tech-icon:nth-child(2) {
    top: 25%;
    right: 0%;
    animation: orbit-child 20s linear infinite 4s;
}

.tech-icon:nth-child(3) {
    bottom: 0%;
    left: 50%;
    animation: orbit-child 20s linear infinite 8s;
}

.tech-icon:nth-child(4) {
    top: 25%;
    left: 0%;
    animation: orbit-child 20s linear infinite 12s;
}

.tech-icon:nth-child(5) {
    top: 50%;
    right: 10%;
    animation: orbit-child 20s linear infinite 16s;
}

/* Glow effects */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 0.5;
}

/* Media queries */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-description {
        margin: 0 auto;
        max-width: 600px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        text-align: center;
        display: block;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-boxes {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        flex-direction: column;
    }

    .about-summary {
        padding: 40px 30px;
    }
    
    .skills-orbit {
        grid-template-columns: 1fr;
    }
    
    .skill-burst {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 30px;
    }

    .about-summary {
        padding: 30px 20px;
    }
    
    .main-skill {
        position: absolute;
        top: -40px;
        margin: 0;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .extra-curricular {
        padding: 30px;
    }
    
    .avatar-container {
        max-width: 240px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    h1, h2, h3, p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Fix mobile menu button positioning */
@media (max-width: 768px) {
    /* Ensure proper header layout */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    /* Keep logo on left */
    .logo {
        flex: 0 0 auto;
    }
    
    /* Position toggle button on right */
    .mobile-menu-toggle {
        display: block;
        background: rgba(157, 78, 221, 0.1);
        border: 1px solid rgba(157, 78, 221, 0.2);
        color: var(--accent-color);
        font-size: 18px;
        cursor: pointer;
        z-index: 1001;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: var(--glow-shadow);
    }
    
    /* Fix nav positioning when expanded */
    nav {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        overflow-x: hidden;
    }
    
    /* ...existing code for nav ul... */
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-text {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 10px;
    }
    
    .timeline-item::before {
        left: -26px;
    }
    
    .about-summary {
        padding: 20px 15px;
    }
    
    .skill-burst {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-category {
        padding: 30px 20px;
    }
    
    .activity-card {
        flex-direction: column;
    }
    
    .activity-icon {
        width: 100%;
        height: 70px;
    }
}

/* Mobile Responsiveness Fixes */
/* Common adjustments for all screen sizes */
img {
    max-width: 100%;
    height: auto;
}

/* Improved media queries - Mobile-first approach */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 56px;
    }
    
    .hero-wrapper {
        gap: 50px;
    }
    
    .avatar-container {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 992px) {
    /* Fix hero section */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-image {
        order: 2;
    }
    
    .avatar-container {
        width: 280px;
        height: 280px;
    }
    
    /* Adjust section padding */
    .section {
        padding: 70px 0;
    }
    
    /* Fix feature boxes */
    .feature-boxes {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-bottom: 60px;
    }
    
    /* Fix stats section */
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stats-container {
        padding: 40px 30px;
    }
    
    /* Center section titles */
    .section-title {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Fix about cards */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Fix skills section */
    .skills-orbit {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-heading {
        margin-bottom: 40px;
    }
    
    /* Fix project cards */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Fix extra-curricular section */
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile header and navigation */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    /* Keep logo on left */
    .logo {
        flex: 0 0 auto;
    }
    
    /* Position toggle button on right */
    .mobile-menu-toggle {
        display: block;
        background: rgba(157, 78, 221, 0.1);
        border: 1px solid rgba(157, 78, 221, 0.2);
        color: var(--accent-color);
        font-size: 18px;
        cursor: pointer;
        z-index: 1001;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: var(--glow-shadow);
    }
    
    /* Fix nav positioning when expanded */
    nav {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Fix hero section */
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-description p {
        font-size: 16px;
    }
    
    .avatar-container {
        width: 240px;
        height: 240px;
    }
    
    /* Fix contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Fix skills section */
    .skill-burst {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Fix spacing */
    .section {
        padding: 60px 0;
    }
    
    .about-summary, .about-content {
        padding: 30px 20px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .extra-curricular {
        padding: 30px 20px;
    }
    
    /* Fix buttons */
    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    /* Mobile navigation */
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        z-index: 999;
        transition: height 0.3s ease;
        padding: 0;
        margin: 0;
        gap: 0;
        display: none;
    }
    
    nav.active ul {
        height: auto;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Fix hero section */
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .avatar-container {
        width: 200px;
        height: 200px;
    }
    
    /* Fix hero buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Fix stats section */
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    /* Fix timeline */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 10px;
    }
    
    .timeline-item::before {
        left: -26px;
    }
    
    /* Fix skills */
    .skill-burst {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Fix activity cards */
    .activity-card {
        flex-direction: column;
    }
    
    .activity-icon {
        width: 100%;
        height: 60px;
    }
    
    /* Fix content padding */
    .section {
        padding: 50px 0;
    }
    
    .feature-box, .stat-item, .skill-category, .about-card {
        padding: 25px 15px;
    }
    
    /* Fix projects tabs */
    .projects-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .project-tab {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    /* Fix contact form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .project-content, .activity-content {
        padding: 15px 12px;
    }
    
    .btn, .nav-link, .project-tags span {
        padding: 8px 12px;
    }
    
    .project-image {
        height: 180px;
    }
}

/* Hamburger menu animation */
.mobile-menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.2);
  color: var(--accent-color);
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow-shadow);
}
.mobile-menu-toggle i {
  position: absolute;
  font-size: 22px;
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu-toggle .fa-bars {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu-toggle.active .fa-bars {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}
.mobile-menu-toggle .fa-times {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu-toggle.active .fa-times {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Toast message styles */
.custom-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--accent-color);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s, transform 0.4s;
}
.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}