* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1f36;
    --secondary-color: #4a5568;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --hover-color: #f8fafc;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --hover-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body {
    background: #f8fafc;
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-animated {
    display: none !important;
}

.particles-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}

.blobs-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.32;
    animation: blobMove 18s ease-in-out infinite alternate;
    mix-blend-mode: lighten;
}

.blob1 {
    width: 420px; height: 420px;
    background: #f8b652;
    left: 8vw; top: 10vh;
    animation-delay: 0s;
}
.blob2 {
    width: 340px; height: 340px;
    background: #4e54c8;
    right: 10vw; top: 30vh;
    animation-delay: 3s;
}
.blob3 {
    width: 320px; height: 320px;
    background: #232526;
    left: 30vw; bottom: 0;
    animation-delay: 6s;
}
@keyframes blobMove {
    0%   { transform: scale(1) translateY(0) translateX(0); }
    50%  { transform: scale(1.15) translateY(-40px) translateX(40px); }
    100% { transform: scale(1) translateY(0) translateX(0); }
}

#header {
    width: 100%;
    height: 60vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: none;
    position: relative;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
}

.Logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: 0.3s;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.animated-header {
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1);
}

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

.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 90px 20px 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-width: 100%;
    width: 100%;
}

.header-text {
    max-width: 800px;
    margin: 0 auto;
}

.header-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.header-text h1 span {
    display: inline-block;
    color: var(--accent-color);
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-text h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.header-text p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-align: left;
}

.cta-buttons {
    display: flex;
    margin-top: 32px;
    width: 100%;
    justify-content: flex-start;
}

