/* Universal Theme Color Variables */
:root {
    --primary-color: #5dade2; /* Lighter blue for dark background */
    --background-color: #2c3e50; /* Dark blue-gray */
    --text-color: #ecf0f1; /* Light gray text */
    --card-background-color: #34495e; /* Lighter blue-gray for cards */
    --card-border-color: #4a5a5a;
    --link-color: #5dade2; /* Lighter blue for dark background */
    --hero-background-color: #1a2525; /* Even darker */
    --hero-text-color: #ffffff;
}

/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light weight */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header/Hero Section */
.hero {
    background-color: var(--hero-background-color);
    /* background-image: url('https://via.placeholder.com/1500x800/333/f4f4f4?text=Your+Awesome+Background'); */ /* Removed placeholder image */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed to center */
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 0; /* Removed padding */
    padding-bottom: 000px; /* Increased padding */
    box-sizing: border-box;
    gap: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Subtle overlay */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap; /* For responsive design */
    /* Removed negative margin-top */
    width: 100%;
}

.hero-image {
    flex-shrink: 0; /* Prevent image from shrinking */
}

.hero-image img {
    width: 200px; /* Adjust size as needed */
    height: 200px;
    border-radius: 50%; /* Make it circular */
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.hero-text {
    text-align: center; /* Align text to the center */
}

.hero-footer {
    padding: 0px 20px 200px 20px;
    max-width: 800px; /* To keep the text readable */
    margin: 0 auto; /* Center the footer horizontally */
    text-align: center;
    display: flex; /* Add flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 0px; /* Add a small gap between items */
}

.hero-footer p {
    margin-bottom: 0px; /* Further increased space */
}

.hero h1 {
    font-size: 4.5em; /* Made bigger */
    font-weight: 100; /* Made thinner */
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.8em; /* Made bigger */
    font-weight: 300; /* Made thinner */
    margin-bottom: 70px;
}

.btn {
    display: inline-block;
    color: #fff;
    background: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 1.1em; /* Made bigger */
    font-weight: 300; /* Made thinner */
}

#experience {
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

.scroll-down-text {
    color: #fff; /* Inherit color from hero section */
    text-decoration: none; /* Remove underline */
    font-size: 1.2em; /* Adjust font size */
    margin-bottom: 10px; /* Space between text and arrow */
    display: block; /* Make it a block element for margin */
}

.scroll-down-text:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Sections */
.section {
    padding: 60px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 300; /* Reduced thickness */
}

.subsection-title {
    font-size: 1.8em; /* Made bigger */
    font-weight: 300; /* Made thinner */
    margin-top: 40px; /* Add some space above */
    margin-bottom: 20px; /* Add some space below */
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero #about {
    padding: 40px 0; /* Adjust padding */
    background-color: rgba(0, 0, 0, 0.2); /* Add a subtle background to distinguish it */
    width: 100%; /* Make it full width */
}

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

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

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em; /* Made bigger */
    font-weight: 300; /* Made thinner */
}

.skill-item ul {
    list-style: none;
    padding: 0;
}

.skill-item ul li {
    margin-bottom: 8px;
}

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

.games-project-grid {
    margin-bottom: 60px;
}

.project-item {
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em; /* Made bigger */
    font-weight: 300; /* Made thinner */
}

.project-item p {
    font-size: 1em;
    margin-bottom: 15px;
}

.project-item .tools-list {
    margin-bottom: 25px;
    padding-left: 0;
    margin-left: 0;
}

.project-item a {
    color: var(--link-color);
    text-decoration: none;
    margin-right: 15px;
}

.project-item a:hover {
    text-decoration: underline;
}

.project-item .project-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--primary-color); /* Added frame */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 300; /* Made thinner, overriding bold */
    font-size: 1.05em; /* Made bigger */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.project-links a i {
    margin-right: 8px;
}

.app-store-link i { color: #000; }
.google-play-link i { color: #2196F3; }
.github-link i { color: var(--text-color); }
.mozilla-addons-link i { color: #FF5733; }
.external-link i { color: var(--primary-color); }

.app-store-link, .google-play-link, .github-link, .mozilla-addons-link, .external-link {
    color: var(--text-color); /* Changed text color */
    background-color: transparent; /* Removed background color */
}

.app-store-link:hover, .google-play-link:hover, .github-link:hover, .mozilla-addons-link:hover, .external-link:hover {
    background-color: transparent; /* Ensure hover also transparent */
    opacity: 0.7; /* Add a subtle hover effect */
}

.projects-coming-soon {
    margin-top: 0;
}

/* Contact Section */
.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Adjust gap for vertical list */
}

.contact-info p {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

.contact-info p a {
    margin: 0;
    padding: 0;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 300; /* Thinner font */
    font-size: 1.05em; /* Consistent with project links */
    color: var(--text-color); /* Use text color for consistency */
    transition: background-color 0.3s ease, opacity 0.3s;
    margin: 0 10px; /* Add horizontal margin */
}

.contact-info a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
    opacity: 0.9;
}

.contact-info a i {
    margin-right: 12px;
}

.contact-info p .fa-envelope { color: var(--primary-color); }
.contact-info p .fa-linkedin { color: #0A66C2; }
.contact-info p .fa-github { color: var(--text-color); }
.contact-info p .fa-file-pdf { color: #DC3545; }

/* Footer */
footer {
    background: var(--hero-background-color);
    color: var(--hero-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 30px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* High z-index to be on top */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--primary-color); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    width: 50px;   /* Explicit width */
    height: 50px;  /* Explicit height, equal to width */
    border-radius: 50%; /* Circular shape */
    font-size: 22px; /* Adjusted font size for better fit */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: background-color 0.3s, opacity 0.3s; /* Smooth transition */
    opacity: 0.8;
}

.scroll-to-top-btn:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .section h2 {
        font-size: 2em;
    }

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

/* Hero Scroll Target */
.hero-scroll-target {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height as needed for the touch target area */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1; /* Ensure it's above other content if needed */
}

.hero-scroll-target i {
    color: #fff;
    font-size: 2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}
