/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    font-family: playfair display, serif;
}

.nav-logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 50px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

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

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
    border: #fbbf24 3px solid;
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.profile-img2 {
    opacity: 0;
}

.profile-placeholder:hover{
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.profile-placeholder:hover .profile-img2 {
    opacity: 1;
}

.profile-placeholder:hover .profile-img1 {
    opacity: 0;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.skill-item:hover {
    background: #e2e8f0;
}

.skill-item i {
    font-size: 1.5rem;
    color: #2563eb;
}

.skill-item span {
    font-weight: 500;
    color: #374151;
}

/* Projects Section */
.projects {
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.project-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

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

.contact-item i {
    color: #2563eb;
    font-size: 1.25rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        padding: 0.75rem 0;
    }
    
    .nav-item-theme {
        margin-top: 0.5rem;
        padding-top: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-img {
        height: 200px;
        width: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .skill-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-size: 1.1rem;
}

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

/* Theme toggle in mobile menu */
.nav-item-theme {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    list-style: none;
}

.theme-toggle-mobile {
    margin-left: 0;
    border: 2px solid #333;
}

.theme-toggle-mobile:hover {
    background: #f8fafc;
    transform: scale(1.1);
}

/* Hide desktop theme toggle on mobile, show mobile toggle */
@media (max-width: 768px) {
    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-mobile {
        display: flex;
    }
}

/* Hide mobile theme toggle on desktop, show desktop toggle */
@media (min-width: 769px) {
    .theme-toggle-mobile {
        display: none;
    }
    
    .theme-toggle-desktop {
        display: flex;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-color: #0f0e1a;
    --text-color: #e8e6f3;
    --text-secondary: #b8b5d1;
    --card-bg: #1a1829;
    --card-hover: #252238;
    --border-color: #3a3552;
    --shadow: rgba(102, 126, 234, 0.15);
    --accent-purple: #8b7fd9;
    --accent-yellow: #fbbf24;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .navbar {
    background: #1a1829;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

[data-theme="dark"] .nav-logo a:hover {
    color: #a594f0;
}

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

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

[data-theme="dark"] .nav-link::after {
    background-color: var(--accent-purple);
}

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

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

[data-theme="dark"] .theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

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

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

[data-theme="dark"] .section-title::after {
    background: linear-gradient(135deg, #8b7fd9 0%, #a594f0 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #2d2440 0%, #1a1626 100%);
}

[data-theme="dark"] .hero-subtitle {
    color: #d1c9f5;
}

[data-theme="dark"] .hero-description {
    color: #b8b5d1;
}

[data-theme="dark"] .btn-primary {
    background: var(--accent-yellow);
    color: #0f0e1a;
}

[data-theme="dark"] .btn-primary:hover {
    background: #f59e0b;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--accent-purple);
    color: var(--bg-color);
}

[data-theme="dark"] .profile-placeholder {
    background: rgba(139, 127, 217, 0.1);
    border: #fbbf24 3px solid;
}

[data-theme="dark"] .profile-placeholder:hover {
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .profile-img {
    border-color: var(--accent-yellow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .profile-img:hover {
    background: #f59e0b;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .about {
    background: #151320;
}

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

[data-theme="dark"] .stat {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .stat:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 6px 20px rgba(139, 127, 217, 0.25);
}

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

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

[data-theme="dark"] .skill-category {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .skill-category:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 6px 20px rgba(139, 127, 217, 0.25);
}

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

[data-theme="dark"] .skill-item {
    background: #151320;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .skill-item:hover {
    background: var(--card-hover);
    border-color: var(--accent-purple);
}

[data-theme="dark"] .skill-item i {
    color: var(--accent-purple);
}

[data-theme="dark"] .skill-item span {
    color: var(--text-color);
}

[data-theme="dark"] .projects {
    background: #151320;
}

[data-theme="dark"] .project-card {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .project-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(139, 127, 217, 0.25);
}

[data-theme="dark"] .project-image {
    background: linear-gradient(135deg, #3d2f5f 0%, #2d2440 100%);
}

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

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

[data-theme="dark"] .project-tech span {
    background: #151320;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .project-link {
    color: var(--accent-purple);
}

[data-theme="dark"] .project-link:hover {
    color: #a594f0;
}

[data-theme="dark"] .contact-info h3 {
    color: var(--text-color);
}

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

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

[data-theme="dark"] .contact-item i {
    color: var(--accent-purple);
}

[data-theme="dark"] .social-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
}

[data-theme="dark"] .social-link:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(139, 127, 217, 0.4);
}

[data-theme="dark"] .contact-form {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #151320;
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 127, 217, 0.1);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer {
    background: #0a0914;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .scroll-progress {
    background: linear-gradient(135deg, #8b7fd9 0%, #a594f0 100%);
}

[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #8b7fd9 0%, #a594f0 100%);
    box-shadow: 0 4px 15px rgba(139, 127, 217, 0.4);
}

[data-theme="dark"] .back-to-top:hover {
    box-shadow: 0 6px 20px rgba(139, 127, 217, 0.6);
}

@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
    }
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle-mobile {
        margin-left: 0;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}