/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-content {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: bold;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #007bff;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
    margin-right: 1rem;
    color: var(--text-primary);
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--gradient-1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.home-content {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

.home-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.home-content .name {
    color: var(--accent-color);
    font-weight: 700;
}

.home-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.home-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Dark theme specific styles for home section */
[data-theme="dark"] .home-content {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .home-content h1,
[data-theme="dark"] .home-content h2,
[data-theme="dark"] .home-content p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .home-content .name {
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #home .social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

[data-theme="dark"] #home .social-links a:hover {
    color: #ffffff;
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Social links styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #ffffff;
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .home-content h1 {
        font-size: 2rem;
    }
    
    .home-content h2 {
        font-size: 1.5rem;
    }
    
    .home-content p {
        font-size: 1rem;
    }
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: auto;
}

.about-text p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skills li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--card-shadow);
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.skills li:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: 0.5s;
}

.skills li:hover:before {
    left: 100%;
}

.skills li:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.timeline-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--card-shadow);
    border-left: 4px solid #007bff;
    position: relative;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    animation: pulse 2s infinite;
}

.timeline-content {
    padding: 1.5rem;
}

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

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.timeline-content .date {
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: justify;
    line-height: 1.6;
}

.timeline-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
}

/* Certifications Section */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cert-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
}

.cert-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cert-item h3 {
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
    text-decoration: none;
}

.cert-item p {
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    text-decoration: none;
}

/* Footer Styles with Dark Theme Support */
footer {
    background: var(--bg-secondary);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

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

.footer-social {
    margin-bottom: 2rem;
}

.footer-social h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-social:hover h3:after {
    width: 100px;
}

/* Social Links in Footer */
.footer-social .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 30px;
    text-decoration: none;
    color: #2b2b2b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Dark Theme Footer Specific */
[data-theme="dark"] .footer-social .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-social .social-links a:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer-social .social-links a i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Hover Effect */
.footer-social .social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Copyright Section */
.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    text-align: center;
}

