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

/* Color Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Colors */
body.dark-mode {
    --light-bg: #1e293b;
    --white: #0f172a;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Dark Mode Navbar */
body.dark-mode .navbar {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Cards */
body.dark-mode .project-card,
body.dark-mode .skill-category,
body.dark-mode .contact-form {
    background: #1e293b;
}

/* Dark Mode Highlights */
body.dark-mode .highlight-item {
    background: #1e293b;
}

/* Dark Mode Tags */
body.dark-mode .tag {
    background: #334155;
    color: #94a3b8;
}

/* Dark Mode Skill Bars */
body.dark-mode .skill-bar {
    background: #334155;
}

/* Dark Mode Form Inputs */
body.dark-mode input,
body.dark-mode textarea {
    background: #334155;
    color: #f1f5f9;
    border-color: #334155;
}

/* Dark Mode Placeholders */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #94a3b8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

/* Logo */
.logo h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Navigation Link Style */
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Navigation Link Hover */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Navigation Link Active */
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 1rem;
}

/* Dark Mode Toggle Hover */
.dark-mode-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hamburger Menu */
.burger {
    display: none;
    cursor: pointer;
}

/* Hamburger Menu Lines */
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

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

/* Hero Content */
.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* Profile Photo */
.profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* Profile Photo Hover */
.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Profile Photo Image */
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Hero Title */
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Highlight Text */
.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

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

/* Primary Button */
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

/* Primary Button Hover */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Secondary Button */
.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Secondary Button Hover */
.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Social Links Container */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Social Link Icons */
.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* Social Link Hover */
.social-links a:hover {
    transform: translateY(-5px);
    background: var(--gradient);
    color: var(--white);
}

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

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 20px;
}

/* Section Title Underline */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Content */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

/* About Text */
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Highlights Grid */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Highlight Item */
.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Highlight Item Hover */
.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Highlight Item Icon */
.highlight-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Highlight Item Title */
.highlight-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Highlight Item Text */
.highlight-item p {
    color: var(--text-light);
    margin: 0;
}

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

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

/* Skill Category Card */
.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Skill Category Title */
.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

/* Skill Category Icon */
.skill-category h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Skill Items Container */
.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Skill Item */
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skill Name */
.skill-name {
    color: var(--text-dark);
    font-weight: 500;
}

/* Skill Bar Background */
.skill-bar {
    height: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    overflow: hidden;
}

/* Skill Progress Fill */
.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1s ease;
}

/* Skill progress widths */
.skill-item:nth-child(1) .skill-progress {
    width: 90%;
}

.skill-item:nth-child(2) .skill-progress {
    width: 85%;
}

.skill-item:nth-child(3) .skill-progress {
    width: 75%;
}

.skill-item:nth-child(4) .skill-progress {
    width: 65%;
}

/* Projects Section */
.projects {
    background: var(--white);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* Project Card Hover */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Project Image Container */
.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

/* Project Image */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Project Image Hover */
.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Project Overlay Hover */
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project Link Button */
.project-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Project Link Hover */
.project-link:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: var(--white);
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

/* Project Title */
.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Project Description */
.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Project Tags Container */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Project Tag */
.tag {
    padding: 5px 15px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* GitHub CTA Section */
.github-cta {
    text-align: center;
    margin-top: 4rem;
}

/* GitHub CTA Text */
.github-cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* GitHub CTA Button */
.github-cta .btn {
    font-size: 1.1rem;
}

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

/* Contact Content Grid */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Contact Info Container */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Item */
.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Contact Item Icon */
.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Contact Item Title */
.contact-item h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

/* Contact Item Link/Text */
.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Contact Item Link Hover */
.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* Textarea Resize */
.form-group textarea {
    resize: vertical;
}

/* Contact Form Button */
.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
}

/* Footer Social Link */
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Footer Social Link Hover */
.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

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

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Responsive */
@media screen and (max-width: 768px) {

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 80px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Navigation Active */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    /* Show Burger Menu */
    .burger {
        display: block;
        z-index: 1001;
    }

    /* Burger Line 1 Animation */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    /* Burger Line 2 Animation */
    .burger.toggle .line2 {
        opacity: 0;
    }

    /* Burger Line 3 Animation */
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Dark Mode Toggle Mobile */
    .dark-mode-toggle {
        margin-right: 1rem;
        margin-left: 0;
    }

    /* Hero Title Mobile */
    font-size: 2rem;
}

/* Hero Subtitle Mobile */
.hero-subtitle {
    font-size: 1.2rem;
}

/* Hero Buttons Mobile */
.hero-buttons {
    flex-direction: column;
    align-items: center;
}

/* Button Mobile */
.btn {
    width: 100%;
    max-width: 300px;
}

/* Section Title Mobile */
.section-title {
    font-size: 2rem;
}

/* Skills Grid Mobile */
.skills-grid,
.projects-grid {
    grid-template-columns: 1fr;
}

/* About Highlights Mobile */
.about-highlights {
    grid-template-columns: 1fr;
}

/* Contact Content Mobile */
.contact-content {
    grid-template-columns: 1fr;
}

/* Footer Mobile */
.footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}
}

/* Mobile Small Screens */
@media screen and (max-width: 480px) {

    /* Hero Title Small Mobile */
    .hero-title {
        font-size: 1.5rem;
    }

    /* Hero Subtitle Small Mobile */
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Hero Description Small Mobile */
    .hero-description {
        font-size: 0.95rem;
    }

    /* Section Title Small Mobile */
    .section-title {
        font-size: 1.8rem;
    }

    /* Logo Small Mobile */
    .logo h2 {
        font-size: 1.5rem;
    }

    /* Section Padding Small Mobile */
    section {
        padding: 50px 0;
    }

    /* Project Image Small Mobile */
    .project-image {
        height: 200px;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}