* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 1px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

/* Update color variables for consistency */
:root {
    --bg-gradient: linear-gradient(135deg, #e0f7ff 0%, #fffae0 100%);
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --text-dark: #2c3e50;
    --text-muted: #6c7a89;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(52, 152, 219, 0.1);
    --card-shadow: 0 8px 24px rgba(52, 152, 219, 0.12);
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.12);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 1);
    width: 75px;
    z-index: 1000; /* Add this line */
}

.nav-content ul {
    list-style: none;
}

.nav-content ul li {
    margin: 12px 0;
    position: relative;
}

.nav-content ul li a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content ul li i {
    font-size: 1.2em;
    margin-bottom: 3px;
    color: #3498db;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content ul li span {
    font-size: 0.65em;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #6c7a89;
}

.nav-content ul li:hover a {
    background: rgba(52, 152, 219, 0.08);
    transform: scale(1.05);
}

.nav-content ul li:hover i {
    color: #2980b9;
}

.nav-content ul li.active a {
    background: rgba(52, 152, 219, 0.15);
    box-shadow: 
        0 4px 8px rgba(52, 152, 219, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.nav-content ul li.active i {
    color: #2980b9;
    filter: drop-shadow(0 4px 8px rgba(41, 128, 185, 0.3));
}

.nav-content ul li.active span {
    color: #2980b9;
}

/* Remove invalid styles and replace with correct syntax */
/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(10px);
    }
}

/* Remove invalid selectors */
.nav-content ul li::after,
.nav-content ul li.active::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    z-index: -1;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 45%;
}

.hero-content h1 {
    font-size: 3.5em;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.5em;
    color: #3498db;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 32px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-text p {
    font-size: 1.1em;
    color: #6c7a89;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn.secondary {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary:hover {
    background: #2980b9;
}

.btn.secondary:hover {
    background: rgba(52, 152, 219, 0.2);
}

/* Code Editor Styles */
.code-editor {
    background: #0d1117;
    border-radius: 12px;
    width: 45%;
    max-height: 300px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.code-editor:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.code-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    transition: 0.3s ease;
}

.dots span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: glow 2s infinite;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.dots span:hover {
    transform: scale(1.2);
}

.file-name {
    color: #c9d1d9;
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 20px;
}

