:root {
    --primary: #6c63ff;
    --secondary: #4d44db;
    --dark: #2f2e41;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.typewriter {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    height: 30px;
}

.typewriter span {
    border-right: 2px solid var(--primary);
    animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}


p {
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 18px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    margin-left: 15px;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-cv {
    background-color: var(--dark);
    border-color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cv:hover {
    background-color: transparent;
    color: var(--dark);
}

/* About Section */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

.about-content {
    align-items: center;
}
.about-text {
   text-align: center;
}


.skills {
    margin-top: 50px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.skill-tag i {
    font-size: 16px;
}

/* Experience Section */
.experience-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    height: 80px;
}

.experience-title h3 {
    font-size: 20px;
    color: var(--dark);
}

.experience-title p {
    color: var(--gray);
    font-size: 16px;
    margin: 5px 0 0;
}

.experience-date {
    color: var(--primary);
    font-weight: 600;
}

.experience-description p {
    margin-bottom: 15px;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.experience-skill {
    background-color: var(--light-gray);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

/* Education Section */
.education-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.edu-logo {
    width: 40px;          /* size of the bubble */
    height: 40px;
    border-radius: 50%;   /* makes it circular */
    background-color: white;  /* white background */
    object-fit: cover;    /* scale image to fit circle */
    margin-right: 10px;   /* space between logo and text */
    vertical-align: middle; /* aligns with text */
    border: 1px solid #ddd; /* optional subtle border */
}


.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.education-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.education-title h3 {
    font-size: 20px;
    color: var(--dark);
}

.education-title p {
    color: var(--gray);
    font-size: 16px;
    margin: 5px 0 0;
}

.education-date {
    color: var(--primary);
    font-weight: 600;
}

.education-description p {
    margin-bottom: 15px;
}

/* Projects Section */
.projects {
    padding: 60px 0;
}

.projects .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 20px;
}

.project-content p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray);
    flex-grow: 1;
}

.project-content strong {
    color: var(--dark);
    font-weight: 600;
}

.project-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.project-links a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    text-align: center;
}

.project-links a:hover {
    background-color: transparent;
    color: var(--primary);
}


#contact{
   text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center; 
    gap: 40px;               
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}



/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.experience-item {
    display: flex;
    flex-direction: column; /* stack content vertically */
}
.btn-mimea{
      align-self: flex-end; 
   display: inline-block;
    margin-top: 15px; 
    background-color: var(--primary);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    text-align: right;
}

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

.btn-mimea-outline {
    background-color: transparent;
    color: var(--primary);
    margin-left: 15px;
}

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

@media (max-width: 768px) {
    /* Header - unchanged */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: 0.3s;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    .hamburger { display: block; font-size: 24px; }

    /* Hero Section - unchanged */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    .hero-text { padding-right: 0; margin-top: 30px; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-buttons > * {
        width: 100%;
        max-width: 250px;
        margin: 0;
        text-align: center;
    }
    .btn-cv { justify-content: center; }

    /* SKILLS SECTION - IMPROVED CENTERING */
    .skills {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .skill-category {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 25px;
    }
    .skill-category h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }
    .skill-category h3 i {
        margin-right: 10px;
        flex-shrink: 0; /* Prevents icon from shrinking */
    }
    .skill-tags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        padding: 0 15px; /* Prevents edge touching */
    }

    /* Rest of your sections - unchanged */
    .education-item { text-align: center; }
    .education-header { flex-direction: column; }
    .education-title h3 { display: flex; flex-direction: column; align-items: center; }
    .edu-logo { margin-bottom: 10px; }
    .experience-header { flex-direction: column; height: auto; text-align: center; }
    .experience-date { margin-top: 10px; }
    .btn-mimea { align-self: center; text-align: center; margin: 20px auto 0; display: block; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-content { padding: 20px; text-align: center; }
    .contact-details { flex-direction: column; gap: 20px; align-items: center; }
    .contact-item { flex-direction: column; text-align: center; }
    .contact-item i { margin-right: 0; margin-bottom: 10px; }
    .footer-links { flex-direction: column; gap: 15px; }
}

@media (max-width: 480px) {
    h1 { font-size: 32px; }
    .typewriter { font-size: 18px; }
    .hero-buttons > * { max-width: 100%; }
    .social-links { justify-content: center; margin: 20px 0; }
    .education-title h3 { font-size: 18px; }
    .education-title p { font-size: 14px; }
    .project-content h3 { font-size: 20px; }
    .project-content p { font-size: 14px; }
}