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

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #f0f5ff;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

[data-theme='dark'] {
    --primary-color: #4d94ff;
    --primary-dark: #3385ff;
    --primary-light: #1a2536;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --white: #1e1e1e;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.4);
    --card-bg: #1e1e1e;
    --border-color: #2c2c2c;
    --hover-bg: #2a2a2a;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.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(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-theme='dark'] #scrollTopBtn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

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

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

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    transition: transform 0.5s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

/* Theme transition effect */
.theme-transition {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}


/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

[data-theme='dark'] header {
    background: linear-gradient(135deg, #1a2536 0%, #0d1520 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0 150px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.hero-buttons .btn {
    min-width: 160px;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail i {
    font-size: 1.2rem;
    color: #0066ff;
}

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

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

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

[data-theme='dark'] .social-links a {
    color: var(--text-color);
}

[data-theme='dark'] .social-links a:hover {
    color: var(--primary-color);
}

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

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

.timeline-item {
    padding: 10px 60px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid transparent;
}

[data-theme='dark'] .timeline-content {
    border-color: var(--border-color);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

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

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 15px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(128, 128, 128, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 820px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

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

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
}

.slider-btn {
    display: none;
}

[data-theme='dark'] .project-card {
    border-color: var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
}

[data-theme='dark'] .project-card:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

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

/* Expandable project card styles */
.project-card.expandable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.expandable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.read-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin: 15px 0;
    cursor: pointer;
    align-self: flex-start;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

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

.project-card.expanded .project-content p {
    transition: all 0.3s ease;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.85;
}

[data-theme='dark'] .project-content p {
    opacity: 0.95;
}

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

.project-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

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

.project-tags span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

[data-theme='dark'] .project-tags span {
    background-color: rgba(77, 148, 255, 0.15);
}

[data-theme='dark'] .project-tags span:hover {
    background-color: rgba(77, 148, 255, 0.25);
    transform: translateY(-2px);
}

.project-features {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 15px 0;
}

.project-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.85;
}

[data-theme='dark'] .project-features li {
    opacity: 0.95;
}

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

.skill-category {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

[data-theme='dark'] .skill-category {
    border-color: var(--border-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.skill-item {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    white-space: nowrap;
    transition: var(--transition);
}

[data-theme='dark'] .skill-item {
    background-color: rgba(77, 148, 255, 0.15);
    color: var(--primary-color);
}

[data-theme='dark'] .skill-item:hover {
    background-color: rgba(77, 148, 255, 0.25);
    transform: translateY(-2px);
}

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

.education-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

[data-theme='dark'] .education-item {
    border-color: var(--border-color);
}

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

[data-theme='dark'] .education-item:hover {
    background-color: var(--hover-bg);
}

.education-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -30px;
    top: 30px;
}

.education-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.education-date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 10px;
}

.education-details {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.education-details li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.certification-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid transparent;
}

[data-theme='dark'] .certification-item {
    border-color: var(--border-color);
}

.cert-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: var(--primary-dark);
}

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

[data-theme='dark'] .certification-item:hover {
    background-color: var(--hover-bg);
}

.certification-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.certification-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.certification-item p {
    font-size: 0.9rem;
    color: #777;
}



/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0066ff;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

[data-theme='dark'] .form-group input,
[data-theme='dark'] .form-group textarea {
    border-color: var(--border-color);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme='dark'] .form-group input:focus,
[data-theme='dark'] .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

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

.form-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-status.success {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    opacity: 1;
    transform: translateY(0);
}

[data-theme='dark'] .form-status.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
}

[data-theme='dark'] .form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 0;
}

[data-theme='dark'] footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

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

footer .social-links a {
    color: white;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }

    .nav-links.active {
        right: 0;
    }

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

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .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);
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -39px;
    }

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

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

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .project-card {
        min-width: 100%;
    }

    .nav-links {
        width: 100%;
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .about-details .detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
}

.project-image.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-images {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0, 102, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: #ffffff;
}

.project-image.slider:hover .slider-btn {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

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

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    overflow: hidden;
}

