/* Theme Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --gradient: linear-gradient(to right, #3498db, #2ecc71);
    --text-color: #333;
    --text-color-light: #666;
    --heading-color: #2d3e50;
    --bg-color: #f8f9fa;
    --bg-color-secondary: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    --footer-bg: #2d3e50;
    --footer-text: rgba(255, 255, 255, 0.7);
    --border-color: #ddd;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --secondary-color: #4ecca3;
    --gradient: linear-gradient(to right, #64b5f6, #4ecca3);
    --text-color: #e0e0e0;
    --text-color-light: #b0b0b0;
    --heading-color: #f0f0f0;
    --bg-color: #121212;
    --bg-color-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    --footer-bg: #0a0a0a;
    --footer-text: rgba(255, 255, 255, 0.7);
    --border-color: #333;
    --nav-bg: rgba(30, 30, 30, 0.95);
    --hero-bg: linear-gradient(135deg, #121212 0%, #1a2a2d 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

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

section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
}

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

.secondary-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

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

header.scrolled {
    padding: 10px 0;
    background-color: var(--bg-color-secondary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-color);
    border-radius: 30px;
    padding: 0 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    color: #f39c12;
}

.theme-toggle .fa-moon {
    color: #34495e;
}

.toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .toggle-ball {
    left: 33px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: var(--hero-bg);
}

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

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
}

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

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

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    border: 5px solid var(--bg-color-secondary);
    position: relative;
    transition: all 0.3s ease;
    background: var(--gradient);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(46, 204, 113, 0.2) 100%);
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.profile-image:hover::before {
    opacity: 0.3;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
    filter: contrast(1.08) brightness(1.05) saturate(1.15) grayscale(0.05);
    mix-blend-mode: normal;
}

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

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

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

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-color-light);
}

.about-highlights {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.highlight-item {
    flex: 1;
    min-width: 150px;
    background-color: var(--bg-color);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.highlight-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.highlight-item p {
    color: var(--text-color-light);
}

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

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item span {
    font-weight: 500;
    color: var(--text-color);
}

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

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    width: 0; /* Start at 0 width for animation */
    transition: width 1.5s ease-in-out;
}

.soft-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--heading-color);
    text-align: center;
}

.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.soft-skill {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.soft-skill:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.soft-skill i {
    font-size: 2rem;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.soft-skill span {
    font-weight: 500;
    color: var(--text-color);
}

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

.education-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 25px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

.education-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.education-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.education-details h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.education-details p {
    color: var(--text-color-light);
    margin-bottom: 5px;
}

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

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

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

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

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

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

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

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

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

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

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

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-highlights {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .education-icon {
        margin-bottom: 15px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .highlight-item {
        min-width: 100%;
    }
    
    .soft-skill {
        min-width: 120px;
    }
}