:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 3rem;
    font-weight: bold;
    overflow: hidden;
    border: 4px solid white;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.download-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: var(--accent);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--secondary);
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: white;
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.education-item .date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background-color: var(--light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.project-content p {
    margin-bottom: 1.2rem;
}

.certificates-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-img {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    font-weight: bold;
}

.certificate-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.certificate-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hobbies-list {
    max-width: 800px;
    margin: 0 auto;
}

.hobby-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hobby-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.question-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.question-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Project Showcase Styles */
.project-showcase {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.project-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    text-align: center;
}

.project-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.screenshot {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.screenshot-img {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screenshot-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.screenshot-img img:hover {
    transform: scale(1.05);
}

.screenshot-content {
    padding: 1rem;
    background-color: #f9f9f9;
    flex-grow: 1;
}

.screenshot-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-details {
    padding: 0 2rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.feature h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Lightbox for image zoom */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border: 3px solid white;
    border-radius: 5px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.screenshot-img, .certificate-img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .skills-container, .projects-grid, .certificates-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .project-screenshots {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-img, .certificate-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .screenshot-img, .certificate-img {
        height: 150px;
    }
    
    .project-header {
        padding: 1.5rem;
    }
    
    .project-details {
        padding: 0 1rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}