:root {
  --primary-color: #2563eb;
  --secondary-color: #1e293b;
  --text-color: #1f2937;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --footer-bg: #1f2937;
  --header-bg: #1e293b;
}

[data-theme="dark"] {
  --primary-color: #3b82f6;
  --secondary-color: #1f2937;
  --text-color: #f9fafb;
  --bg-color: #111827;
  --card-bg: #1f2937;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --border-color: #374151;
  --success-color: #10b981;
  --footer-bg: #0f172a;
  --header-bg: #1f2937;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header, .main-nav {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

footer {
  background-color: var(--footer-bg);
  color: white;
}

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

a:hover {
  color: var(--secondary-color);
}

.card, .certification-card, .experience-card, .contact-form {
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease;
}

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

[data-theme="dark"] header {
    background-color: var(--secondary-color);
    color: white;
}

[data-theme="dark"] footer {
    background-color: var(--footer-bg);
    color: white;
}

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

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

[data-theme="dark"] .experience-card .date {
    color: var(--text-color);
    opacity: 0.8;
}

[data-theme="dark"] .skills-category li {
    color: var(--text-color);
}

[data-theme="dark"] .certification-card {
    color: var(--text-color);
}

[data-theme="dark"] .certification-card p {
    color: var(--text-color);
}

[data-theme="dark"] .btn {
    color: white;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.main-nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

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

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

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

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

.main-nav a:hover::after {
    width: 100%;
}

[data-theme="dark"] .main-nav {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.contact-info {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info span {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .contact-info a:hover {
        text-decoration: none;
        color: var(--primary-color);
        cursor: pointer;
    }
}

.contact-info,
.contact-info span,
.contact-info a {
    color: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-info span,
[data-theme="dark"] .contact-info a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .contact-info a:hover {
    color: var(--primary-color);
}

.contact-info span:not(:last-child)::after {
    content: "•";
    color: var(--primary-color);
    margin-left: 10px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

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

#profile {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#education {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#experience {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#projects {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#skills {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#badges {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#certifications {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

#contact {
    padding-top: 80px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.profile-text {
    flex: 1;
    min-width: 300px;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.5s ease;
    z-index: 1;
}

.profile-image:hover::before {
    border-color: var(--primary-color);
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.profile-hover-icons {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: all 0.5s ease;
    z-index: 2;
}

.profile-image:hover .profile-hover-icons {
    bottom: 20px;
}

.profile-hover-icons a {
    color: white;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-hover-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--secondary-color);
}

.timeline {
    position: relative;
    padding-left: 50px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-color);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.experience-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.experience-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.experience-card:hover::after {
    transform: scaleX(1);
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.skills-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skills-category ul {
    list-style: none;
}

.skills-category li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.skills-category li:hover {
    transform: translateX(10px);
}

.skills-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skills-category li:hover::before {
    color: var(--secondary-color);
    transform: scale(1.5);
}

.skill-progress {
    height: 3px;
    background: var(--border-color);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.skill-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 1s ease;
}

.skills-category li:hover .skill-progress::after {
    width: var(--skill-level);
}

.certifications-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.certification-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.certification-card:hover::before {
    border-color: var(--primary-color);
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
}

.certification-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.certification-card p {
    color: var(--secondary-color);
}

.links-container {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-download {
    background: var(--success-color, #28a745);
}

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

.contact-form {
    max-width: 500px;
    width: 90%;
    margin: 20px auto;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.contact-form h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

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

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, #2980b9, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

[data-theme="dark"] .contact-form {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-color: rgba(255, 255, 255, 0.1);
    background: #1e1e1e;
}

[data-theme="dark"] .contact-form:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }

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

footer {
    background: linear-gradient(135deg, var(--footer-bg) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-links a::before {
    content: '▸';
    margin-right: 8px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.social-links i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-tech {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

.footer-tech i {
    color: #e74c3c;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-links a {
        flex-direction: column;
        padding: 10px;
        text-align: center;
        min-width: 80px;
    }
    
    .social-links span {
        font-size: 0.8rem;
    }
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animated {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 101;
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.main-nav ul {
    transition: all 0.3s ease;
}

.main-nav ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 20px;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .main-nav ul.show {
    background: var(--secondary-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        padding: 20px 0;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav li {
        margin: 10px 0;
        text-align: center;
    }

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

    .profile-image {
        order: -1;
        margin-bottom: 20px;
    }

    .header-content h1 {
        font-size: 1.8rem;
        margin-top: 20px;
    }

    .contact-info span {
        display: block;
        margin: 8px 0;
        font-size: 1rem;
    }

    .links-container {
        flex-direction: column;
        gap: 10px;
    }

    .btn,
    .main-nav a {
        padding: 12px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 16px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
        letter-spacing: -0.025em;
    }

    h2 {
        font-size: 1.875rem;
        color: var(--text-color);
    }

    h3 {
        font-size: 1.5rem;
        color: var(--text-color);
    }

    p {
        color: var(--text-color);
        opacity: 0.8;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .social-icons a {
        margin: 0 5px;
        font-size: 1.2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item {
        padding: 15px;
    }
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow);
    position: relative;
}

.close-btn {
    color: var(--primary-color);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Skill progress bars */
.skill-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.skill-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 1.5s ease;
}

/* Loading Spinner */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    text-align: center;
    color: var(--primary-color);
}

.loader-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loader-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.brightness-control-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.brightness-control-container label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.brightness-control-container input[type="range"] {
    width: 100px;
    cursor: pointer;
}

.certifications-slider a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.certifications-slider a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Badges Section Styles */
.badges-container {
    margin: 40px 0;
}

.badge-category {
    margin-bottom: 40px;
}

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

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.badge-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.badge-card h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

[data-theme="dark"] .badge-card h4 {
    color: var(--text-color);
}

.badge-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.badge-link:hover {
    background: var(--secondary-color);
    color: white;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rating-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.rating-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

[data-theme="dark"] .rating-card h4 {
    color: var(--text-color);
}

.stars {
    margin: 10px 0;
    font-size: 1.5rem;
}

.star {
    color: #ddd;
    transition: color 0.3s ease;
}

.star.filled {
    color: #ffd700;
}

.rating-card p {
    color: var(--text-color);
    font-weight: 500;
    margin-top: 10px;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.certification-btn {
    margin-top: 15px;
    display: inline-block;
}

/* Badge Image Styles */
.badge-image {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.badge-image img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: contain;
}

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

/* Enhanced Certifications Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header h2 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.certification-card {
    position: relative;
    overflow: hidden;
}

.certification-card.featured {
    border-left: 4px solid var(--primary-color);
}

.certification-card.premium {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.cert-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.certification-card.premium .cert-icon {
    background: #ffd700;
    color: #333;
}

.cert-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.platform, .cert-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

[data-theme="dark"] .platform,
[data-theme="dark"] .cert-type {
    color: var(--text-color);
    opacity: 0.8;
}

.cert-skills {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.certification-card:hover .cert-icon {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

/* Profile Summary Enhancements */
.profile-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

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

[data-theme="dark"] .highlight-item h4 {
    color: var(--text-color);
}

.highlight-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Enhanced Timeline */
.timeline-item.current {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.timeline-icon {
    position: absolute;
    left: -45px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

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

.timeline-content h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

[data-theme="dark"] .timeline-content h4 {
    color: var(--text-color);
}

.timeline-content .date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content .description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
}

.education-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.education-highlights .highlight {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Enhanced Experience Cards */
.experience-card.featured {
    border-top: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.company-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.experience-header h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

[data-theme="dark"] .experience-header h4 {
    color: var(--text-color);
}

.experience-header .date {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.experience-content .description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
}

.achievements {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.achievements li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.achievements i {
    color: var(--primary-color);
    margin-top: 2px;
    font-size: 0.8rem;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.view-certificate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-certificate:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .cert-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cert-icon {
        position: static;
        margin: 0 auto 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .profile-highlights {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-logo {
        position: static;
        margin: 0 auto 15px;
    }
    
    .experience-header .date {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

[data-theme="dark"] .certifications-slider a {
    color: var(--primary-color);
}

[data-theme="dark"] .certifications-slider a:hover {
    color: var(--secondary-color);
}

#back-to-top:hover {
    background: var(--secondary-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.info-item p {
    color: var(--text-color);
    font-weight: 500;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-form .form-group i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    font-weight: 500;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(var(--text-color), 0.7);
    font-weight: 400;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
    }
}
/* Certificate and Badge Hover Image Effects */
.certification-card:hover .cert-icon,
.badge-card:hover .badge-icon {
    transform: scale(1.5);
    transition: transform 0.3s ease;
    z-index: 10;
}

.cert-icon,
.badge-icon {
    transition: transform 0.3s ease;
}