.btn {
    position: relative;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    cursor: pointer;
    z-index: 1;
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

/* Get in Touch button */
.btn:not(.btn2) {
    background: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn:not(.btn2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.btn:not(.btn2):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn:not(.btn2):hover::before {
    left: 100%;
}

/* Download CV button */
.btn2 {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    max-width: 220px;
}

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

.btn2:hover {
    color: white;
}

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

/* Button icon animations */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* Add icons to buttons */
.btn:not(.btn2)::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:not(.btn2):hover::after {
    transform: translateX(4px);
}

.btn2::after {
    content: '↓';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn2:hover::after {
    transform: translateY(4px);
}

/* Active state */
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 0;
    }

    .hero-container {
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .header-text {
        padding: 0 16px;
    }

    .header-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .header-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    .margin-100 {
        margin-top: 40px !important;
    }

    .btn2 {
        padding: 10px 24px;
        font-size: 0.85rem;
        min-width: 140px;
        max-width: 180px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
        padding: 0;
    }

    .hero-container {
        padding: 0;
    }

    .header-text {
        padding: 0 12px;
    }

    .header-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .header-text p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .margin-100 {
        margin-top: 20px !important;
    }

    .cta-buttons {
        padding: 0 12px;
    }

    .btn2 {
        padding: 8px 20px;
        font-size: 0.75rem;
        min-width: 120px;
        max-width: 160px;
        font-weight: 500;
    }
}

/* Floating animation for the container */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Hero section animations */
@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}

/* Add subtle background animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    z-index: 1;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Interactive hover effects */
.header-text h1:hover span {
    animation: rubberBand 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rubberBand {
    0% { transform: scale(1); }
    30% { transform: scale(1.15, 0.85); }
    40% { transform: scale(0.85, 1.15); }
    50% { transform: scale(1.05, 0.95); }
    65% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* About Section */
#about {
    padding: 50px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-col-1 img:hover {
    transform: translateY(-10px);
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.about-description {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: var(--primary-color);
    font-size: 14px;
}

.tab-contents {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-contents.active-tab {
    display: block;
}

/* Skills section above services */
#skills-section {
    margin-top: 0;
    margin-bottom: 60px;
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

/* Services Section */
#services {
    padding: 60px 0 40px 0;
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 260px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.service-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-card:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Service Card Animations */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: serviceCardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

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

/* Services Responsive Design */
@media only screen and (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .service-card {
        padding: 24px;
        min-height: 220px;
    }
    
    .service-card h2 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .service-card i {
        font-size: 2rem;
    }
}

/* See More Button Styling */
.see-more-btn {
    margin-top: 40px;
    padding: 12px 32px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.see-more-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Portfolio Section */
#portfolio {
    padding: 60px 0;
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.work {
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
    background: var(--secondary-color);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeIn 1s cubic-bezier(.77,0,.18,1) forwards;
}

.work img, .svg-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    background: #232526;
    display: block;
    z-index: 1;
}

.work .layer {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, var(--primary-color) 100%);
    color: #232526;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 20px 20px;
    text-align: center;
    transition: opacity 0.4s;
    z-index: 2;
}

.work:hover .layer {
    opacity: 1;
    pointer-events: auto;
}

.work .layer h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #232526;
}

.work .layer p {
    font-size: 15px;
    color: #232526;
    margin-bottom: 10px;
}

/* Contact Section */
#contact {
    padding: 50px 0;
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.contact-left p i {
    color: var(--accent-color);
    margin-right: 12px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-right form {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin: 15px 0;
    color: var(--text-color);
    font-size: 18px;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

#msg {
    color: var(--primary-color);
    margin-top: 20px;
    display: block;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--secondary-color);
    font-weight: 300;
    margin-top: 20px;
}

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

/* Responsive Design */
@media only screen and (max-width: 600px) {
    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1 {
        font-size: 30px;
    }
    nav .fas {
        display: block;
        font-size: 25px;
    }
    nav ul {
        background: var(--primary-color);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li {
        display: block;
        margin: 25px;
    }
    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title {
        font-size: 40px;
    }
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 {
        margin-bottom: 30px;
    }
    .about-col-2 {
        font-size: 14px;
    }
    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    .copyright {
        font-size: 14px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .work-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .work img {
        height: 140px;
    }
    .layer {
        min-height: 120px;
        padding: 12px 8px 8px 8px;
    }
}

/* --- Fancy Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin: 40px 0 60px 0;
}
.skill-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: none;
}
.skill-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.skill-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-color);
}
.skill-bar {
    width: 100%;
    background: var(--hover-color);
    border-radius: 8px;
    height: 16px;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.skill-level {
    background: var(--primary-gradient);
    height: 100%;
    color: #232526;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-align: right;
    padding-right: 10px;
    line-height: 16px;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
    width: 0;
    animation: growBar 1.5s forwards;
}

/* Hide extra projects by default */
.extra-project { display: none; }
.extra-project.show { display: flex; }

/* --- Animated Skill Bars --- */
@keyframes growBar {
    from { width: 0; }
    to { width: var(--bar-width, 80%); }
}

/* Animate skill bars on scroll */
.skills-grid.in-view .skill-level {
    animation: growBar 1.5s forwards;
}

/* --- Project Card Polish --- */
.work {
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
    background: var(--secondary-color);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: box-shadow 0.3s, transform 0.3s;
}
.work:hover {
    box-shadow: 0 12px 48px rgba(248,182,82,0.18), 0 2px 16px rgba(0,0,0,0.10);
    transform: translateY(-8px) scale(1.03);
}
.work img {
    border-radius: 18px 18px 0 0;
    background: #232526;
}
.layer {
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, var(--primary-color) 100%);
    color: #232526;
}
.layer h3, .layer p {
    color: #232526;
}

/* --- See More Button Polish --- */
#see-more-btn {
    background: var(--primary-color);
    color: #232526;
    border-radius: 18px 0 18px 0;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(248,182,82,0.13);
    padding: 14px 38px;
    border: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
#see-more-btn:hover {
    background: #232526;
    color: var(--primary-color);
    box-shadow: 0 4px 24px rgba(248,182,82,0.18);
}

/* Responsive tweaks for About image */
@media only screen and (max-width: 900px) {
    #header { height: 40vh; min-height: 200px; }
    .header-text h1 { font-size: 32px; }
    .work-list { grid-template-columns: 1fr; }
    .services-list { grid-template-columns: 1fr; }
}

.profile-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 4px solid var(--primary-color);
    background: #232526;
    display: block;
    margin-bottom: 18px;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.profile-img:hover {
    transform: scale(1.04) rotate(-2deg);
}

/* Project Card Hover Overlay */
.work {
    position: relative;
    overflow: hidden;
}
.work .layer {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, var(--primary-color) 100%);
    color: #232526;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 20px 20px;
    text-align: center;
    transition: opacity 0.4s;
    z-index: 2;
}
.work:hover .layer {
    opacity: 1;
    pointer-events: auto;
}
.work img, .svg-placeholder {
    z-index: 1;
}

/* Modern Projects Grid */
.modern-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.modern-project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.modern-project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    background: #232526;
    display: block;
}

/* Specific styles for SVG images */
.modern-project-card img[src$='.svg'] {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
    background: #232526;
    border-radius: 16px 16px 0 0;
}

.modern-project-content {
    padding: 24px;
}

.modern-project-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modern-project-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
}

.details-link {
    color: #6ee7b7;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.details-link:hover {
    color: #f8b652;
}

.source-link {
    color: #bdbdbd;
    font-size: 1.05rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.source-link:hover {
    color: #f8b652;
}

.modern-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

@media only screen and (max-width: 700px) {
    .modern-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modern-project-card {
        min-height: unset;
    }
    .modern-project-card img,
    .modern-project-card img[src$='.svg'] {
        height: 200px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modern-project-card img,
    .modern-project-card img[src$='.svg'] {
        height: 180px;
        padding: 10px;
    }
}

.section-desc {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 8px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
}

/* Consistent Section Spacing */
.container {
    padding-top: 48px;
    padding-bottom: 48px;
}
#about, #skills-section, #services, #portfolio, #contact {
    margin-top: 0;
    margin-bottom: 0;
}

/* See More Functionality */
.extra-service, .extra-project { display: none; }
.extra-service.show, .extra-project.show { display: flex; }
.see-more-btn {
    margin-top: 32px;
    display: inline-block;
}

/* Fade/Slide-in Animations for Cards */
.service-card, .modern-project-card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeIn 1s cubic-bezier(.77,0,.18,1) forwards;
}
.service-card:nth-child(1), .modern-project-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2), .modern-project-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3), .modern-project-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4), .modern-project-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5), .modern-project-card:nth-child(5) { animation-delay: 0.5s; }
@keyframes cardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Tweaks */
@media only screen and (max-width: 900px) {
    .hero-section { min-height: 30vh; padding-top: 18px; padding-bottom: 18px; }
    .header-text h1 { font-size: 32px; }
    .container { padding-top: 24px; padding-bottom: 24px; }
}

