/* Base Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --dark-color: #212529;
    --light-color: #ffffff;
    --border-color: #e9ecef;
    --hover-color: #3a57e8;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Animation for hamburger menu */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--light-color);
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: var(--background-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--secondary-color);
}

/* Featured Project Section */
.featured-project {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.placeholder-image {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image i {
    font-size: 4rem;
    color: var(--secondary-color);
}

.featured-project-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-project-text p {
    margin-bottom: 25px;
    color: var(--secondary-color);
}

/* About Page */
.about-hero {
    padding: 80px 0 40px;
    background-color: var(--light-color);
    text-align: center;
}

.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image .placeholder-image {
    height: 400px;
    width: 100%;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.personal-info {
    margin-top: 30px;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-weight: 700;
    margin-right: 10px;
}

/* Education Section */
.education {
    padding: 80px 0;
    background-color: var(--background-color);
}

.education-card {
    display: flex;
    gap: 30px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.education-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.education-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.education-institution {
    font-weight: 600;
    margin-bottom: 5px;
}

.education-period {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Skills Detailed Section */
.skills-detailed {
    padding: 80px 0;
    background-color: var(--light-color);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.skills-list li:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Extra Activities Section */
.extra-activities {
    padding: 80px 0;
    background-color: var(--background-color);
}

.activity-card {
    display: flex;
    gap: 30px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.activity-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.activity-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.activity-details p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Projects Page */
.projects-hero {
    padding: 80px 0 40px;
    background-color: var(--light-color);
    text-align: center;
}

.projects {
    padding: 60px 0;
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-image .placeholder-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
}

.project-details {
    padding: 25px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-details p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

/* GitHub CTA Section */
.github-cta {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 25px;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 40px 0;
    color: var(--light-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

/* Contact Form Styles (in case you want to add a contact section) */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-project-content,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .education-card,
    .activity-card {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title,
    .featured-project-text h3 {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .about-hero, 
    .projects-hero {
        padding: 60px 0 30px;
    }
    
    .about-content,
    .projects,
    .featured-project,
    .skills,
    .education,
    .skills-detailed,
    .extra-activities,
    .github-cta {
        padding: 50px 0;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .project-tech {
        justify-content: center;
    }
}

/* Dark Mode Styles (optional) */
.dark-mode {
    --primary-color: #6d8dff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --dark-color: #e9ecef;
    --light-color: #1e1e1e;
    --border-color: #2c2c2c;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .skill-card,
.dark-mode .project-card,
.dark-mode .education-card,
.dark-mode .activity-card,
.dark-mode header {
    background-color: #252525;
}

.dark-mode .placeholder-image {
    background-color: #333333;
}

.dark-mode .skills-list li {
    background-color: #333333;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--hover-color);
    transform: translateY(-5px);
}
/* Certifications Page Styles */
.certifications-hero {
    padding: 80px 0 40px;
    background-color: var(--light-color);
    text-align: center;
}

.certifications {
    padding: 60px 0;
    background-color: var(--background-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 50px 0;
    margin: 0 auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 108, 247, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Error message */
.error-message {
    text-align: center;
    padding: 50px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.error-message i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-message p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Certificate Cards */
.certification-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.certification-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.certification-logo {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.certification-logo i {
    font-size: 2rem;
    color: var(--light-color);
}

.certification-title h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.certification-issuer {
    color: var(--secondary-color);
    font-weight: 500;
}

.certification-details {
    padding: 25px;
}

.certification-info {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.certification-info p {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.certification-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.certification-links {
    display: flex;
    gap: 15px;
}

/* Add Certificate Placeholder */
.add-certification {
    background-color: var(--light-color);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    min-height: 200px;
}

.add-certification:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.05);
}

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

.add-certification i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.add-certification p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Learning Journey Section */
.learning-journey {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.journey-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--secondary-color);
}

.future-certifications {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

.future-certifications li {
    margin-bottom: 10px;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.future-certifications i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Animation for certificate cards */
.certification-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay for cards */
.certification-card:nth-child(1) { animation-delay: 0.1s; }
.certification-card:nth-child(2) { animation-delay: 0.2s; }
.certification-card:nth-child(3) { animation-delay: 0.3s; }
.certification-card:nth-child(4) { animation-delay: 0.4s; }
.certification-card:nth-child(5) { animation-delay: 0.5s; }
.certification-card:nth-child(6) { animation-delay: 0.6s; }
.certification-card:nth-child(7) { animation-delay: 0.7s; }
.certification-card:nth-child(8) { animation-delay: 0.8s; }
.certification-card:nth-child(9) { animation-delay: 0.9s; }
.certification-card:nth-child(10) { animation-delay: 1s; }
.certification-card:nth-child(11) { animation-delay: 1.1s; }
.certification-card:nth-child(12) { animation-delay: 1.2s; }
.certification-card:nth-child(13) { animation-delay: 1.3s; }
.certification-card:nth-child(14) { animation-delay: 1.4s; }

/* Responsive styles for certifications */
@media (max-width: 992px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .certification-header {
        flex-direction: column;
        text-align: center;
    }
    
    .certification-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .certification-info {
        flex-direction: column;
    }
    
    .certification-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .journey-content {
        text-align: left;
    }
    
    .future-certifications {
        width: 100%;
    }
}

/* ...existing code... */

/* Projects grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    max-width: 100%;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.project-details h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.project-details p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    background: #f3f3f3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.project-links .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-image img {
        height: 100px;
    }
}

/* ...existing code... */