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

:root {
    --primary: #2C3E50;
    --secondary: #6A7F92;
    --accent: #B28FBC;
    --highlight: #E6C34F;
    --dark: #1a1a1a;
    --light: #F5E6D3;
    --green: #556B2F;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
}

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

nav a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--highlight);
}

/* Hero Section */
#home {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    color: white;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.social-links a:hover {
    background: var(--highlight);
    transform: translateY(-5px);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--highlight);
    border-radius: 2px;
}

/* About Section */
#about {
    background: var(--light);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category progress {
    border-radius: 0;
    width: 100%;
    height: 5px;
    border: 1px solid var(--light);
    margin-top: -10px;
}

.skill-category progress::-webkit-progress-bar {
    background-color: var(--light);
}

.skill-category progress::-webkit-progress-value{
    background-color: var(--highlight);
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
}

/* Projects Section */
#projects {
    background: var(--light);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    padding: 5px 0;
    /* background: linear-gradient(135deg, var(--accent), var(--secondary)); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-image img {
    height: 100%;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.tech-stack span {
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-links a:hover {
    background: var(--accent);
}

/* Experience Section */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--highlight);
}

.experience-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.experience-item .period {
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.experience-item ul {
    margin-left: 1.5rem;
}

.certificate-placeholder {
    margin-top: 1rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 5px;
    text-align: center;
    color: var(--secondary);
    border: 2px dashed var(--secondary);
}

/* Contact Section */
#contact {
    background: var(--primary);
    color: white;
}

#contact h2 {
    color: white;
}

#contact h2::after {
    background: var(--highlight);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cc{
    display: flex;
    /* font-weight: 500; */
}

#contactForm {
    width: 600px;
    /* max-width: 10; */
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.contact-content a {
    color: white;
    text-decoration: none;
}

.contact-item strong {
    color: var(--highlight);
}

footer {
    background: var(--primary);
    border-top: var(--secondary) 2px outset;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    nav .container {
        padding: 0 1rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

}

@media (max-width: 1200px) {
    #contactForm {
        width: calc(100% - 20px);
    }
    .cc {
        flex-direction: column;
    }
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 600px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

#experience::selection,
#projects::selection,
#skills::selection,
#about::selection,
#home::selection{
    background-color: var(--primary);
    color: var(--highlight);
}

#contact::selection {
    background-color: var(--secondary);
    color: var(--highlight);
}