/* Base Styles */
:root {
    --primary-color: #0176d3; /* Salesforce blue */
    --secondary-color: #1abebe; /* Salesforce secondary color */
    --dark-color: #032d60;
    --light-color: #f3f3f3;
    --gray-color: #706e6b;
    --white: #ffffff;
    --success-color: #04844b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.section {
    padding: 80px 0;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

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

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

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(3, 45, 96, 0.9), rgba(3, 45, 96, 0.9)), url('https://via.placeholder.com/1200x600') no-repeat center center/cover;
    height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.about-image img {
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    max-width: 300px;
    height: auto;
}

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

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cert-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

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

.skill-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-list {
    list-style-position: inside;
}

.skill-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.skill-list li:last-child {
    border-bottom: none;
}

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

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-description {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Blogs Section */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-details {
    padding: 20px;
}

.blog-details h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.blog-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-excerpt {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

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

.timeline-item {
    display: flex;
    margin-bottom: 50px;
}

.timeline-date {
    flex: 0 0 20%;
    text-align: right;
    padding-right: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    position: relative;
}

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

.timeline-content {
    flex: 0 0 80%;
    padding: 0 25px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.experience-details {
    list-style-position: inside;
}

.experience-details li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 30px;
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

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

.contact-method i {
    margin-right: 15px;
    font-size: 1.2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

.success-message {
    text-align: center;
    padding: 20px;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

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

.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
}

/* Dark Mode Styles */
.dark-mode {
    --dark-color: #f3f3f3;
    --light-color: #1a1a1a;
    --white: #2a2a2a;
    --gray-color: #b3b3b3;
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background-color: #1e1e1e;
}

.dark-mode .nav-links a {
    color: #e0e0e0;
}

.dark-mode .section-title {
    color: var(--dark-color);
}

.dark-mode .project-card,
.dark-mode .skill-category,
.dark-mode .blog-card,
.dark-mode .timeline-content,
.dark-mode .contact-form {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .project-tech span {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.dark-mode .footer {
    background-color: #1a1a1a;
}

.dark-mode .timeline-date::after {
    background-color: #2a2a2a;
}

.dark-mode .theme-toggle .fa-moon {
    opacity: 0;
}

.dark-mode .theme-toggle .fa-sun {
    opacity: 1;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #555;
}

.dark-mode .form-group label {
    color: #e0e0e0;
}

/* Keep hero and footer section in light mode always */
.dark-mode .hero,
.dark-mode .footer {
    background: linear-gradient(rgba(3, 45, 96, 0.9), rgba(3, 45, 96, 0.9)), 
                url('https://via.placeholder.com/1200x600') no-repeat center center/cover !important;
    color: #ffffff !important;
}

.dark-mode .hero h1,
.dark-mode .hero p,
.dark-mode .hero .btn {
    color: inherit !important;
}

.dark-mode .hero .btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.dark-mode .hero .btn-primary:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.dark-mode .hero .btn-secondary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.dark-mode .hero .btn-secondary:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::after {
        left: 45px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        flex: 0 0 100%;
        text-align: left;
        padding-left: 70px;
        margin-bottom: 10px;
    }
    
    .timeline-date::after {
        left: 31px;
        right: auto;
    }
    
    .timeline-content {
        flex: 0 0 100%;
        padding-left: 70px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

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

.certification-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certification-category:hover {
    transform: translateY(-5px);
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
}

.certification-list {
    list-style: none;
}

.certification-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: var(--dark-color);
}

.certification-list li:last-child {
    border-bottom: none;
}

/* Dark Mode Adjustments */
.dark-mode .certification-category {
    background-color: #2a2a2a;
}

.dark-mode .certification-list li {
    color: #e0e0e0;
    border-bottom-color: #444;
}

.dark-mode .category-title {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}