/* Redesigned Modern Floating Header/Nav */
.main-header.new-header {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: none;
    padding-top: 28px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.header-inner.new-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    border-radius: 40px;
    padding: 10px 38px 10px 24px;
    min-width: 520px;
    max-width: 900px;
    pointer-events: auto;
    gap: 32px;
    backdrop-filter: blur(8px);
}
.Logo {
    width: 60px;
    height: auto;
    margin-right: 18px;
}
.main-nav.new-main-nav {
    display: flex;
    align-items: center;
}
.nav-list.new-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list.new-nav-list li {
    display: flex;
    align-items: center;
}
.nav-list.new-nav-list a {
    display: block;
    padding: 10px 28px;
    border-radius: 28px;
    font-size: 1.13rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, font-weight 0.2s;
    position: relative;
}
.nav-list.new-nav-list a.active, .nav-list.new-nav-list a:hover {
    background: #fff;
    color: #bfa14a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(248,182,82,0.10);
}
@media only screen and (max-width: 900px) {
    .header-inner.new-header-inner { min-width: 0; max-width: 100vw; padding: 8px 4px 8px 8px; gap: 10px; }
    .nav-list.new-nav-list { gap: 10px; }
    .nav-list.new-nav-list a { font-size: 1rem; padding: 7px 10px; }
    .Logo { width: 40px; margin-right: 8px; }
}
.hero-section { padding-top: 110px; }

