/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #536dfe;
    --dark-bg: #121212;
    --darker-bg: #1e1e1e;
    --surface-bg: #272727;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8c8c8c;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --large-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    
    /* Light mode colors */
    --light-bg: #f8f9fa;
    --lighter-bg: #ffffff;
    --light-surface-bg: #eef1f5;
    --light-text-primary: #212121;
    --light-text-secondary: #555555;
    --light-text-tertiary: #757575;
    --light-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --light-large-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --light-border: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

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

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

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

.highlight {
    color: var(--primary-color);
}

/* Navigation */
#navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

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

#logo a {
    color: var(--text-primary);
    font-size: 1.7rem;
    font-weight: 700;
}

#navbar ul {
    display: flex;
    list-style: none;
}

#navbar ul li {
    margin: 0 15px;
}

#navbar ul li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#navbar ul li a:hover,
#navbar ul li a.current {
    color: var(--primary-color);
}

.theme-switch {
    cursor: pointer;
    margin-left: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
}

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

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

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

/* About Section */
.about {
    background-color: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

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

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-details {
    margin: 30px 0;
}

.detail-item {
    margin-bottom: 10px;
    display: flex;
}

.detail-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-info {
    color: var(--text-secondary);
}

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

.timeline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--surface-bg);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-content {
    background-color: var(--surface-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    width: calc(50% - 30px);
    position: relative;
}

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

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content:before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content:before {
    right: -40px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

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

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 15px;
    font-style: italic;
}

.responsibilities {
    padding-left: 20px;
}

.responsibilities li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    background-color: var(--darker-bg);
}

.skills-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.skill-category {
    flex: 1;
    min-width: 300px;
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: var(--surface-bg);
    border-radius: 10px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
}

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

.skill-tag {
    background-color: var(--surface-bg);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Education Section */
.education-item {
    background-color: var(--surface-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.education-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

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

.education-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 15px;
    font-style: italic;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    background-color: var(--surface-bg);
    color: var(--text-secondary);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.project-item {
    border-radius: var(--border-radius);
    background-color: var(--surface-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    padding: 25px;
}

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

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(108, 99, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.project-links {
    margin-bottom: 15px;
}

.project-links a {
    font-size: 0.9rem;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-info {
    padding: 25px;
}

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

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tags span {
    background-color: var(--darker-bg);
    color: var(--text-tertiary);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background-color: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--surface-bg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

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

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

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

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

footer p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
}

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

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: 80%;
    }
}

@media (max-width: 768px) {
    #navbar ul {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item .timeline-content:before {
        left: -30px !important;
        right: auto !important;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Light Mode Styles */
body.light-mode {
    color: var(--light-text-primary);
    background-color: var(--light-bg);
}

body.light-mode #navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode #logo a,
body.light-mode #navbar ul li a {
    color: var(--light-text-primary);
}

body.light-mode #navbar ul li a:hover,
body.light-mode #navbar ul li a.current {
    color: var(--primary-color);
}

body.light-mode .theme-switch {
    color: var(--light-text-primary);
}

body.light-mode .bar {
    background-color: var(--light-text-primary);
}

body.light-mode .hero {
    background-image: linear-gradient(to right, rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.85)), url('../img/hero-bg.jpg');
}

body.light-mode .hero-content h2,
body.light-mode .hero-content p {
    color: var(--light-text-secondary);
}

body.light-mode .social-icons a {
    background-color: var(--light-surface-bg);
    color: var(--light-text-primary);
    box-shadow: var(--light-shadow);
}

body.light-mode .about {
    background-color: var(--lighter-bg);
}

body.light-mode .about-text p {
    color: var(--light-text-secondary);
}

body.light-mode .detail-label {
    color: var(--light-text-primary);
}

body.light-mode .detail-info {
    color: var(--light-text-secondary);
}

body.light-mode .timeline:before {
    background-color: var(--light-border);
}

body.light-mode .timeline-content {
    background-color: var(--light-surface-bg);
    box-shadow: var(--light-shadow);
    border: 1px solid var(--light-border);
}

body.light-mode .timeline-date {
    color: var(--light-text-tertiary);
}

body.light-mode .responsibilities li {
    color: var(--light-text-secondary);
}

body.light-mode .skills {
    background-color: var(--lighter-bg);
}

body.light-mode .skill-bar {
    background-color: var(--light-surface-bg);
    border: 1px solid var(--light-border);
}

body.light-mode .skill-tag {
    background-color: var(--light-surface-bg);
    color: var(--light-text-secondary);
    border: 1px solid var(--light-border);
}

body.light-mode .education-item {
    background-color: var(--light-surface-bg);
    box-shadow: var(--light-shadow);
    border: 1px solid var(--light-border);
}

body.light-mode .education-date {
    color: var(--light-text-tertiary);
}

body.light-mode .filter-btn {
    background-color: var(--light-surface-bg);
    color: var(--light-text-secondary);
    border: 1px solid var(--light-border);
}

body.light-mode .project-item {
    background-color: var(--light-surface-bg);
    box-shadow: var(--light-shadow);
    border: 1px solid var(--light-border);
}

body.light-mode .project-info p {
    color: var(--light-text-secondary);
}

body.light-mode .project-tags span {
    background-color: var(--light-bg);
    color: var(--light-text-tertiary);
    border: 1px solid var(--light-border);
}

body.light-mode footer {
    background-color: var(--light-surface-bg);
    border-top: 1px solid var(--light-border);
}

body.light-mode footer p,
body.light-mode .footer-links a {
    color: var(--light-text-secondary);
}

/* Additional styling refinements for light mode */
body.light-mode .project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--light-large-shadow);
}

body.light-mode .education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--light-large-shadow);
}

body.light-mode #navbar ul.active {
    background-color: var(--lighter-bg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Section headers in light mode */
body.light-mode .section-header h2 {
    color: var(--light-text-primary);
}