.file-name::before {
    content: '📄';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.code-content {
    padding: 12px 20px;
    background: #0d1117;
    color: #c9d1d9;
    font-family: 'Consolas', monospace;
    font-size: 0.8em;
    line-height: 1.4;
    position: relative;
    background: 
        linear-gradient(to right, 
            rgba(41, 128, 185, 0.05) 1px,
            transparent 1px
        ) 0 0 / 24px 24px;
}

.code-content code {
    white-space: pre;
    display: block;
}

/* GitHub Dark Theme Syntax Highlighting - Python Style */
.code-content .keyword { color: #ff7b72; }  /* def, class, return */
.code-content .string { color: #a5d6ff; }   /* string literals */
.code-content .function { color: #d2a8ff; } /* function names */
.code-content .property { color: #79c0ff; } /* self properties */
.code-content .punctuation { color: #c9d1d9; }

/* GitHub Dark Theme Syntax Highlighting - Java Style */
.code-content .keyword { color: #ff7b72; }    /* public, class, private */
.code-content .string { color: #a5d6ff; }     /* string literals */
.code-content .function { color: #d2a8ff; }   /* method names */
.code-content .property { color: #79c0ff; }   /* variable names */
.code-content .punctuation { color: #c9d1d9; }

/* GitHub Dark Theme Syntax Highlighting - PHP Style */
.code-content .keyword { color: #ff7b72; }    /* class, private, public, function */
.code-content .string { color: #a5d6ff; }     /* string literals */
.code-content .function { color: #d2a8ff; }   /* method names */
.code-content .property { color: #79c0ff; }   /* $variables */
.code-content .punctuation { color: #c9d1d9; }

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.code-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.file-name {
    color: #858585;
    font-size: 0.9em;
}

.code-content {
    padding: 20px;
    color: #e6e6e6;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.code-content code {
    white-space: pre;
    display: block;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 100px 10%;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.5em;
    color: #2c3e50;
    display: inline-block;
    position: relative;
}

.section-heading h2 span {
    color: #3498db;
}

.heading-bar {
    width: 70px;
    height: 4px;
    background: #3498db;
    margin: 15px auto;
    position: relative;
    border-radius: 2px;
}

.heading-bar::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -3px;
    width: 40px;
    height: 10px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text .description {
    color: #6c7a89;
    line-height: 1.8;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2em;
    font-weight: 600;
    color: #3498db;
}

.stat-label {
    color: #6c7a89;
    font-size: 0.9em;
    text-align: center;
}

.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.about-image .image-container {
    position: relative;
    width: 360px;
    height: 360px;
    background: linear-gradient(
        45deg,
        rgba(52, 152, 219, 0.05) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    padding: 20px;
    transition: all 0.5s ease-in-out;
    animation: borderAnimation 8s ease-in-out infinite;
}

.about-image .image-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(
        45deg,
        var(--primary-color) 0%,
        transparent 45%,
        transparent 55%,
        var(--primary-color) 100%
    );
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.3;
    animation: borderAnimation 8s ease-in-out infinite;
    z-index: -1;
}

.about-image .image-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px dashed var(--primary-color);
    border-radius: inherit;
    animation: rotateAnimation 15s linear infinite;
    opacity: 0.2;
}

.about-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(52, 152, 219, 0.15),
        0 0 0 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 2;
}

.experience-badge .years {
    font-size: 1.8em;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.about-image:hover .image-container {
    transform: translateY(-10px);
}

.about-image:hover .image-container img {
    transform: scale(1.02);
}

.about-image:hover .experience-badge {
    transform: translateY(-5px) translateX(-10px);
}

@keyframes borderAnimation {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes rotateAnimation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .stats {
        gap: 20px;
    }
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background: var(--bg-gradient);
    position: relative;
    min-height: 60vh;
    z-index: 1;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 200px;  /* Reduced from 240px */
    max-width: 250px;  /* Reduced from 280px */
    min-height: 200px; /* Added minimum height */
    padding: 35px 25px; /* Adjusted padding */
    text-align: center;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
    display: flex;        /* Added for vertical centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item i {
    font-size: 28px;   /* Increased from 24px */
    color: var(--primary-color);
    margin-bottom: 15px; /* Increased from 10px */
}

.contact-item h3 {
    font-size: 1.1em;  /* Increased from 1em */
    margin-bottom: 12px; /* Increased from 8px */
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-item {
        min-width: 100%;
    }
}

/* Footer Styles */
.footer-dark {
    background: var(--bg-gradient);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Set minimum height to prevent resizing */
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-brand h3 {
    color: var(--text-dark);  /* Match other headings */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);  /* Match other text */
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 20px;
    padding: 5px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: #fff;
    border-color: transparent;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:active {
    transform: translateY(-2px);
}

/* Update specific social icons colors */
.social-icon.github:hover {
    background: #24292e;
}

.social-icon.linkedin:hover {
    background: #0a66c2;
}

.social-icon.twitter:hover {
    background: #1d9bf0;
}

.footer-section h4 {
    color: var(--text-dark);  /* Match other headings */
    font-size: 1.2em;
    margin-bottom: 25px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: var(--text-muted);  /* Match other text */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link i {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--text-muted);  /* Match other text */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    padding: 20px 40px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
    z-index: 2;
}

.footer-bottom .copyright {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .copyright p {
    color: var(--text-muted);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .company-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-bottom .company-link:hover .accent {
    color: var(--primary-dark);
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.footer-signature .designer-name {
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .copyright p {
        justify-content: center;
    }
}

.footer-bottom .company-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom .company-link:hover {
    opacity: 0.8;
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.footer-signature .designer-name {
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
}

.accent {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 15px;
    }
}

.about-image {
    flex: 1;
    position: relative;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image .image-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.1) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 15s ease-in-out infinite;
}

.about-image .image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        rgba(52, 152, 219, 0.3),
        rgba(52, 152, 219, 0.5)
    );
    animation: morphing 15s ease-in-out infinite;
    filter: blur(1px);
    z-index: -1;
}

.about-image .image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px dashed rgba(52, 152, 219, 0.3);
    animation: rotate 30s linear infinite;
}

.about-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.5s ease;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(52, 152, 219, 0.15),
        0 0 0 2px rgba(255, 255, 255, 1),
        0 0 0 5px rgba(52, 152, 219, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 2;
}

.about-image:hover .image-container img {
    transform: scale(1.05);
}

.about-image:hover .experience-badge {
    transform: translateY(-5px);
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section Social Icons */
.hero .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero .social-icon {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero .social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: #fff;
    border-color: transparent;
}

.hero .social-icon:hover::before {
    opacity: 1;
}

.hero .social-icon.github:hover {
    background: #24292e;
}

.hero .social-icon.linkedin:hover {
    background: #0a66c2;
}

.hero .social-icon.twitter:hover {
    background: #1d9bf0;
}

/* Resume Section */
.resume {
    padding: 100px 10%;
    position: relative;
    min-height: 100vh;
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Enable horizontal scroll if needed */
    padding-bottom: 5px; /* Space for scrollbar */
    -ms-overflow-style: none; /* Hide scrollbar IE and Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.resume-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome, Safari, Opera */
}

.tab-btn {
    background: var(--card-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    min-width: max-content; /* Adjust width based on content */
    flex: 0 0 auto; /* Prevent shrinking */
    box-shadow: var(--card-shadow);
    white-space: nowrap; /* Prevent text wrapping */
}

.tab-btn i {
    font-size: 1.1em; /* Increased icon size */
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.08);
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.tab-btn.active i {
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .resume-tabs {
        justify-content: flex-start; /* Align to start on mobile */
        padding: 0 10px; /* Add some padding */
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.85em;
    }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    padding: 40px 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--card-bg);
    box-shadow: var(--card-shadow);
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Skills Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.progress-bar {
    height: 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .resume-tabs {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
    }
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
    gap: 25px; /* Increased gap */
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Adjust card dimensions */
.portfolio-card,
.cert-card,
.edu-card,
.exp-card,
.achieve-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
    max-width: 100%; /* Ensure cards don't overflow */
}

.portfolio-image,
.cert-image,
.edu-image {
    height: 140px; /* Reduce image height */
}

.portfolio-content,
.cert-content,
.edu-content {
    padding: 12px; /* Reduce padding */
}

.portfolio-content h3,
.cert-content h3,
.edu-content h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.tech-stack {
    gap: 6px;
    margin-bottom: 10px;
}

.tech-stack span {
    padding: 4px 12px;
    font-size: 0.8em;
}

/* Description text */
.portfolio-content p {
    font-size: 0.85em;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Responsive adjustment */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    height: 180px; /* Reduced height */
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2em;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-overlay a:hover {
    background: #fff;
    transform: translateY(20px) scale(1.1);
}

.portfolio-content {
    padding: 15px; /* Reduced padding */
}

.portfolio-content h3 {
    color: var(--text-dark);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tech-stack span {
    padding: 5px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9em;
}

/* Certification Card Styles */
.cert-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-image {
    position: relative;
    height: 180px; /* Reduced height */
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.cert-content {
    padding: 15px; /* Reduced padding */
    text-align: center;
}

.cert-content h3 {
    color: var(--text-dark);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.cert-content h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.verify-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 15px;
    }
    
    .achieve-image-container {
        height: 180px;
    }
}

/* Education Card Styles */
.edu-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
    max-height: 400px;
    overflow: hidden;
}

.edu-card:hover {
    transform: translateY(-5px);
}

.edu-image {
    position: relative;
    height: 180px; /* Reduced height */
}

.edu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edu-year {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.edu-content {
    padding: 1rem;
}

.edu-type {
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 10px;
}

.edu-content h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.edu-content h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.edu-highlights span {
    padding: 0.2rem 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    color: var (--primary-color);
    font-size: 0.8rem;
}

.edu-badges {
    margin-top: 10px;
}

.edu-badges .badge {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.8em;
}

/* Experience Card Styles */
.exp-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
}

.exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.exp-header i {
    font-size: 2em;
    color: var(--primary-color);
}

.exp-duration {
    padding: 5px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9em;
}

.exp-content h3 {
    color: var(--text-dark);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.exp-content h4 {
    color: var (--text-muted);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.exp-details {
    list-style: none;
    margin-bottom: 20px;
}

.exp-details li {
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.exp-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Achievement Card Styles */
.achieve-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.achieve-card:hover {
    transform: translateY(-5px);
}

.achieve-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5em;
}

.achieve-content {
    flex: 1;
}

.achieve-content h3 {
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.achieve-content p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.achieve-date {
    color: var(--primary-color);
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .resume-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        width: calc(33.33% - 10px); /* Show 3 buttons per row on mobile */
        padding: 8px 15px; /* Further reduce padding on mobile */
    }
}

#particles-js-footer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none; /* This prevents the particles from capturing mouse events */
}

/* AI Assistant Styles */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.ai-button i {
    font-size: 24px;
    color: white;
}

.ai-button:hover {
    transform: scale(1.1);
}

.ai-chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 1);
}

.ai-chat-container.active {
    display: flex;
}

.ai-chat-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar i {
    font-size: 1.4em;
    color: white;
}

.ai-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-details h3 {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}

.ai-status {
    font-size: 0.8em;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}

.ai-header-actions {
    display: flex;
    gap: 8px;
}

.minimize-chat,
.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.minimize-chat:hover,
.close-chat:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-chat:hover {
    background: rgba(255, 0, 0, 0.2);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-message i {
    width: 30px;
    height: 30px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.ai-message p {
    background: rgba(52, 152, 219, 0.1);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    color: var(--text-dark);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message p {
    background: var(--primary-color);
    color: white;
}

.ai-chat-input {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
}

.ai-chat-input button {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-chat-input button:hover {
    transform: scale(1.1);
}

/* Achievement Cards Styling */
.achieve-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Slightly increased height */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.achieve-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    padding: 12px;
    transition: transform 0.3s ease;
}

.achieve-card {
    display: flex;
    flex-direction: column; /* Changed to column layout */
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.achieve-content-wrapper {
    padding: 20px;
    display: flex;
    gap: 15px;
}

.achieve-content h3 {
    font-size: 1.1em; /* Slightly smaller font */
    margin-bottom: 6px; /* Reduced margin */
}

.achieve-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

.achieve-type {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.achieve-details {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    font-size: 0.8rem; /* Smaller font size */
    color: #666;
}

.achieve-details i {
    margin-right: 5px;
}

.achieve-description {
    margin-top: 8px;
    font-size: 0.85rem; /* Smaller font size */
    line-height: 1.4;
    color: #555;
}

.achieve-card:hover .achieve-img {
    transform: scale(1.05);
}
