/* custom */

html {
    scroll-behavior: smooth;
}

hr.rounded {
    border-top: 3px solid #bbb;
    max-width: 20%;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#intro {
    max-width: 70%;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    height: 60vh;
    justify-content: center;
}

#intro-card {
    text-align: left;
}


#about-me {
   padding: 100px;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   height: 100vh; 
   font-size: 125%;
}

h1 {
    font-size: 300%; /* Adjust the size as needed */
    font-weight: bold; /* Optional: Make the text bold */
    line-height: 1.2; /* Optional: Adjust the line height */
}

#citySF {
    font-size: 500%;
    display: block;
    text-align: center;
    padding: 50px;
}

#about-arrow {
    padding: 2vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* styles.css */

/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Theme Variables */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --nav-background: #f8f8f8;
    --card-background: #f0f0f0;
    --button-background: #333333;
    --button-color: #ffffff;
    --splash-background: #ffffff;
    --splash-text-color: #333333;
    --btn-hover-bg: #555555;
    --btn-hover-color: #ffffff;
    --btn-border-radius: 5px;
    --console-font: 'Courier Prime', monospace;
    --navbar-height: 60px; /* Define navbar height for consistent spacing */
    --section-padding: 60px 20px;
    --footer-height: 60px;
    --icon-size: 1.2rem;
    --transition-duration: 0.3s;
    --overlay-bg-color: #f8f8f8; /* Default background */
    --overlay-menu-width: 100%; /* Full width for overlay */
    --overlay-transition: all 0.5s ease;
}

/* Dark Theme Variables */
body.dark-mode {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --nav-background: #1f1f1f;
    --card-background: #1e1e1e;
    --button-background: #e0e0e0;
    --button-color: #121212;
    --splash-background: #1f1f1f;
    --splash-text-color: #e0e0e0;
    --btn-hover-bg: #999999;
    --btn-hover-color: #121212;
    --overlay-bg-color: #1f1f1f; /* Darker overlay in dark mode */
    background-image: linear-gradient(#1f1f1f 30%, #121212 50%);
}

/* Global Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth; /* Enable smooth scrolling for all anchor links */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
}

/* Navigation Bar */
.navbar {
    position: fixed; /* Fix the navbar at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-background);
    padding: 0 20px;
    z-index: 1000; /* Ensure navbar is above other elements */
}

/* Left Side of Navbar */
.nav-left {
    display: flex;
    align-items: center;
}

/* Clickable "Winston" Link */
.name-link {
    text-decoration: none; /* Remove underline from the link */
    color: var(--text-color); /* Inherit text color */
}

.name {
    margin-right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Social Icons */
.icon-link {
    color: var(--text-color);
    margin-right: 10px;
    font-size: 1.2rem;
    transition: color var(--transition-duration);
}

.icon-link:hover {
    color: #0077b5; /* Example hover color for LinkedIn */
}

/* Right Side of Navbar (Hamburger and Theme Toggle) */
.nav-right {
    display: flex;
    align-items: center;
}

/* Hamburger Icon */
.hamburger {
    cursor: pointer;
    margin-right: 20px;
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color var(--transition-duration);
}

.hamburger i:hover {
    color: #0077b5; /* Example hover color */
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--overlay-menu-width);
    height: 100%;
    background-color: var(--overlay-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%); /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 999; /* Below navbar */
}


/* Show Overlay Menu when Active */
.overlay-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 2rem;
}

.close-btn:hover {
    color: #ff6584; /* Example hover color for close button */
}

/* Overlay Menu Items */
.overlay-menu-items {
    list-style: none;
    text-align: center;
}

.overlay-menu-items li {
    margin: 20px 0;
}

.overlay-menu-items li a {
    text-decoration: none;
    font-size: 2rem;
    transition: color var(--transition-duration);
    color: var(--overlay-text-color);
}

.overlay-menu-items li a:hover {
    color: #ff6584; /* Example hover color */
}

/* Theme Toggle Button */
.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color var(--transition-duration);
    margin-left: 15px;
}

.toggle-button:hover {
    color: #0077b5;
}

/* Splash Screen Styles */
.splash {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--splash-background);
    color: var(--splash-text-color);
    flex-direction: column;
    text-align: center;
    position: relative;
    padding-top: var(--navbar-height); /* Prevent content from being hidden behind navbar */
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--text-color);
}

.splash-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#subtitle {
    font-size: .7rem;
    margin-bottom: 20px;
    font-family: 'Inconsolata', sans-serif;
    font-weight: 100; /* Use 100, 200, or 300 for thinner text */
}

.scroll-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--text-color);
}

/* Bounce Animation for Scroll Icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Main Content Styles */
.main-content {
    flex: 1; /* Allows main content to grow and fill available space */
    padding-top: var(--navbar-height); /* Ensure content is not hidden behind navbar */
    padding-bottom: var(--footer-height); /* Ensure space for footer */
}

/* About Me Page Styles */
.about-page-content {
    padding-top: var(--navbar-height);
    padding-bottom: var(--footer-height);
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    height: 100vh; /* Each section takes full viewport height */
    padding: 20px;
}

.about-drawing {
    width: 200px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 20px;
}

.about-text {
    max-width: 600px; /* Limit text width for better readability */
    padding: 20px;
    font-size: 125%;
}

.about-text h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-before-section {
    margin-right: 10px;
    font-size: var(--icon-size);
    color: #0077b5; /* Example color for icons */
}

/* Portfolio Section */
.section {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

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

.card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 15px;
}

/* Buttons in Portfolio Cards */
.buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    padding: 8px 12px;
    background-color: var(--button-background);
    color: var(--button-color);
    text-decoration: none;
    border: none;
    border-radius: var(--btn-border-radius);
    font-family: var(--console-font);
    font-size: 0.9rem;
    transition: background-color var(--transition-duration), color var(--transition-duration);
    cursor: pointer;
    display: inline-block;
}

.code-btn {
    background-color: #6c63ff; /* Example color for Code button */
}

.site-btn {
    background-color: #ff6584; /* Example color for Site button */
}

.btn:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

/* Technology Icons */
.icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: #555555;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
}

.skill i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #0077b5;
}

/* Certifications Section */
.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
}

.cert-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cert-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cert-details p {
    font-size: 0.9rem;
    color: #555555;
}

/* Articles Section */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.article {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color var(--transition-duration), border-color var(--transition-duration);
}

.article:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.article-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.article-link {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.article-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nav-background);
    color: var(--text-color);
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust Certification Width */
    .certification {
        width: 100%;
    }

    /* Stack Sections Vertically */
    .cards-container, .skills-container, .certifications-container, .articles-container {
        flex-direction: column;
        align-items: center;
    }

    /* Adjusted Profile Picture */
    .profile-pic {
        width: 120px;
        height: 120px;
    }

    /* Adjusted Text Sizes */
    .splash-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .scroll-icon {
        font-size: 1.5rem;
    }

    /* About Section Adjustments */
    .about-section {
        flex-direction: column;
        height: 100vh; /* Ensure each section takes full height */
    }

    .about-drawing, .about-text {
        width: 100%;
    }
}
