/* Global Styles */
:root {
    --primary-color: #FF6B00;
    --accent-color: #00BFFF;
    --background-color: #1F1F1F;
    --card-bg: #2B2B2B;
    --text-color: #FFFFFF;
    --secondary-text: #C4C4C4;
    --border-color: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --background-color: #121212;
    --card-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 8rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: #2B2B2B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.navbar.scrolled {
    background: #2B2B2B;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}
.imgl{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.logo-text::before {
    content: 'KB';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.9;
    letter-spacing: -1px;
}

.logo a:hover .logo-text {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-text::before {
        font-size: 1.5rem;
        left: -12px;
    }
}

.logo-img {
    display: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B00;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: #FF6B00;
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.8) 0%, rgba(43, 43, 43, 0.8) 100%);
}

.particles canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 1;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.profile-image:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--secondary-color);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.tech-stack span {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.skill-info {
    flex: 1;
}

.skill-progress {
    height: 6px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 3px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 6px;
    background: #007bff;
    border-radius: 3px;
    transition: width 1s ease;
    width: 0;
    animation: typing-progress 1s ease forwards;
}

@keyframes typing-progress {
    from { width: 0 }
    to { width: var(--progress-width) }
}

.progress-bar[data-progress="95"] {
    --progress-width: 95%;
}

.progress-bar[data-progress="90"] {
    --progress-width: 90%;
}

.progress-bar[data-progress="85"] {
    --progress-width: 85%;
}

.progress-bar[data-progress="80"] {
    --progress-width: 80%;
}

.progress-bar[data-progress="75"] {
    --progress-width: 75%;
}

.progress-bar[data-progress="70"] {
    --progress-width: 70%;
}

.skill-percentage {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1s;
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem;
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--background-color);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-content {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.4s ease;
}

.timeline-item.aos-animate .timeline-content::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.timeline-content .company {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.4s;
}

.timeline-content p:not(.company):not(.date) {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.5s;
}

.timeline-item.aos-animate .timeline-content h3,
.timeline-item.aos-animate .timeline-content .company,
.timeline-item.aos-animate .timeline-content .date,
.timeline-item.aos-animate .timeline-content p:not(.company):not(.date) {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--background-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(255, 107, 0, 0.1);
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1);
    background: rgba(255, 107, 0, 0.2);
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .info-item {
        padding: 1rem;
    }

    .info-item i {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .info-item p {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .contact h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    .info-item {
        padding: 0.8rem;
    }

    .info-item i {
        font-size: 1.3rem;
        padding: 0.6rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
        background: #2B2B2B !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #2B2B2B;
        flex-direction: column;
        padding: 5rem 1.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 107, 0, 0.2);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
        margin: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }

    .nav-links a::before {
        content: '';
        width: 4px;
        height: 0;
        background: var(--primary-color);
        border-radius: 2px;
        transition: height 0.3s ease;
    }

    .nav-links a:hover::before {
        height: 20px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 107, 0, 0.1);
        transform: translateX(5px);
        color: var(--primary-color);
    }

    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        padding: 0;
    }

    .hamburger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background: #FFFFFF;
        background: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 8px;
    }

    .hamburger span:nth-child(3) {
        top: 16px;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

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

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

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 6rem 1rem 2rem;
        display: flex;
        align-items: flex-start;
        overflow: visible;
    }

    .hero-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    /* Projects Section Mobile */
    .project-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .project-card {
        margin: 0;
        width: 100%;
    }

    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .skill-item {
        padding: 1.5rem;
        width: 100%;
    }

    /* Experience Section Mobile */
    .timeline {
        padding: 1rem;
        margin-left: 20px;
    }

    .timeline::before {
        left: 0;
        margin-left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: calc(100% - 40px);
        padding-left: 40px;
        padding-right: 0;
        margin-left: 0;
        left: 0;
    }

    .timeline-item::before {
        left: -8px;
        width: 16px;
        height: 16px;
        border: 3px solid var(--background-color);
    }

    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: -8px;
    }

    .timeline-content {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
        background: var(--card-bg);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 107, 0, 0.15);
    }

    .timeline-content:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .timeline-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: var(--primary-color);
    }

    .timeline-content .company {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .timeline-content .date {
        font-size: 0.9rem;
        color: var(--secondary-text);
        margin-bottom: 1rem;
        font-weight: 400;
    }

    .timeline-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    /* Enhanced timeline line */
    .timeline::before {
        content: '';
        position: absolute;
        width: 3px;
        background: linear-gradient(180deg, var(--primary-color) 0%, rgba(255, 107, 0, 0.3) 100%);
        top: 0;
        bottom: 0;
        left: 0;
        border-radius: 3px;
    }

    /* Timeline dots animation */
    .timeline-item::before {
        animation: pulse-dot 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    }

    @keyframes pulse-dot {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
        }
        70% {
            transform: scale(1);
            box-shadow: 0 0 0 6px rgba(255, 107, 0, 0);
        }
        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
        }
    }

    /* Smooth reveal animation for content */
    .timeline-item {
        opacity: 0;
        transform: translateX(-20px);
        animation: slide-in 0.6s ease forwards;
    }

    @keyframes slide-in {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .timeline-content {
        transform: translateY(20px);
        opacity: 0;
        animation: fade-up 0.6s ease forwards;
        animation-delay: 0.3s;
    }

    @keyframes fade-up {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Achievements Section Mobile */
    .achievements {
        padding: 3rem 0;
    }

    .achievements h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .achievement-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .achievement-icon {
        font-size: 2rem;
        padding: 1rem;
        margin-bottom: 1.2rem;
    }

    .achievement-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .achievement-content .date {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
        margin-bottom: 0.8rem;
    }

    .achievement-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .achievement-card:hover {
        transform: translateY(-5px);
    }

    /* Contact Section Mobile */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
        width: 100%;
    }

    .contact-form {
        width: 100%;
    }

    .contact-info {
        width: 100%;
    }

    .info-item {
        padding: 1rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    /* Section Mobile */
    section {
        padding: 4rem 0;
        width: 100%;
        overflow: visible;
    }

    /* Fix for iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .hero {
            min-height: -webkit-fill-available;
            overflow: visible;
        }
    }

    /* Prevent text selection on mobile */
    @media (hover: none) {
        * {
            -webkit-tap-highlight-color: transparent;
        }
    }

    /* Improve touch targets */
    @media (hover: none) {
        .cta-button,
        .project-link,
        .filter-btn,
        .social-link {
            min-height: 44px;
            min-width: 44px;
        }
    }

    /* Fix for mobile viewport height */
    @media (max-width: 768px) {
        .hero {
            height: auto;
            min-height: 100vh;
            min-height: -webkit-fill-available;
        }
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .nav-links {
        width: 260px;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .tech-stack span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .timeline {
        padding: 1rem 0.5rem;
        margin-left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: calc(100% - 30px);
        padding-left: 30px;
    }

    .timeline-item::before {
        left: 13px;
        width: 14px;
        height: 14px;
    }

    .timeline-item:nth-child(odd)::before {
        left: 13px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content .company {
        font-size: 1rem;
    }

    .timeline-content .date {
        font-size: 0.85rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .achievements h2 {
        font-size: 1.8rem;
    }

    .achievements-grid {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    .achievement-card {
        padding: 1.2rem;
    }

    .achievement-icon {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .achievement-content h3 {
        font-size: 1.2rem;
    }

    .achievement-content .date {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }

    .achievement-content p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }
}

/* Tablet Devices */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Remove Theme Toggle */
.theme-toggle {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Animation */
.typing-text {
    overflow: visible;
    white-space: normal;
    margin: 0 auto;
    max-width: 100%;
    color: var(--text-color);
    opacity: 1;
}

.typing-text-2 {
    overflow: visible;
    white-space: normal;
    margin: 0 auto;
    max-width: 100%;
    color: var(--primary-color);
    opacity: 1;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* Timeline Animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-content {
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.4s ease;
}

.timeline-item.aos-animate .timeline-content::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s ease;
}

.timeline.aos-animate::before {
    transform: scaleY(1);
}

.timeline-content h3 {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.timeline-content .company {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.timeline-content .date {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.4s;
}

.timeline-content p:not(.company):not(.date) {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.5s;
}

.timeline-item.aos-animate .timeline-content h3,
.timeline-item.aos-animate .timeline-content .company,
.timeline-item.aos-animate .timeline-content .date,
.timeline-item.aos-animate .timeline-content p:not(.company):not(.date) {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Timeline Animations */
@media screen and (max-width: 768px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        transform: translateX(-30px);
    }
    
    .timeline-content::before {
        left: -25px;
    }
}

.achievements {
    padding: 5rem 0;
    background: var(--background-color);
    position: relative;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.achievements h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1.2rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    line-height: 1;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 107, 0, 0.2);
}

.achievement-content {
    flex: 1;
}

.achievement-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.achievement-content .date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.achievement-card:hover .date {
    background: rgba(255, 107, 0, 0.2);
    transform: scale(1.05);
}

.achievement-content p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .achievements {
        padding: 3rem 0;
    }

    .achievements h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .achievement-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .achievement-icon {
        font-size: 2rem;
        padding: 1rem;
        margin-bottom: 1.2rem;
    }

    .achievement-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .achievement-content .date {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
        margin-bottom: 0.8rem;
    }

    .achievement-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .achievement-card:hover {
        transform: translateY(-5px);
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .achievements h2 {
        font-size: 1.8rem;
    }

    .achievements-grid {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    .achievement-card {
        padding: 1.2rem;
    }

    .achievement-icon {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .achievement-content h3 {
        font-size: 1.2rem;
    }

    .achievement-content .date {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }

    .achievement-content p {
        font-size: 0.9rem;
    }
}

/* Achievement Card Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.achievement-card.loading {
    background: linear-gradient(90deg,
        var(--card-bg) 25%,
        rgba(255, 107, 0, 0.1) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Mobile Navigation Content */
.mobile-nav-content {
    display: none;
    padding: 1rem;
    border-top: 1px solid rgba(255, 107, 0, 0.2);
    margin-top: 1rem;
}

.mobile-nav-content.active {
    display: block;
}

.mobile-nav-content p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mobile-nav-content .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.mobile-nav-content .mobile-contact a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-nav-content .mobile-contact a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-nav-content .mobile-contact a i {
    font-size: 1.2rem;
} 