/* Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f97316;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --highlight-color: #3b82f6;
    --dark-bg-color: #0f172a;
    --dark-text-color: #e2e8f0;
    --card-bg-color: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

body.dark-mode {
    --background-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg-color: #1e293b;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

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

section {
    padding: 100px 0;
}

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

.dark-mode #navbar {
    background-color: rgba(15, 23, 42, 0.95);
}

#navbar.scrolled {
    padding: 10px 0;
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.profile-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 4rem;
    font-weight: 700;
}

.name {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.tagline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

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

.scroll-indicator {
    animation: fadeInUp 1s ease 0.8s both;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: 10px auto;
    animation: arrowBounce 1.5s infinite;
}

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

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

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

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

.contact-info {
    flex: 1;
    min-width: 300px;
}

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

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

/* Experience Section */
.experience-section {
    background-color: var(--card-bg-color);
}

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

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

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

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

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

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

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    margin-bottom: 15px;
}

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

.company {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.date {
    font-size: 0.9rem;
    color: #64748b;
}

.timeline-body ul {
    padding-left: 20px;
    list-style-type: disc;
}

.timeline-body li {
    margin-bottom: 8px;
}

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

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

.skill-category {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

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

.skill-details {
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.skill-category:hover .skill-details {
    height: auto;
    opacity: 1;
    margin-top: 15px;
}

/* Education Section */
.education-section {
    background-color: var(--card-bg-color);
}

.education-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.education-card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.education-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.education-card:hover .education-card-inner,
.education-card.flipped .education-card-inner {
    transform: rotateY(180deg);
}

.education-card-front, .education-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.8s;
}

.education-card-front {
    background-color: var(--card-bg-color);
}

.education-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.education-card-back h3,
.education-card-back p {
    width: 100%;
    margin: 5px 0;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}
  
/* Footer */
.footer {
    background-color: var(--card-bg-color);
    padding: 30px 0;
    text-align: center;
}

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

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

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

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .about-content, 
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}
