/* Basic Resets & Global Styles */
:root {
    /* Light Theme Colors */
    --background-color-light: #f5f5f5;
    --text-color-light: #333;
    --primary-color-light: #007bff; /* Blue */
    --secondary-color-light: #6c757d; /* Gray */
    --accent-color-light: #28a745; /* Green */
    --card-background-light: #ffffff;
    --border-color-light: #e0e0e0;
    --shadow-color-light: rgba(0, 0, 0, 0.1);
    --highlight-text-color-light: #007bff; /* Blue */

    /* Dark Theme Colors */
    --background-color-dark: #1a1a1a;
    --text-color-dark: #e0e0e0;
    --primary-color-dark: #66b3ff; /* Lighter Blue */
    --secondary-color-dark: #b0b0b0; /* Lighter Gray */
    --accent-color-dark: #5cb85c; /* Lighter Green */
    --card-background-dark: #2a2a2a;
    --border-color-dark: #3a3a3a;
    --shadow-color-dark: rgba(0, 0, 0, 0.3);
    --highlight-text-color-dark: #66b3ff; /* Lighter Blue */

    /* Current Theme Variables (Default to Light) */
    --background-color: var(--background-color-light);
    --text-color: var(--text-color-light);
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --accent-color: var(--accent-color-light);
    --card-background: var(--card-background-light);
    --border-color: var(--border-color-light);
    --shadow-color: var(--shadow-color-light);
    --highlight-text-color: var(--highlight-text-color-light);
}

/* Dark Mode Overrides */
body.dark-mode {
    --background-color: var(--background-color-dark);
    --text-color: var(--text-color-dark);
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --accent-color: var(--accent-color-dark);
    --card-background: var(--card-background-dark);
    --border-color: var(--border-color-dark);
    --shadow-color: var(--shadow-color-dark);
    --highlight-text-color: var(--highlight-text-color-dark);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color);
}

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

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

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

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

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

.navbar .nav-links li a:hover::after,
.navbar .nav-links li a.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hamburger Menu (for mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.nav-links.active {
    display: flex;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: var(--background-color);
}

.hero-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-align: left;
}

.hero-content .highlight {
    color: var(--highlight-text-color);
}

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

.hero-content .description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.hero-image img {
    max-width: 400px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.rotating-text {
    font-weight: bold;
    color: var(--primary-color);
}

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

/* General Section Styling */
section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section .about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: justify;
}

.about-section .quote {
    font-style: italic;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    color: var(--secondary-color);
}

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

.skill-category {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.skill-category h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.skill-category .skill-bullet {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-right: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: left;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.project-tags span {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
}

.project-link i {
    margin-right: 5px;
}

.project-link.no-link {
    color: var(--secondary-color);
    cursor: default;
}

/* Contact Section */
.contact-section .contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info-card,
.contact-form-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact-info-card h3,
.contact-form-card h3 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info-card p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card p i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.social-links a i {
    font-size: 1.2rem;
}


/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 -2px 5px var(--shadow-color);
}

.footer .footer-social-links {
    margin-bottom: 20px;
}

.footer .footer-social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

.footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer .footer-links a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0 10px;
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 992px) {
    .navbar .nav-links {
        gap: 20px;
    }

    .hero-section .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
        text-align: center;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
    }

    .hero-content .description {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 300px;
    }

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

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

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--card-background);
        position: absolute;
        top: 70px; /* Adjust based on navbar height */
        left: 0;
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 20px 0;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .navbar .nav-links li a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }

    .navbar .hamburger {
        display: flex;
        position: absolute;
        right: 20px; /* Adjust as needed */
        top: 25px; /* Adjust as needed */
    }

    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .hero-image img {
        max-width: 250px;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 200px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }

    .social-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .footer .footer-social-links a {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}