[data-theme="dark"] .copyright {
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Heart Icon - Updated positioning */
.copyright:before {
    content: '❤️';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translate(-50%, 0);
    background: var(--bg-secondary);
    padding: 0 15px;
    font-size: 1.2rem;
    line-height: 24px;
    z-index: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .footer-social .social-links {
        gap: 1rem;
    }

    .footer-social .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .copyright:before {
        top: -10px;
        padding: 0 12px;
        font-size: 1.1rem;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }

    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .footer-social h3 {
        font-size: 1.5rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Dark Theme Specific Styles */
[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.05);
}

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

[data-theme="dark"] .footer-social h3:after {
    background: var(--accent-color);
}

/* Contact Section Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content {
    background: var(--gradient-2);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-radius: 15px;
    padding: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: white;
    min-width: 30px;
    text-align: center;
}

.contact-item a {
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.contact-item p {
    display: none;
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
        min-width: 25px;
    }

    .contact-item a {
        font-size: 1rem;
    }

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

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

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .cert-container {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }

    .cert-item {
        padding: 1.5rem;
    }

    .cert-item h3 {
        font-size: 1.1rem;
    }

    .cert-item i {
        font-size: 2rem;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .contact-content {
        padding: 1.5rem 1rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .cert-item h3 {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
    }

    .home-content {
        width: 90%;
        padding: 2rem 1rem;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: white;
    }

    .home-content h1,
    .home-content h2,
    .home-content p {
        color: white;
    }

    .cert-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .cert-item h3 {
        font-size: 1rem;
    }

    .skills ul {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content .date {
        font-size: 0.9rem;
    }

    .timeline-content li {
        font-size: 0.95rem;
        padding-left: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }

    footer .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    footer .social-links a {
        width: 80%;
        justify-content: center;
        padding: 0.8rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    /* Navigation mobile improvements */
    .nav-content {
        padding: 0.8rem;
    }

    .logo a {
        font-size: 1.3rem;
    }

    .nav-links.active {
        padding: 0.8rem;
    }

    .nav-links.active li {
        margin: 0.5rem 0;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media screen and (max-width: 380px) {
    .home-content h1 {
        font-size: 1.5rem;
    }

    .home-content h2 {
        font-size: 1.1rem;
    }

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

    .cert-item h3 {
        font-size: 0.9rem;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #007bff, #00ff88);
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    z-index: 1000;
}

/* Add these animation keyframes at the top of your CSS file */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add these classes to your existing CSS */
.animate {
    opacity: 0;
}

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

.animate.slide-in {
    animation: slideInLeft 0.6s ease forwards;
}

.animate.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Update these existing sections with new animations */
.home-content {
    opacity: 0;
    animation: scaleIn 1s ease forwards;
    position: relative;
    z-index: 2;
}

.nav-links li a:hover {
    color: #007bff;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.skills li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--card-shadow);
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.skills li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.cert-item {
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.submit-btn {
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Add a progress bar at the top of the page */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Add these styles for the particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    animation: float 3s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Text alignment classes */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    /* General mobile adjustments */
    section {
        padding: 4rem 1rem;
    }

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

    /* Navigation Mobile */
    .nav-content {
        padding: 0.8rem 1rem;
    }

    .logo a {
        font-size: 1.3rem;
    }

    .menu-btn {
        display: block;
        font-size: 1.5rem;
        margin-left: auto;
        margin-right: 1rem;
    }

    .theme-switch {
        margin-right: 0.5rem;
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Home Section Mobile */
    #home {
        height: 100vh;
        padding: 1rem;
    }

    .home-content {
        width: 90%;
        padding: 2rem 1rem;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: white;
    }

    .home-content h1,
    .home-content h2,
    .home-content p {
        color: white;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h2 {
        font-size: 1.4rem;
    }

    .home-content p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .social-links {
        margin-top: 1.5rem;
    }

    .social-links a {
        font-size: 1.3rem;
        margin: 0 0.8rem;
    }

    /* About Section Mobile */
    .about-content {
        padding: 0 0.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .skills ul {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .skills li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Experience Section Mobile */
    .timeline {
        padding: 0 0.5rem;
    }

    .timeline-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 0.8rem 0;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content .date {
        font-size: 0.9rem;
    }

    .experience-list li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    /* Certifications Mobile */
    .cert-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .cert-item {
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }

    .cert-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .cert-item h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .cert-item p {
        font-size: 0.9rem;
    }

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

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        margin-top: 1.5rem;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 1rem;
        gap: 0.8rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .contact-item a {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }

    .form-group textarea {
        height: 100px;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 6px;
    }

    /* Footer Mobile */
    footer {
        padding: 2rem 1rem;
    }

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

    .footer-social h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .footer-social .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social .social-links a {
        font-size: 1rem;
    }

    .copyright {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .home-content h1 {
        font-size: 1.8rem;
    }

    .home-content h2 {
        font-size: 1.2rem;
    }

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

    .skills ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .contact-info h2 {
        font-size: 1.4rem;
    }

    .cert-item h3 {
        font-size: 0.95rem;
    }
}

/* Landscape Mode Optimization */
@media screen and (max-height: 480px) and (orientation: landscape) {
    #home {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem;
    }

    .home-content {
        padding: 1.5rem;
    }
}

/* Theme Variables */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #007bff;
    --gradient-1: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    --gradient-2: linear-gradient(-45deg, #333333, #1a1a1a, #0056b3, #007bff);
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --transition: all 0.3s ease;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --bg-color: #f5f6fa;
    --skill-bg: #f0f2f5;
    --skill-text: #2c3e50;
    --dark-primary-color: #ecf0f1;
    --dark-secondary-color: #bdc3c7;
    --dark-text-color: #ecf0f1;
    --dark-bg-color: #1a1a1a;
    --dark-card-bg: #2d2d2d;
    --dark-skill-bg: #3d3d3d;
    --dark-skill-text: #ecf0f1;
    --transition-speed: 0.3s;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-color: #3498db;
    --gradient-1: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
    --gradient-2: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(45, 45, 45, 0.95);
    --mobile-menu-bg: rgba(45, 45, 45, 0.98);
    --home-text: #ffffff;
    --home-subtext: #e0e0e0;
    --timeline-border: #3498db;
    --timeline-date: #e0e0e0;
    --section-title: #ffffff;
    --skill-bg: #3d3d3d;
    --skill-text: #ffffff;
    --dark-card-bg: #2d2d2d;
    --dark-skill-bg: #3d3d3d;
    --dark-skill-text: #ffffff;
}

/* Update specific dark theme styles */
[data-theme="dark"] .home-content {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .home-content h2 {
    color: var(--home-subtext);
}

[data-theme="dark"] .section-title {
    color: var(--section-title);
}

[data-theme="dark"] .timeline-item {
    border-left-color: var(--timeline-border);
}

[data-theme="dark"] .timeline-item:before {
    background: var(--accent-color);
}

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

[data-theme="dark"] .skills li:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    transform: translateY(-5px) scale(1.05);
}

[data-theme="dark"] .cert-item {
    background: rgba(45, 45, 45, 0.9);
}

[data-theme="dark"] .cert-item:hover {
    background: rgba(55, 55, 55, 0.9);
}

[data-theme="dark"] .social-links a {
    color: #ffffff;
}

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

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

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .submit-btn {
    background: var(--accent-color);
    color: #ffffff;
}

[data-theme="dark"] .submit-btn:hover {
    background: #0056b3;
}

/* Update footer for dark theme */
[data-theme="dark"] footer {
    background: var(--bg-secondary);
}

[data-theme="dark"] footer .social-links a {
    color: #ffffff;
}

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

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

/* Apply Variables */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

nav {
    background: var(--bg-secondary);
}

.logo a {
    color: var(--text-primary);
}

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

/* Theme Switch Styles */
.theme-switch {
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-switch:hover {
    color: var(--accent-color);
    transform: rotate(45deg);
}

/* Update existing sections */
#home {
    background: var(--gradient-1);
}

.contact-content {
    background: var(--gradient-2);
}

.skills li, .cert-item, .timeline-item {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 10px var(--card-shadow);
}

.timeline-content h3 {
    color: var(--accent-color);
}

.timeline-content h4 {
    color: var(--text-secondary);
}

/* Mobile Navigation Improvements */
@media screen and (max-width: 768px) {
    .nav-content {
        padding: 0.8rem;
    }

    .menu-btn {
        display: block;
        font-size: 1.5rem;
        margin-left: auto;
        margin-right: 1rem;
    }

    .theme-switch {
        margin-right: 0.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Home Section Mobile Adjustments */
    .home-content {
        padding: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    .home-content h1,
    .home-content h2,
    .home-content p {
        color: white;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h2 {
        font-size: 1.4rem;
    }

    /* Skills Section Mobile */
    .skills ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .skills li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Timeline Mobile */
    .timeline-item {
        padding: 1.5rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }

    .timeline-content {
        padding: 1rem 0;
    }

    /* Certifications Mobile */
    .cert-container {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .cert-item {
        padding: 1.5rem;
    }

    /* Contact Form Mobile */
    .contact-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .home-content h1 {
        font-size: 1.8rem;
    }

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

    .social-links a {
        margin: 0 0.5rem;
    }
}

/* Add Oracle icon styles */
.fa-oracle {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.fa-oracle:before {
    content: "\f7b1"; /* Oracle icon unicode */
}

/* Adjust cert-container for new items */
.cert-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Mobile Navigation Dark Theme Fixes */
@media screen and (max-width: 768px) {
    nav {
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
    }

    .nav-links {
        background: var(--mobile-menu-bg);
    }

    .nav-links li a {
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Home Section Mobile Dark Theme */
    .home-content {
        background: rgba(45, 45, 45, 0.8);
        backdrop-filter: blur(10px);
    }

    .home-content h1,
    .home-content h2,
    .home-content p {
        color: white;
    }

    /* Skills Mobile Dark Theme */
    .skills li {
        background: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Timeline Mobile Dark Theme */
    .timeline-item {
        background: var(--card-bg);
        border-left: 4px solid var(--accent-color);
    }

    /* Certifications Mobile Dark Theme */
    .cert-item {
        background: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cert-item h3 {
        color: var(--text-primary);
    }

    .cert-item p {
        color: var(--text-secondary);
    }

    /* Contact Form Mobile Dark Theme */
    .contact-content {
        background: var(--gradient-2);
    }

    .contact-info h2,
    .contact-info p {
        color: var(--text-primary);
    }

    .contact-item a {
        color: var(--text-primary);
    }

    .contact-form input,
    .contact-form textarea {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Section Titles Dark Theme */
    .section-title {
        color: var(--text-primary);
    }
}

/* Extra Small Devices Dark Theme */
@media screen and (max-width: 480px) {
    [data-theme="dark"] .home-content {
        background: rgba(45, 45, 45, 0.9);
    }

    [data-theme="dark"] .cert-item {
        background: var(--card-bg);
    }

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

/* Improve visibility of social links in dark theme */
[data-theme="dark"] .social-links a {
    color: var(--text-primary);
}

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

/* Footer Dark Theme Mobile */
[data-theme="dark"] footer {
    background: var(--bg-secondary);
}

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

[data-theme="dark"] footer .copyright {
    color: var(--text-secondary);
}

/* Mobile Navigation Styles */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
    margin-right: 1rem;
    color: var(--text-primary);
}

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

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px; /* Height of your nav bar */
        left: 0;
        width: 100%;
        height: auto;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-secondary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .nav-links li a {
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a:hover {
        background: rgba(0, 123, 255, 0.1);
    }

    [data-theme="dark"] .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Navigation Container */
    .nav-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    /* Theme Switch Position */
    .theme-switch {
        margin-left: 1rem;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-backdrop-filter: none) {
    @media screen and (max-width: 768px) {
        .nav-links {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }
    }
}

/* Update certificate logo styles */
.cert-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.cert-item:hover .cert-logo {
    transform: scale(1.1);
}

/* Dark theme adjustments for logos */
[data-theme="dark"] .cert-logo {
    filter: brightness(1) contrast(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .cert-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .cert-logo {
        width: 70px;
        height: 70px;
    }
}

/* Certificate item container adjustments */
.cert-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
}

.cert-item h3 {
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
    text-decoration: none;
}

.cert-item p {
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    text-decoration: none;
}

/* Dark theme specific */
[data-theme="dark"] .cert-item {
    text-decoration: none;
}

[data-theme="dark"] .cert-item h3 {
    text-decoration: none;
}

/* Hover state */
.cert-item:hover {
    text-decoration: none;
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Home section social links - No padding for both themes */
#home .social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
}

/* Dark theme specific for home social links */
[data-theme="dark"] #home .social-links a {
    color: var(--text-primary);
    padding: 0;
    background: transparent !important;
}

[data-theme="dark"] #home .social-links a:hover {
    color: var(--accent-color);
    background: transparent !important;
}

/* Contact Form Mobile Adjustments */
@media screen and (max-width: 768px) {
    .contact-item {
        color: #ffffff !important;
    }
    
    .contact-item a,
    .contact-item i,
    .contact-info h2,
    .contact-info p {
        color: #ffffff !important;
    }

    .contact-form input,
    .contact-form textarea {
        color: #ffffff !important;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    background: linear-gradient(90deg, var(--accent-color) 0%, #00c6ff 100%);
}

.skill-category h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.skill-category h4 i {
    color: var(--accent-color);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.skill-category:hover h4 i {
    transform: scale(1.1);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
}

.skills-list li {
    background: var(--skill-bg);
    color: var(--skill-text);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.skills-list li:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Dark Theme Specific Styles */
[data-theme="dark"] .skill-category {
    background: var(--dark-card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .skill-category::before {
    background: linear-gradient(90deg, var(--accent-color) 0%, #2980b9 100%);
}

[data-theme="dark"] .skills-list li {
    background: var(--dark-skill-bg);
    color: var(--dark-skill-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skills-list li:hover {
    background: var(--accent-color);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.6rem;
    }

    .skills-list li {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .skills-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .skills-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Landscape Mode Optimization */
@media screen and (max-height: 480px) and (orientation: landscape) {
    #home {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem;
    }

    .home-content {
        padding: 1.5rem;
    }
}

/* Theme Variables */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #007bff;
    --gradient-1: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    --gradient-2: linear-gradient(-45deg, #333333, #1a1a1a, #0056b3, #007bff);
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --transition: all 0.3s ease;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --bg-color: #f5f6fa;
    --skill-bg: #f0f2f5;
    --skill-text: #2c3e50;
    --dark-primary-color: #ecf0f1;
    --dark-secondary-color: #bdc3c7;
    --dark-text-color: #ecf0f1;
    --dark-bg-color: #1a1a1a;
    --dark-card-bg: #2d2d2d;
    --dark-skill-bg: #3d3d3d;
    --dark-skill-text: #ecf0f1;
    --transition-speed: 0.3s;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-color: #3498db;
    --gradient-1: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
    --gradient-2: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(45, 45, 45, 0.95);
    --mobile-menu-bg: rgba(45, 45, 45, 0.98);
    --home-text: #ffffff;
    --home-subtext: #e0e0e0;
    --timeline-border: #3498db;
    --timeline-date: #e0e0e0;
    --section-title: #ffffff;
    --skill-bg: #3d3d3d;
    --skill-text: #ffffff;
    --dark-card-bg: #2d2d2d;
    --dark-skill-bg: #3d3d3d;
    --dark-skill-text: #ffffff;
}

/* Update specific dark theme styles */
[data-theme="dark"] .home-content {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .home-content h2 {
    color: var(--home-subtext);
}

[data-theme="dark"] .section-title {
    color: var(--section-title);
}

[data-theme="dark"] .timeline-item {
    border-left-color: var(--timeline-border);
}

[data-theme="dark"] .timeline-item:before {
    background: var(--accent-color);
}

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

[data-theme="dark"] .skills li:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    transform: translateY(-5px) scale(1.05);
}

[data-theme="dark"] .cert-item {
    background: rgba(45, 45, 45, 0.9);
}

[data-theme="dark"] .cert-item:hover {
    background: rgba(55, 55, 55, 0.9);
}

[data-theme="dark"] .social-links a {
    color: #ffffff;
}

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

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

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .submit-btn {
    background: var(--accent-color);
    color: #ffffff;
}

[data-theme="dark"] .submit-btn:hover {
    background: #0056b3;
}

/* Update footer for dark theme */
[data-theme="dark"] footer {
    background: var(--bg-secondary);
}

[data-theme="dark"] footer .social-links a {
    color: #ffffff;
}

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

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

/* Mobile Navigation Styles */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
    margin-right: 1rem;
    color: var(--text-primary);
}

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

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px; /* Height of your nav bar */
        left: 0;
        width: 100%;
        height: auto;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-secondary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .nav-links li a {
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a:hover {
        background: rgba(0, 123, 255, 0.1);
    }

    [data-theme="dark"] .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Navigation Container */
    .nav-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    /* Theme Switch Position */
    .theme-switch {
        margin-left: 1rem;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-backdrop-filter: none) {
    @media screen and (max-width: 768px) {
        .nav-links {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }
    }
}

/* Update certificate logo styles */
.cert-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.cert-item:hover .cert-logo {
    transform: scale(1.1);
}

/* Dark theme adjustments for logos */
[data-theme="dark"] .cert-logo {
    filter: brightness(1) contrast(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .cert-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .cert-logo {
        width: 70px;
        height: 70px;
    }
}

/* Certificate item container adjustments */
.cert-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
}

.cert-item h3 {
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
    text-decoration: none;
}

.cert-item p {
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    text-decoration: none;
}

/* Dark theme specific */
[data-theme="dark"] .cert-item {
    text-decoration: none;
}

[data-theme="dark"] .cert-item h3 {
    text-decoration: none;
}

/* Hover state */
.cert-item:hover {
    text-decoration: none;
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Home section social links - No padding for both themes */
#home .social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
}

/* Dark theme specific for home social links */
[data-theme="dark"] #home .social-links a {
    color: var(--text-primary);
    padding: 0;
    background: transparent !important;
}

[data-theme="dark"] #home .social-links a:hover {
    color: var(--accent-color);
    background: transparent !important;
}

/* Contact Form Mobile Adjustments */
@media screen and (max-width: 768px) {
    .contact-item {
        color: #ffffff !important;
    }
    
    .contact-item a,
    .contact-item i,
    .contact-info h2,
    .contact-info p {
        color: #ffffff !important;
    }

    .contact-form input,
    .contact-form textarea {
        color: #ffffff !important;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.skill-category h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h4 i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skills-list li {
    background: var(--skill-bg);
    color: var(--skill-text);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-list li:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    border-color: transparent;
}

/* Dark mode specific styles */
[data-theme="dark"] .skill-category {
    background: var(--dark-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-category h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .skills-list li {
    background: var(--dark-skill-bg);
    color: var(--dark-skill-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skills-list li:hover {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
}

/* Enhanced Timeline for Dark Theme */
[data-theme="dark"] .timeline-item {
    background: var(--dark-card-bg);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Enhanced Certifications for Dark Theme */
[data-theme="dark"] .cert-item {
    background: var(--dark-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cert-item h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .cert-item p {
    color: var(--text-secondary);
}

/* Enhanced Contact Section for Dark Theme */
[data-theme="dark"] .contact-content {
    background: var(--gradient-2);
}

[data-theme="dark"] .contact-info h2,
[data-theme="dark"] .contact-info p,
[data-theme="dark"] .contact-item a,
[data-theme="dark"] .contact-item i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced Navigation for Dark Theme */
[data-theme="dark"] .nav-links li a {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-links li a:hover {
    color: var(--accent-color);
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.6rem;
    }

    .skills-list li {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
}

/* Skills Animation Styles */
.skill-category {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Add stagger effect for multiple categories */
.skill-category:nth-child(1) { transition-delay: 0.1s; }
.skill-category:nth-child(2) { transition-delay: 0.2s; }
.skill-category:nth-child(3) { transition-delay: 0.3s; }
.skill-category:nth-child(4) { transition-delay: 0.4s; }
.skill-category:nth-child(5) { transition-delay: 0.5s; }
.skill-category:nth-child(6) { transition-delay: 0.6s; }

/* Skills list animation */
.skills-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.skill-category.animate .skills-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Add stagger effect for skills */
.skills-list li:nth-child(1) { transition-delay: 0.1s; }
.skills-list li:nth-child(2) { transition-delay: 0.15s; }
.skills-list li:nth-child(3) { transition-delay: 0.2s; }
.skills-list li:nth-child(4) { transition-delay: 0.25s; }
.skills-list li:nth-child(5) { transition-delay: 0.3s; }
.skills-list li:nth-child(6) { transition-delay: 0.35s; }
.skills-list li:nth-child(7) { transition-delay: 0.4s; }
.skills-list li:nth-child(8) { transition-delay: 0.45s; }
.skills-list li:nth-child(9) { transition-delay: 0.5s; }
.skills-list li:nth-child(10) { transition-delay: 0.55s; }

/* Hover effect enhancement */
.skill-category.animate:hover {
    transform: translateY(-8px);
}

.skills-list li:hover {
    animation: skillPulse 0.4s ease;
}

@keyframes skillPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Particle Background Effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--main-color);
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0.5;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
}

/* Enhanced Home Section */
.home {
    position: relative;
}

.home-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Typing Effect Cursor */
.home-content h2::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Enhanced Skill Categories Animation */
.skill-category {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}