/* Base Styles and Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #38bdf8;
    --light-blue: #e0f2fe;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    --shadow-hover: 0 8px 30px rgba(14, 165, 233, 0.25);
    --border-radius: 8px;
    --card-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

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

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

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

section {
    padding: 5rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
}

section:nth-of-type(even) {
    background: linear-gradient(135deg, var(--bg-light), #f1f9ff);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

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

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

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h1 span,
.hero-content h2 span {
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

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

.hero-image img {
    max-width: 80%;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
    border: 4px solid var(--light-blue);
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(14, 165, 233, 0.4);
}

/* About Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-image {
    flex: 1;
    padding-right: 2rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item span {
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.info-item p {
    margin-bottom: 0;
}

/* Education Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--secondary-color);
    transform: translateX(-50%) scale(1.1);
}

.timeline-icon i {
    color: var(--text-white);
}

.timeline-content {
    position: relative;
    background-color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    width: calc(50% - 50px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-category {
    flex: 1;
    min-width: 200px;
}

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

.skill-item {
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.skill-percentage {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-light);
}

.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.soft-skill {
    text-align: center;
    background-color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.soft-skill:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.soft-skill i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.soft-skill h4 {
    font-weight: 500;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

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

.project-item {
    background-color: var(--text-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-img {
    position: relative;
    overflow: hidden;
    max-height: 200px;
}

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

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

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-item:hover .project-img::before {
    opacity: 1;
}

.project-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-links {
    opacity: 1;
}

.project-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--accent-color);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.8rem;
}


/* Certificates Section */
.certificates {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

/* Section Header */
.certificates .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.certificates .section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.certificates .section-header .underline {
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Certificate Item */
.certificate-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Certificate Icon (Image) */
.certificate-icon {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    overflow: hidden;
    border-radius: 10px 10px 0 0; /* Rounded corners at the top */
}

.certificate-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.certificate-item:hover .certificate-icon img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Certificate Content */
.certificate-content {
    padding: 20px;
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.certificate-content h4 {
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 10px;
}

.certificate-content .certificate-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.certificate-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Certificate Link */
.certificate-link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.certificate-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.certificate-link:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificates .section-header h2 {
        font-size: 2rem;
    }
}

/* Volunteer Section */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.volunteer-item {
    background-color: var(--text-white);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.volunteer-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.volunteer-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.volunteer-icon i {
    color: var(--text-white);
    font-size: 1.5rem;
}

.volunteer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.volunteer-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.volunteer-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Competitions Section */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.competition-item {
    background-color: var(--text-white);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.competition-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-color);
}

.competition-item:hover .competition-icon,
.competition-item:hover .competition-content h3,
.competition-item:hover .competition-content h4,
.competition-item:hover .competition-content p {
    color: var(--text-white);
}

.competition-item:hover .competition-icon {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.competition-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.competition-icon i {
    color: var(--text-white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.competition-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.competition-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.competition-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.competition-content p {
    transition: var(--transition);
}

/* Resume Section */
.resume-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.resume-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.resume-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.resume-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.resume-content .btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: var(--card-radius);
    color: var(--text-white);
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.contact-icon i {
    color: var(--text-white);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--text-white);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
}

#form-message {
    margin-top: 1rem;
}

.success-message {
    color: #10b981;
    background-color: #d1fae5;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.error-message {
    color: #ef4444;
    background-color: #fee2e2;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    padding: 2rem 0;
    color: var(--text-white);
}

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

.back-to-top a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about-content {
        flex-direction: column;
    }

    .hero-content,
    .about-image,
    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .hero-image,
    .about-image {
        margin-top: 2rem;
    }

    .personal-info {
        justify-content: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-icon {
        left: 31px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--text-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Specific styles for the new skills categories */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    align-items: start;
}

.skills-category h3 {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.skill-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.skill-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.skill-level {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.skill-percentage {
    text-align: right;
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 0.2rem;
}



/* PFA Internship Pop-up */
.pfa-popup {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.pfa-popup-content {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    animation: slideIn 0.5s ease-in-out;
}

.pfa-popup-close {
    color: white;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.pfa-popup-close:hover {
    color: #f8f9fa;
}

.pfa-popup-text {
    text-align: center;
    color: white;
    padding-top: 1rem;
}

.pfa-popup-text i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.pfa-popup-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pfa-popup-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pfa-popup-text .btn {
    background-color: white;
    color: #28a745;
    border: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.pfa-popup-text .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Hide popup by default */
.pfa-popup.hidden {
    display: none;
}


/* Mobile Responsiveness and Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--text-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Timeline */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 60px;
    }
    
    /* Skills */
    .skills-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .skills-category {
        min-width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Projects */
    .projects-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Volunteer and Competitions */
    .volunteer-grid,
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    /* Pop-up */
    .pfa-popup-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .pfa-popup-text h3 {
        font-size: 1.5rem;
    }
    
    .pfa-popup-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .project-info,
    .certificate-content,
    .volunteer-item,
    .competition-item {
        padding: 1.5rem;
    }
    
    .pfa-popup-content {
        margin: 30% auto;
        padding: 1rem;
    }
    
    .pfa-popup-text h3 {
        font-size: 1.3rem;
    }
    
    .pfa-popup-text i {
        font-size: 2rem;
    }
}

/* Smooth scrolling and performance improvements */
html {
    scroll-behavior: smooth;
}

/* Improved focus states for accessibility */
.btn:focus,
.filter-btn:focus,
nav ul li a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Better hover states */
.project-item,
.certificate-item,
.volunteer-item,
.competition-item {
    will-change: transform;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