/* Simple, Clean Header */
.simple-header {
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    animation: fadeInHeader 1.1s cubic-bezier(.77,0,.18,1);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px 18px 24px;
}
.Logo {
    width: 54px;
    height: auto;
}
.simple-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.simple-nav li {
    display: flex;
    align-items: center;
}
.simple-nav a {
    color: var(--secondary-color);
    font-size: 1.13rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.simple-nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.3s;
}
.simple-nav a:hover {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}
@keyframes fadeInHeader {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-header {
    animation: fadeInHeader 1.1s cubic-bezier(.77,0,.18,1);
}
.hero-section { padding-top: 90px; }
@media only screen and (max-width: 900px) {
    .header-content { flex-direction: column; align-items: flex-start; padding: 12px 8px; }
    .simple-nav { gap: 14px; }
    .Logo { width: 38px; }
}

/* Section fade-in animation */
.section-fade {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes sectionFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
/* Apply .section-fade to main containers for effect */
.container, .hero-section, #about, #skills-section, #services, #portfolio, #contact {
    animation: sectionFadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}

#loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(16, 16, 20, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}
#loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.loader-logo {
    width: 72px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 12px #f8b65288);
}
.loader-spinner {
    width: 54px;
    height: 54px;
    border: 6px solid #f8b65244;
    border-top: 6px solid #f8b652;
    border-radius: 50%;
    animation: spinLoader 1.1s linear infinite;
    box-shadow: 0 0 24px #f8b65244;
}
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hamburger menu toggle styles */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2001;
    background: rgba(35, 37, 38, 0.8);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    left: 8px;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
}
.mobile-menu-toggle span { top: 18px; }
.mobile-menu-toggle::before { top: 10px; }
.mobile-menu-toggle::after { top: 26px; }
.mobile-menu-toggle.active span { opacity: 0; }
.mobile-menu-toggle.active::before { transform: rotate(45deg); top: 18px; }
.mobile-menu-toggle.active::after { transform: rotate(-45deg); top: 18px; }
.mobile-menu-toggle:hover { background: #f8b652; }

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        background: #232526;
        box-shadow: -5px 0 15px rgba(0,0,0,0.18);
        z-index: 2000;
        padding: 80px 0 0 0;
        flex-direction: column;
        align-items: flex-end;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(.77,0,.18,1);
        animation: none;
    }
    .main-nav.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        animation: fadeInMenu 0.4s cubic-bezier(.77,0,.18,1);
    }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.45);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(.77,0,.18,1);
    }
    .main-nav.active ~ .mobile-menu-overlay {
        display: block;
        opacity: 1;
    }
    .simple-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        background: transparent;
        margin-top: 0;
    }
    .simple-nav li {
        width: 100%;
        text-align: right;
        opacity: 1;
        transform: none;
        transition: all 0.3s ease;
        color: #fff;
    }
    .simple-nav a {
        color: #fff;
        font-size: 20px;
        padding: 18px 32px;
        display: block;
        width: 100%;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        transition: color 0.2s, background 0.2s;
    }
    .simple-nav a:hover, .simple-nav a.active {
        background: #181818;
        color: #f8b652;
    }
    .sub-title {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        max-width: 100vw;
    }
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

.margin-100 {
    margin-top: 40px !important;
}

.mobile-bottom-nav {
    display: none;
}
@media screen and (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 60px;
        background: #232526;
        box-shadow: 0 -2px 16px rgba(0,0,0,0.13);
        z-index: 3000;
        justify-content: space-around;
        align-items: center;
        padding: 0;
    }
    .mobile-bottom-nav a {
        flex: 1;
        color: #fff;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        padding: 6px 0 0 0;
        transition: color 0.2s;
    }
    .mobile-bottom-nav a i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    .mobile-bottom-nav a span {
        font-size: 11px;
        margin-top: 1px;
    }
    .mobile-bottom-nav a:hover, .mobile-bottom-nav a.active {
        color: #f8b652;
    }
    body {
        padding-bottom: 60px;
    }
}

