/* Base Styles and Variables */
:root {
    --primary-color: #4e9f3d;
    --primary-light: #8fce00;
    --primary-dark: #2a6522;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-btn, .close-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.profile-placeholder {
    width: 220px;
    height: 220px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.profile-placeholder.large {
    width: 250px;
    height: 250px;
    font-size: 5rem;
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.about-text {
    flex: 0 0 50%;
}

.about-text h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.about-text h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Skills Section */
.skills {
    background-color: var(--bg-alt);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Certifications Section */
.certifications {
    background-color: var(--bg-color);
}

.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: var(--shadow);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    flex: 0 0 auto;
    font-size: 2rem;
    color: var(--primary-color);
}

.cert-content {
    flex: 1;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cert-year {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    border-radius: 30px;
    margin-top: 10px;
}

/* Achievements Section */
.achievements {
    background-color: var(--bg-alt);
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex: 0 0 auto;
}

.achievement-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Projects & Internship Section */
.projects {
    background-color: var(--bg-color);
}

.section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.projects-container, .internship-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card, .internship-card {
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover, .internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-content h4, .internship-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.project-year, .internship-period {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    border-radius: 30px;
    margin-top: 15px;
}

.internship-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: circle;
}

/* Resume Section */
.resume {
    background-color: var(--bg-alt);
    text-align: center;
}

.resume-content {
    max-width: 700px;
    margin: 0 auto;
}

.resume-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.resume-content p {
    margin-bottom: 30px;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
footer {
    background-color: #1c2331;
    color: white;
    padding: 3rem 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-info a {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.resume-preview {
    padding: 20px;
}

.resume-preview h2 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.resume-preview h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h4 {
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.resume-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content .subtitle {
    animation-delay: 0.3s;
}

.hero-text {
    animation-delay: 0.5s;
}

.hero-btns {
    animation-delay: 0.7s;
}

.hero-image {
    animation-delay: 0.9s;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero .container, .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content, .about-text {
        margin-top: 2rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background-color: var(--bg-color);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 80px 20px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul li a {
        font-size: 1.2rem;
    }
    
    .menu-btn, .close-btn {
        display: block;
    }
    
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .blob-bg {
        width: 250px;
        height: 250px;
    }
    
    .profile-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3rem;
    }
    
    .profile-placeholder.large {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }
    
    .skills-container, 
    .cert-container, 
    .achievements-container, 
    .projects-container, 
    .internship-container {
        grid-template-columns: 1fr;
    }
    
    .resume-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .blob-bg {
        width: 220px;
        height: 220px;
    }
    
    .profile-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
    
    .profile-placeholder.large {
        width: 180px;
        height: 180px;
        font-size: 3.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
}