:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #ecf0f1;
    --light-text-color: #bdc3c7;
    --card-bg: #465a6f;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* General Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--secondary-color);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.navbar {
    transition: clip-path 0.5s ease-in-out;
}

.navbar a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text-color);
    margin-left: 30px;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

#menu-btn {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5%;
    text-align: center;
}

.hero-content {
    flex: 1 1 500px;
    text-align: left;
    max-width: 600px;
    margin-right: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content .tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hero-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 400px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: var(--shadow);
}

/* About Me Section */
.about-me {
    text-align: left;
    padding-top: 100px;
}

.about-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.about-left-content {
    flex: 1 1 55%;
    min-width: 300px;
}

.about-right-content {
    flex: 1 1 35%;
    min-width: 250px;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.about-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 25px;
    flex-shrink: 0;
}

.about-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #27ae60;
    font-size: 1.8rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 2px;
}

.about-left-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.about-left-content h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.key-highlights {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.key-highlights li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--light-text-color);
}

.key-highlights li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.1em;
    padding-top: 2px;
}

/* Stats Grid for About Right Content */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background-color: var(--secondary-color);
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

/* Skills Section */
/* General Section Heading Styles */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 40px;
}

/* Skills Section - New Styles */
.skills-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.skills-tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    color: var(--light-text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.skills-tab-btn.active {
    background-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.skills-tab-btn:hover:not(.active) {
    color: var(--accent-color);
}

.skills-content {
    display: none;
}

.skills-content.active {
    display: block;
}

.skills-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--card-bg);
    padding: 8px 18px;
    border-radius: var(--border-radius);
    color: var(--light-text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
}

.skill-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.skill-category-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.proficiency-bar {
    width: 100%;
    background-color: var(--secondary-color);
    height: 10px;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

.proficiency-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.proficiency-text {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 8px;
    font-weight: 600;
}

.soft-skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.soft-skill-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.soft-skill-item i {
    color: var(--accent-color);
    font-size: 1.3em;
}


/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .skills-tabs {
        padding: 5px;
    }

    .skills-tab-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .skills-filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .skills-filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .soft-skills-list {
        grid-template-columns: 1fr;
    }
}
/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-text-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-content .company {
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--accent-color);
}

.project-card .tech-stack {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 10px;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-info {
    margin-top: 20px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-color);
    word-break: break-word;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: var(--secondary-color);
    color: var(--light-text-color);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .about-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .about-left-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        border-top: 1px solid var(--light-text-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .navbar a {
        display: block;
        margin: 15px;
        font-size: 1.2rem;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 120px;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .experience-timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 10px;
    }

    .about-flex-container {
        flex-direction: column;
    }

    .about-left-content,
    .about-right-content {
        flex: 1 1 100%;
    }

    .about-header {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .about-photo {
        margin-right: 15px;
        margin-bottom: 0;
        width: 100px;
        height: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* New Contact Section Layout */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info-card,
.contact-form-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1 1 45%; /* Allows cards to grow and shrink */
    max-width: 500px;
}

.contact-info-card h3,
.contact-form-card h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-detail i {
    font-size: 1.8rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-detail h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-detail p {
    margin: 0;
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.contact-detail a {
    color: var(--light-text-color);
}

.social-links {
    margin-top: 40px;
    border-top: 1px solid var(--secondary-color);
    padding-top: 20px;
}

.social-links h3 {
    margin-bottom: 15px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form-card .btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* New Footer Styles */
.footer {
    background: var(--secondary-color);
    padding: 50px 5% 20px;
    color: var(--light-text-color);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer-bio {
    font-size: 0.9rem;
    line-height: 1.8;
}

.quick-links h3,
.get-in-touch h3 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.quick-links ul {
    list-style: none;
}

.quick-links a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.quick-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.get-in-touch p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.get-in-touch i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-bg);
    padding-top: 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        flex: 1 1 100%;
    }

    .quick-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .quick-links li {
        margin: 0;
    }

    .get-in-touch p {
        justify-content: center;
    }
}
/* Section Background Color Variations */
.hero-section.bg-color-1 {
    background-color: var(--primary-color);
}

.section.bg-color-1 {
    background-color: var(--primary-color);
}

.section.bg-color-2 {
    background-color: var(--secondary-color);
}