/* Skills Section Styles */
.skills-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category {
    background: white;
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category:hover {
    background: var(--hover-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.category.active {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.skill-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: none;
}

.skill-card.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.skill-icon {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skill-info h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-details p {
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.skill-bar {
    background: var(--hover-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    background: var(--primary-gradient);
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

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

@media (max-width: 600px) {
    .skills-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 0;
        justify-content: center;
    }
    .category {
        flex: 1 1 0;
        min-width: 80px;
        max-width: 120px;
        font-size: 0.78rem;
        padding: 6px 2px;
        border-radius: 18px;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        line-height: 1.15;
        letter-spacing: 0.01em;
        font-weight: 600;
        margin: 0 2px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Light Mode Styles */
body.light-mode {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #1e40af;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --hover-color: #f1f5f9;
    --primary-gradient: linear-gradient(135deg, #1e40af, #1e3a8a);
    --text-gradient: linear-gradient(135deg, #0f172a, #1e293b);
    --link-color: #1e40af;
    --link-hover: #1e3a8a;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

body.light-mode .container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

body.light-mode .header-text h1 {
    color: #0f172a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.light-mode .header-text p {
    color: #334155;
    font-weight: 500;
    letter-spacing: 0.2px;
}

body.light-mode .btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.light-mode .btn2 {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.light-mode .btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

body.light-mode .btn2:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

body.light-mode .skill-card,
body.light-mode .service-card,
body.light-mode .modern-project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.light-mode .skill-card:hover,
body.light-mode .service-card:hover,
body.light-mode .modern-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

body.light-mode .skill-card h3,
body.light-mode .service-card h2,
body.light-mode .modern-project-content h3 {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

body.light-mode .skill-details p,
body.light-mode .service-card p,
body.light-mode .modern-project-content p {
    color: #334155;
    line-height: 1.6;
    font-weight: 400;
}

body.light-mode .simple-nav a {
    color: #334155;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

body.light-mode .simple-nav a:hover,
body.light-mode .simple-nav a.active {
    color: var(--accent-color);
    background: rgba(30, 64, 175, 0.1);
}

body.light-mode .simple-nav a.active::after {
    background: var(--accent-color);
    height: 3px;
    border-radius: 3px;
}

body.light-mode .sub-title {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

body.light-mode .sub-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

body.light-mode .section-desc {
    color: #334155;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

body.light-mode input,
body.light-mode textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.2);
    color: #0f172a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

body.light-mode .project-tags span {
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(30, 64, 175, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

body.light-mode .category {
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(30, 64, 175, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.light-mode .category.active {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

body.light-mode .copyright {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 400;
}

body.light-mode .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

body.light-mode .mobile-bottom-nav a {
    color: #334155;
    font-weight: 500;
}

body.light-mode .mobile-bottom-nav a.active {
    color: var(--accent-color);
}

/* About Section Enhancements */
.about-content {
    margin-bottom: 40px;
}

.about-intro {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.6;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.achievement-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.achievement-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.achievement-card h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.achievement-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 5px 0;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.badge i {
    color: var(--accent-color);
    font-size: 1rem;
}

.badge span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Enhanced Tab Styles */
.tab-titles {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.tab-links i {
    font-size: 1.2rem;
}

.tab-links:hover {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.tab-links.active-link {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.tab-links.active-link::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Enhanced Tab Content Styles */
.tab-contents ul li {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tab-contents ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.tab-contents ul li span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tab-contents ul li span i {
    font-size: 1.1rem;
}

.tab-contents ul li b {
    color: var(--text-color);
    font-size: 1.1rem;
    display: block;
    margin: 8px 0;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    .achievement-cards {
        grid-template-columns: 1fr;
    }
    
    .tab-titles {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .tab-links {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }
    
    .profile-badges {
        gap: 10px;
    }
    
    .badge {
        padding: 6px 12px;
    }
    
    .badge span {
        font-size: 0.8rem;
    }
}

/* Animation for Achievement Cards */
.achievement-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.achievement-card:nth-child(1) { animation-delay: 0.2s; }
.achievement-card:nth-child(2) { animation-delay: 0.4s; }
.achievement-card:nth-child(3) { animation-delay: 0.6s; }

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

@media (max-width: 700px) {
    .modern-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modern-project-card {
        min-height: unset;
    }
    .modern-project-card img,
    .modern-project-card img[src$='.svg'] {
        height: 200px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modern-project-card img,
    .modern-project-card img[src$='.svg'] {
        height: 180px;
        padding: 10px;
    }
}

#my-skills {
    scroll-margin-top: 90px;  /* Accounts for the fixed header */
    padding-top: 0 px;
    margin-top: 0 px;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    #my-skills {
        scroll-margin-top: 60px;
        padding-top: 20px;
        margin-top: 20px;
    }
}

@media only screen and (max-width: 768px) {
    #contact {
        padding: 30px 0;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        padding: 0 15px;
    }

    .contact-left {
        margin-bottom: 25px;
    }

    .contact-left p {
        font-size: 0.95rem;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .social-icons {
        margin-top: 20px;
    }

    .social-icons a {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    form input, form textarea {
        padding: 12px;
        margin: 10px 0;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    form textarea {
        min-height: 120px;
    }

    form .btn2 {
        width: 100%;
        padding: 12px 30px;
        font-size: 0.95rem;
        margin-top: 15px;
        display: block;
    }
}

@media only screen and (max-width: 480px) {
    #contact {
        padding: 20px 0;
    }

    .contact-left, .contact-right {
        padding: 0 12px;
    }

    .contact-left p {
        font-size: 0.9rem;
        margin-top: 12px;
        margin-bottom: 10px;
    }

    .social-icons {
        margin-top: 15px;
    }

    .social-icons a {
        font-size: 1.3rem;
        margin-right: 12px;
    }

    form input, form textarea {
        padding: 10px;
        margin: 8px 0;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    form textarea {
        min-height: 100px;
    }

    form .btn2 {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin-top: 12px;
        width: 100%;
    }

    #msg {
        font-size: 0.85rem;
        margin-top: 10px;
    }
}

/* Enhanced Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.chatbot-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.chatbot-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: none;
    height: 340px;
    min-height: 200px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f3f4f6;
}

/* Always show vertical scrollbar for chatbot-messages */
.chatbot-messages::-webkit-scrollbar {
    width: 8px;
    background: #f3f4f6;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.chatbot-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.3s ease-out forwards;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 24px;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-text {
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.user-message .message-text {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.chatbot-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chatbot-send {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chatbot-send:active {
    transform: translateY(0);
}

/* Enhanced message animation */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 15px;
    width: fit-content;
    margin: 5px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .chatbot-container {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        min-width: 0 !important;
        min-height: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        z-index: 10000 !important;
    }
    .chatbot-toggle {
        bottom: 80px !important; /* Move above mobile nav */
        right: 15px !important;
        left: auto !important;
        width: auto !important;
        min-width: 48px !important;
        max-width: 80vw !important;
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
        z-index: 10001 !important;
    }
    .chatbot-header, .chatbot-input-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .chatbot-messages {
        height: auto !important;
        max-height: calc(100vh - 130px) !important;
        min-height: 120px !important;
        padding: 10px !important;
    }
}

/* Chatbot suggestions bar styles */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px 15px 15px;
    background: rgba(245, 247, 250, 0.98);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.04);
    z-index: 2;
    position: relative;
}
.suggestion-btn {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #1e293b;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.08);
    margin-bottom: 2px;
}
.suggestion-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

/* Ensure chatbot container uses flex column layout */
.chatbot-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Make sure messages area shrinks if needed */
.chatbot-messages {
    flex: 1 1 auto;
    min-height: 0;
}