/* Dark theme adjustments for slider buttons */
[data-theme='dark'] .slider-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(77, 148, 255, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .slider-btn:hover {
    background: rgba(77, 148, 255, 0.9);
    border-color: var(--primary-light);
}

[data-theme='dark'] .project-card {
    border-color: var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
}

[data-theme='dark'] .project-card:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

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

/* Expandable project card styles */
.project-card.expandable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.expandable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.read-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin: 15px 0;
    cursor: pointer;
    align-self: flex-start;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

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

.project-card.expanded .project-content p {
    transition: all 0.3s ease;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.85;
}

[data-theme='dark'] .project-content p {
    opacity: 0.95;
}

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

.project-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

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

.project-tags span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

[data-theme='dark'] .project-tags span {
    background-color: rgba(77, 148, 255, 0.15);
}

[data-theme='dark'] .project-tags span:hover {
    background-color: rgba(77, 148, 255, 0.25);
    transform: translateY(-2px);
}

.project-features {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 15px 0;
}

.project-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.85;
}

[data-theme='dark'] .project-features li {
    opacity: 0.95;
}

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

.skill-category {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

[data-theme='dark'] .skill-category {
    border-color: var(--border-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.skill-item {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    white-space: nowrap;
    transition: var(--transition);
}

[data-theme='dark'] .skill-item {
    background-color: rgba(77, 148, 255, 0.15);
    color: var(--primary-color);
}

[data-theme='dark'] .skill-item:hover {
    background-color: rgba(77, 148, 255, 0.25);
    transform: translateY(-2px);
}

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

.education-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

[data-theme='dark'] .education-item {
    border-color: var(--border-color);
}

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

[data-theme='dark'] .education-item:hover {
    background-color: var(--hover-bg);
}

.education-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -30px;
    top: 30px;
}

.education-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.education-date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 10px;
}

.education-details {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.education-details li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.certification-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid transparent;
}

[data-theme='dark'] .certification-item {
    border-color: var(--border-color);
}

.cert-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: var(--primary-dark);
}

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

[data-theme='dark'] .certification-item:hover {
    background-color: var(--hover-bg);
}

.certification-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.certification-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.certification-item p {
    font-size: 0.9rem;
    color: #777;
}

/* Reviews Section */
.reviews-container {
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Custom scrollbar for reviews list */
.reviews-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

[data-theme='dark'] .reviews-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme='dark'] .reviews-list::-webkit-scrollbar-thumb {
    background: #555;
}

.loading-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
}

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

.no-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

[data-theme='dark'] .no-reviews {
    background-color: #2d2d2d;
    border: 1px dashed #444;
}

.no-reviews i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #999;
}

.review-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

[data-theme='dark'] .review-item {
    background-color: #2a2a2a;
    border: 1px solid #333;
}

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

[data-theme='dark'] .review-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-info {
    flex: 1;
}

.review-author {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.review-date i {
    font-size: 0.8rem;
}

.review-rating {
    margin-bottom: 0.8rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.review-rating i {
    margin-right: 0.2rem;
    font-size: 1rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}

[data-theme='dark'] .review-text {
    background-color: #333;
    color: #ddd;
    border-left: 3px solid var(--primary-color);
}

.review-form-container {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

[data-theme='dark'] .review-form-container {
    background-color: #2a2a2a;
    border: 1px solid #333;
}

.review-form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.review-form-container form {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.review-form-container form .form-group:nth-child(3),
.review-form-container form .form-group:nth-child(4),
.review-form-container form .form-group:nth-child(5) {
    grid-column: 1 / -1;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
}

.star-rating i {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating i.fas {
    color: #ffc107;
}

.star-rating i:hover {
    color: #ffc107;
}

.review-form-container button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0066ff;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

[data-theme='dark'] .form-group input,
[data-theme='dark'] .form-group textarea {
    border-color: var(--border-color);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme='dark'] .form-group input:focus,
[data-theme='dark'] .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

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

.form-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-status.success {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    opacity: 1;
    transform: translateY(0);
}

[data-theme='dark'] .form-status.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
}

[data-theme='dark'] .form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 0;
}

[data-theme='dark'] footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

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

footer .social-links a {
    color: white;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }

    .nav-links.active {
        right: 0;
    }

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

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .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);
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -39px;
    }

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

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

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .project-card {
        min-width: 100%;
    }

    .nav-links {
        width: 100%;
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .about-details .detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
}