/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

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

body {
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0a1a33;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s, color 0.5s; /* Smooth transition for dark mode */
    padding-top: 100px; /* Adjust this value based on the navbar height */
    scroll-behavior: smooth; /* Smooth scrolling */
}

body[data-theme="light"] {
    background-color: #ffffff;
    color: #000000;
}

body[data-theme="dark"] {
    background-color: #121212;
    color: #e0e0e0;
}

body[data-theme="light"] .container {
    background-color: #ffffff;
    color: #0a1a33;
}

body[data-theme="dark"] .container {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 400px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: top 0.3s; /* Smooth transition for hiding/showing */
    content: "Tehj Patel"; /* Re-add the name "Tehj Patel" */
}

.navbar h1 {
    display: block; /* Show the h1 heading "Tehj Patel" */
}

body[data-theme="light"] .navbar {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .navbar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .nav-links a {
    color: #0a1a33;
}

body[data-theme="dark"] .nav-links a {
    color: #e0e0e0;
}

.nav-links a:hover, .nav-links a.active {
    color: #0a1a33;
    background: #ffdd57;
}

body[data-theme="light"] .nav-links a:hover, body[data-theme="light"] .nav-links a.active {
    color: #ffffff;
    background: #0a1a33;
}

body[data-theme="dark"] .nav-links a:hover, body[data-theme="dark"] .nav-links a.active {
    color: #000000;
    background: #ffffff;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 221, 87, 0.2);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 200px;
    height: 200px;
}

/* Theme Toggle */
.theme-toggle {
    width: 96px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}

.toggle-thumb {
    width: 24px;
    height: 24px;
    background: #ffdd57;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: transform 0.3s ease;
}

.theme-toggle.custom .toggle-thumb {
    transform: translateX(36px);
}

.theme-toggle.light .toggle-thumb {
    transform: translateX(4px); /* Left position for light mode */
}

.theme-toggle.dark .toggle-thumb {
    transform: translateX(68px); /* Right position for dark mode */
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #0d3b66;
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}

body[data-theme="light"] footer {
    background-color: #f5f5f5;
    color: #0a1a33;
}

body[data-theme="dark"] footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

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

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social .social-icon {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 8px;
    cursor: pointer;
}

body[data-theme="light"] .footer-social .social-icon {
    color: #0a1a33;
}

body[data-theme="dark"] .footer-social .social-icon {
    color: #e0e0e0;
}

.footer-social .social-icon:hover {
    color: #ffdd57;
    transform: scale(1.2);
}

body[data-theme="light"] .footer-social .social-icon:hover {
    color: #ffdd57;
}

body[data-theme="dark"] .footer-social .social-icon:hover {
    color: #ffdd57;
}

.footer-social a {
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #ffdd57;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.back-to-top:hover {
    background-color: #1a73e8;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger menu on small screens */
    }

    .nav-links {
        display: none; /* Hide nav links initially */
        flex-direction: column;
        background-color: #0d3b66;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        gap: 0; /* Remove gap between links in mobile view */
    }

    .nav-links.show {
        display: flex; /* Show nav links when menu is clicked */
    }

    .nav-links a {
        padding: 1rem; /* Adjust padding for mobile */
        text-align: center;
        font-size: 1.2rem; /* Larger font size on mobile for better readability */
    }

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

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
    }

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

    .container {
        padding: 1rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

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

    .hero-section .hero-image img {
        width: 100%;
        height: auto;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        margin-top: 1rem;
    }
}

body[data-theme="light"] {
    background: #ffffff;
    color: #000000;
}

body[data-theme="dark"] {
    background: #000000;
    color: #ffffff;
}

body[data-theme="dark"] .main-title {
    color: #ffffff;
}

body[data-theme="dark"] .cursor {
    background-color: #ffffff;
}

body[data-theme="dark"] .cta-button:first-child {
    background-color: #ffffff;
    color: #000000;
}

body[data-theme="dark"] .cta-button.secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

body[data-theme="dark"] .cta-button:first-child:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

body[data-theme="dark"] .cta-button.secondary:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body[data-theme="dark"] .social-icon {
    color: #ffffff;
}

body[data-theme="dark"] .social-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

body[data-theme="light"] .main-title {
    color: #000000;
}

body[data-theme="light"] .cursor {
    background-color: #000000;
}

body[data-theme="light"] .cta-button:first-child {
    background-color: #000000;
    color: #ffffff;
}

body[data-theme="light"] .cta-button.secondary {
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

body[data-theme="light"] .cta-button:first-child:hover {
    background-color: transparent;
    color: #000000;
    border-color: #000000;
}

body[data-theme="light"] .cta-button.secondary:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

body[data-theme="light"] .social-icon {
    color: #000000;
}

body[data-theme="light"] .social-icon:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] p,
body[data-theme="dark"] a,
body[data-theme="dark"] span,
body[data-theme="dark"] div,
body[data-theme="dark"] .main-title,
body[data-theme="dark"] .cta-button,
body[data-theme="dark"] .navbar,
body[data-theme="dark"] .footer-content,
body[data-theme="dark"] .footer-social .social-icon {
    color: #ffffff;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6,
body[data-theme="light"] p,
body[data-theme="light"] a,
body[data-theme="light"] span,
body[data-theme="light"] div,
body[data-theme="light"] .main-title,
body[data-theme="light"] .cta-button,
body[data-theme="light"] .navbar,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .footer-social .social-icon {
    color: #000000;
}

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

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

.hamburger-menu {
    display: none;
}
