:root {
    --primary-color: #00C39A;
    --secondary-color: #7C3AED;
    --accent-color: #F472B6;
    --background-color: #F9FAFB;
    --text-color: #333;
    --light-text: #6B7280;
    --dark-bg: #020407;
    --dark-secondary: #1F2937;
    --bg-color: #fff;
    --secondary-text: #666;
    --section-bg: #F8F9FA;
    --font-primary: 'Lato', sans-serif;
}

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

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--background-color);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    z-index: 1000;
}

.logo img {
    height: 100%;
    width: auto;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle .fa-moon {
    display: none;
}

.theme-toggle input:checked~label .light-icon {
    display: none;
}

.theme-toggle input:checked~label .dark-icon {
    display: block;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-container {
    width: 100%;
    padding: 0 0rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    transition: background 0.3s ease;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle .dark-icon {
    display: none;
}

.theme-toggle input:checked~label .light-icon {
    display: none;
}

.theme-toggle input:checked~label .dark-icon {
    display: block;
}

/* Dark Mode Styles */
body.dark-mode {
    --bg-color: var(--dark-bg);
    --text-color: #fff;
    --section-bg: var(--dark-bg);
    background-color: var(--dark-bg);
    color: #fff;
}

body.dark-mode .navbar {
    background: var(--dark-bg);
}

body.dark-mode .nav-link {
    color: #fff;
}

body.dark-mode .theme-toggle label {
    color: #fff;
}

/* Menu Toggle Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 24px;
    /* Smaller size */
    height: 18px;
    /* Smaller size */
    position: relative;
    margin-left: auto;
    /* Push to right */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

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

.menu-toggle span:last-child {
    top: 16px;
}

/* Menu Toggle Animation */
.menu-toggle.active span:first-child {
    transform: rotate(45deg);
    top: 8px;
}

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

.menu-toggle.active span:last-child {
    transform: rotate(-45deg);
    top: 8px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        justify-content: flex-start;
    }

    .menu-toggle {
        display: block;
        z-index: 999;
        margin-left: 0;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100vw;
        /* Full viewport width */
        height: auto;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }

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

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

    /* Menu toggle animation */
    .menu-toggle.active span:first-child {
        transform: rotate(45deg);
        top: 8px;
    }

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

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg);
        top: 8px;
    }

    /* Navigation links styles */
    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-color);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Theme toggle in mobile menu */
    .theme-toggle {
        margin: 0.5rem 0;
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Hero section mobile adjustments */
    .hero {
        min-height: calc(100vh - 60px);
        /* Subtract navbar height */
        padding-top: 80px;
        /* Reduced from 5rem */
        padding-bottom: 2rem;
        text-align: center;
        gap: 1.5rem;
        /* Reduced from 2rem */
        margin-top: 60px;
        /* Add margin for navbar */
    }

    .hero-image {
        width: 100%;
        margin: 0;
    }

    .hero-image img {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        /* Reduced from 2rem */
    }

    .description {
        font-size: 1rem;
        margin: 1rem auto;
        max-width: 400px;
        /* Limit width on mobile */
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-success {
        background-color: green !important;
        color: white;
    }

    .social-link {
        /* width: 40px;
        height: 40px; */
        font-size: 1rem;
    }

    /* Reduce progress bar size */
    .progress-bar {
        height: 8px;
        /* Reduced from 15px */
    }

    .progress-circle {
        width: 16px;
        /* Reduced from 24px */
        height: 16px;
        /* Reduced from 24px */
        right: -8px;
        /* Half of width */
        border-width: 3px;
        /* Reduced from 4px */
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .progress-bar {
        height: 6px;
        /* Even smaller for mobile */
    }

    .progress-circle {
        width: 14px;
        height: 14px;
        right: -7px;
        border-width: 2px;
    }
}

/* General Section Styles */
section {
    padding: 5rem 0 2.5rem;
    /* Increased top padding */
    margin: 0;
    scroll-margin-top: 60px;
    /* Add scroll margin to account for navbar */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 80px 5% 2rem;
    /* Adjusted top padding */
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    margin-top: 20px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-content {
    flex: 1;
}

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

.highlight {
    color: var(--primary-color);
}

.role {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    max-width: 500px;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.primary:hover {
    background-color: #00b38b;
    transform: translateY(-3px);
}

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

.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

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

/* Dark mode specific adjustments for social links */
body.dark-mode .social-link {
    color: var(--primary-color);
}

body.dark-mode .social-link:hover {
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 1.5rem 0 2.5rem;
    /* Consistent padding */
    margin-bottom: 0;
}

.skills-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.skills-content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.skills-content {
    flex: 1;
}

.skills-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-image img {
    max-width: 100%;
    height: auto;
}

.skills h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-group {
    margin-bottom: 1.6rem;
}

.skill-group-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--text-color);
}

body.dark-mode .skill-group-title {
    color: #eee;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(0, 195, 154, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 195, 154, 0.25);
    border-radius: 20px;
}

.skill-item {
    width: 100%;
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

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

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
    transition: width 2s cubic-bezier(0.1, 0.5, 0.2, 1);
}

.progress-circle {
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid #00C39A;
    border-radius: 50%;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(0, 195, 154, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animation class */
.animate-progress .progress {
    width: attr(data-progress);
}

.animate-progress .progress-circle {
    opacity: 1;
}

/* Dark mode styles for skills */
body.dark-mode .skills {
    background-color: var(--dark-secondary);
}

body.dark-mode .progress-bar {
    background-color: var(--dark-secondary);
}

body.dark-mode .skill-name,
body.dark-mode .skill-percentage {
    color: #fff;
}

body.dark-mode .progress-circle {
    background-color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* Skills Section Mobile Adjustments */
@media screen and (max-width: 768px) {
    .skills-wrapper {
        gap: 2rem;
    }

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

    .skills-image {
        display: none;
        /* Hide the image on mobile */
    }

    .skills-content {
        width: 100%;
    }

    .skills-container {
        gap: 25px;
        padding: 0 15px;
    }

    /* Reduce progress bar size */
    .progress-bar {
        height: 8px;
        /* Reduced from 15px */
    }

    .progress-circle {
        width: 16px;
        /* Reduced from 24px */
        height: 16px;
        /* Reduced from 24px */
        right: -8px;
        /* Half of width */
        border-width: 3px;
        /* Reduced from 4px */
    }

    /* Adjust text size */
    .skill-info {
        margin-bottom: 12px;
    }

    .skill-name,
    .skill-percentage {
        font-size: 1.1rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .skills-container {
        gap: 6px;
        padding: 0 10px;
    }

    .progress-bar {
        height: 6px;
        /* Even smaller for mobile */
    }

    .progress-circle {
        width: 14px;
        height: 14px;
        right: -7px;
        border-width: 2px;
    }
}

/* Projects Section */
.projects {
    padding: 4rem 5% 3rem;
    background-color: var(--section-bg);
}

.projects-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.projects-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 195, 154, 0.15);
    border-color: rgba(0, 195, 154, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.project-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.5s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.project-card:hover .project-image-container img {
    transform: scale(1.1);
}

.project-featured {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: var(--bg-color);
    border: 1px solid rgba(0, 195, 154, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-image {
    position: relative;
    background: #f8f9fa;
    min-height: 200px;
}

.featured-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-content .project-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.featured-content .project-card-desc {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.featured-content .project-tags {
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.featured-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    background: rgba(0, 195, 154, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.live-badge.image-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.project-highlights li {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.6;
    padding-left: 1.1rem;
    position: relative;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(0, 195, 154, 0.1);
    transform: translateY(-2px);
}

.project-link.primary-link {
    background: var(--primary-color);
    color: #fff;
}

.project-link.primary-link:hover {
    background: #00b38b;
}

.project-card-content {
    padding: 1.3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 195, 154, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
}

.project-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.project-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-cta {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-cta:hover {
    gap: 0.8rem;
}

/* Dark Mode Overrides for Projects */
body.dark-mode .project-card {
    background: var(--dark-secondary);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover {
    border-color: rgba(0, 195, 154, 0.4);
    box-shadow: 0 20px 40px rgba(0, 195, 154, 0.1);
}

body.dark-mode .project-image-container {
    background: #1a1a1a;
}

body.dark-mode .project-card-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .tag {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

body.dark-mode .project-featured {
    background: var(--dark-secondary);
    border-color: rgba(0, 195, 154, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .featured-image {
    background: #1a1a1a;
}

body.dark-mode .live-badge.image-badge {
    background: rgba(20, 24, 30, 0.9);
}

body.dark-mode .section-subtitle {
    color: #a0aec0;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .projects {
        padding: 4rem 1rem;
    }

    .projects-header h2 {
        font-size: 2rem;
    }

    .project-card:hover .project-image-container img {
        transform: none;
    }

    .project-featured {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 0;
        height: 180px;
    }

    .featured-content {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Contact Section */
.contact {
    padding: 6rem 5% 4rem;
    background-color: var(--bg-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

/* Minimalist Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 195, 154, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.info-text p {
    color: var(--secondary-text);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.minimal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.minimal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.minimal-link:hover::after {
    width: 100%;
}

.info-status {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 195, 154, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* Minimalist Contact Form */
.contact-form-container {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.minimal-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    max-width: fit-content;
}

.minimal-btn:hover {
    background: #00b38b;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 195, 154, 0.3);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 25, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.modal-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #00c39a, #00b38b);
    box-shadow: 0 10px 24px rgba(0, 195, 154, 0.35);
    animation: successPop 0.45s ease-out, successPulse 1.8s ease-in-out 0.45s infinite;
}

.modal-success-icon i {
    font-size: 1.2rem;
}

.modal-container h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.modal-container p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.modal-close-btn {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #00b38b;
}

/* Dark Mode Minimalist */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .info-icon {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .modal-container {
    background: #1f1f1f;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .contact-container {
        gap: 3rem;
    }
}

@media screen and (max-width: 700px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media screen and (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footer */
footer {
    color: var(--primary-color);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

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

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

@keyframes successPop {
    0% {
        transform: scale(0.65);
        opacity: 0;
    }

    70% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successPulse {
    0% {
        box-shadow: 0 10px 24px rgba(0, 195, 154, 0.25);
    }

    50% {
        box-shadow: 0 12px 30px rgba(0, 195, 154, 0.5);
    }

    100% {
        box-shadow: 0 10px 24px rgba(0, 195, 154, 0.25);
    }
}

/* Dark Mode */
body.dark-mode header {
    background-color: #222;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode nav ul li a {
    color: #fff;
}

body.dark-mode nav ul li a:hover {
    color: var(--primary-color);
}

body.dark-mode .btn {
    background-color: var(--primary-color);
    color: #fff;
}

body.dark-mode .btn:hover {
    background-color: var(--primary-color);
}

body.dark-mode .project {
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 195, 154, 0.2);
}

/* Qualifications Section */
.qualifications {
    padding: 1.5rem 0 3rem;
    background-color: var(--section-bg);
    margin-bottom: 0;
}

.qualification-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.qualification-button {
    position: relative;
    overflow: hidden;
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    color: #666;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.qualification-button i {
    margin-right: 8px;
}

.qualification-button:hover {
    color: var(--primary-color);
}

.qualification-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.qualification-button:hover::after,
.button-active::after {
    width: 80%;
}

.button-active {
    color: var(--primary-color);
}

.qualification-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qualification-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease-in-out;
}

.qualification-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.qualification-data {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.qualification-active .qualification-data {
    opacity: 1;
    transform: translateY(0);
}

.qualification-active .qualification-data:nth-child(1) {
    transition-delay: 0.1s;
}

.qualification-active .qualification-data:nth-child(2) {
    transition-delay: 0.2s;
}

.qualification-active .qualification-data:nth-child(3) {
    transition-delay: 0.3s;
}

.qualification-data h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.qualification-subtitle {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.calendar {
    font-size: 14px;
    color: #888;
}
.calendar i {
    margin-right: 5px;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.dot {
    width: 13px;
    height: 13px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.line {
    width: 1px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translate(0, -7px);
}

.left {
    text-align: right;
    animation: none;
    /* Reset animation */
}

.right {
    text-align: left;
    animation: none;
    /* Reset animation */
}

/* Dark mode styles for qualifications */
body.dark-mode .qualification-button {
    color: #999;
}

body.dark-mode .qualification-button:hover,
body.dark-mode .button-active {
    color: var(--primary-color);
}

body.dark-mode .qualification-subtitle {
    color: #999;
}

body.dark-mode .calendar {
    color: #888;
}

/* Modern Mobile Navigation Styles */
.menu-btn {
    display: none;
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 50%;
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: relative;
}

.menu-btn__burger,
.menu-btn__burger::before,
.menu-btn__burger::after {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.menu-btn__burger {
    margin: 11px auto;
}

.menu-btn__burger::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 7.5px;
}

.menu-btn__burger::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 7.5px;
}

/* Animation for menu button */
.menu-btn.open .menu-btn__burger {
    background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(5px, 5px);
    top: 11px;
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(5px, -5px);
    bottom: 11px;
}

@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 20px 4rem;
        gap: 3.5rem;
        min-height: 100vh;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
        margin-top: 0;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .description {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        max-width: 550px;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-top: 80px;
        gap: 2.5rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

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

    .role {
        font-size: 1.3rem;
    }

    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Add stagger animation delays for nav items */
.nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

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

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

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

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

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

/* Dark mode updates for contact section */
body.dark-mode .contact {
    background: var(--dark-bg);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: var(--dark-bg);
    border-color: #374151;
    color: #fff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 195, 154, 0.2);
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Fix for typing animation container */
.typed-text {
    min-height: 32px;
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.5;
    position: relative;
    align-items: center;
}

/* Add this to ensure consistent height */
.typed-text::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
}

/* Update social links spacing */
.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-color);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.5s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .hero-content {
        align-items: center;
    }

    .typed-text {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .typed-text {
        font-size: 20px;
        min-height: 28px;
        /* Adjust for smaller font size */
    }

    .social-links a {
        margin: 0;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    --bg-color: var(--dark-bg);
    --text-color: #fff;
    --section-bg: var(--dark-bg);
    background-color: var(--dark-bg);
    color: #fff;
}

body.dark-mode .navbar {
    background: var(--dark-bg);
}

body.dark-mode .nav-links a {
    color: #fff;
}

body.dark-mode .social-link {
    color: #fff;
}

body.dark-mode .btn.secondary {
    background-color: inherit;
    color: #fff;
}

body.dark-mode .theme-toggle label {
    color: #fff;
}

/* Section Headings */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    section h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    section h2 {
        font-size: 1.8rem;
    }
}

/* Section reveal animation */
.reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal-section,
    .reveal-section.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}



/* Dark mode for about section */
body.dark-mode .about {
    background-color: var(--dark-secondary);
}

body.dark-mode .about img {
    border-color: var(--dark-bg);
}

body.dark-mode .about-text {
    color: #fff;
}

body.dark-mode .about-text strong {
    color: var(--primary-color);
}

/* Dark mode section backgrounds */
body.dark-mode .skills,
body.dark-mode .about,
body.dark-mode .contact,
body.dark-mode .qualifications {
    background-color: var(--dark-bg);
}

/* Dark mode progress bar styles */
body.dark-mode .progress-bar {
    background-color: var(--dark-secondary);
}

body.dark-mode .progress-circle {
    background-color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* Contact form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 195, 154, 0.1);
}

.contact form button {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact form button:hover {
    background: #00b38b;
    transform: translateY(-2px);
}

/* Dark mode form styles */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: var(--dark-bg);
    border-color: #374151;
    color: #fff;
}

body.dark-mode .form-group label {
    color: #fff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 195, 154, 0.2);
}

/* Error states */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4f4f;
}

.error-message {
    color: #ff4f4f;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Update specific elements that might need different font weights */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
}

.btn {
    font-family: var(--font-primary);
    font-weight: 500;
}

.skill-name {
    font-weight: 500;
}

/* Qualifications mobile adjustments */
@media screen and (max-width: 768px) {
    .qualifications {
        padding: 1rem 0 2.25rem;
    }

    .qualification-tabs {
        gap: 12px;
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .qualification-button {
        font-size: 15px;
        padding: 8px 12px;
    }

    .qualification-sections {
        padding: 0 14px;
    }

    .qualification-data {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 22px;
        justify-items: center;
    }

    .qualification-data .center {
        grid-column: 1;
        grid-row: 1;
        align-items: center;
    }

    .qualification-data .left,
    .qualification-data .right {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .qualification-data>div:empty {
        display: none;
    }

    .qualification-data h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .qualification-subtitle {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .calendar {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .qualification-tabs {
        gap: 8px;
    }

    .qualification-button {
        font-size: 14px;
        padding: 7px 10px;
    }

    .qualification-sections {
        padding: 0 10px;
    }

    .qualification-data {
        gap: 7px;
    }

    .dot {
        width: 11px;
        height: 22px;
    }

    .qualification-data h3 {
        font-size: 16px;
    }
}

/* Projects Section Mobile Adjustments */
@media screen and (max-width: 768px) {
    .projects {
        padding: 4rem 1rem 2rem;
        /* Adjusted padding */
    }

    .projects-container {
        padding: 10px 0;
    }

    .projects-scroll {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .project {
        min-width: 260px;
        max-width: 260px;
        height: 230px;
    }

    .project-overlay {
        padding: 1.5rem;
    }

    .project-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .project-overlay p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .project-overlay .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .project {
        min-width: 230px;
        max-width: 230px;
        height: 200px;
    }

    .project-overlay {
        padding: 1.2rem;
    }

    .project-overlay h3 {
        font-size: 1rem;
    }

    .project-overlay p {
        font-size: 0.8rem;
    }

    .projects-scroll {
        padding-left: calc(50% - 115px);
    }
}

@media screen and (max-width: 768px) {
    .contact-header h2 {
        font-size: 2rem;
    }
}

/* Add keyframes for slide-in animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add this class to trigger the animation */
.animate {
    animation: none;
    /* Reset animation */
}

.left.animate {
    animation: slideInLeft 0.5s ease forwards;
    /* Slide in from the left */
}

.right.animate {
    animation: slideInRight 0.5s ease forwards;
    /* Slide in from the right */
}