/* styles.css */
:root {
    --primary-color: #39393cd1;
    /* Darker navy blue */
    --secondary-color: #0066ff;
    /* Vibrant blue */
    --accent-color: #ff3366;
    /* Vibrant pink */
    --text-color: #f4F2F2;
    /* White text for contrast */
    --dark-bg: #16213e;
    /* Dark blue background */
    --darker-bg: #0f172a;
    /* Even darker background */
    --highlight: #bab01a;
    /* Deep purple highlight */
    --success: #00ff9d;
    /* Bright mint */
    --warning: #ff4d00b2;
    /* Bright yellow */
}

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

/* Body Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--darker-bg);
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1.5px 12px rgba(0, 102, 255, 0.2);
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* Changed to space-between for mobile layout */
    flex-wrap: wrap;
    /* Allow wrapping for mobile layout */
}

.nav-brand {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgb(0, 100, 92);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    /* Hidden by default, shown on mobile */
    cursor: pointer;
}

#menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

#menu-toggle:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    /* Reduced gap for better responsiveness */
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
    border: 1px solid var(--text-color);
    transform: translateY(-2px);
}

/* Container and General Styles */
.container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically for home */
}

/* Ensure main content doesn't overflow on home if possible */
body {
    overflow-x: hidden;
}

/* Home page */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.hero-content {
    max-width: 800px;
    margin: 10px auto;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: olivedrab;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 2em;
    /* Prevent layout shift */
}

/* Typing Effect Cursor */
.typing-text::after {
    content: '|';
    color: var(--secondary-color);
    animation: blink 0.7s infinite;
}

.typing-text {
    color: var(--secondary-color);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.highlight {
    color: var(--success);
}

.emphasis {
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out;
}

/* Existing Button Styles */
.cta-buttons a {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.cta-buttons a:hover {
    background-color: olivedrab;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 0, 9, 0.851);
}


/* Footer Styles */
.footer-content {
    color: var(--success);
    max-width: 800px;
    margin: 0 auto;
    /* Fixed margin issue */
    position: relative;
    z-index: 1;
    background-color: var(--dark-bg);
    text-align: center;
    padding: 1.5rem 10px;
    gap: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 0.5rem;
}

.contact-info a {
    color: var(--success);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: yellow;
}

.divider {
    display: inline-block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 10px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
}

.social-icon {
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.4);
}

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

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

/* Media Queries for Responsiveness */

/* Tablets (768px and up) */
@media screen and (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 1.5rem;
    }
}

/* Mobile Phones (767px and below) */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block;
        /* Show hamburger on mobile */
    }

    .nav-links {
        display: none;
        /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        margin: 1rem 0 0 0;
        padding: 0;
        gap: 0;
    }

    .nav-links.show {
        display: flex;
        /* Show when toggled */
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid var(--secondary-color);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .cta-buttons a {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    /* Footer mobile styling */
    .footer-content {
        padding: 1rem 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .divider {
        display: none;
        /* Hide divider on mobile */
    }

    .social-links {
        gap: 1.5rem;
    }

    .copyright {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

/* Small mobile devices (375px and below) */
@media screen and (max-width: 375px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .cta-buttons a {
        padding: 0.6rem 1rem;
    }

    .social-links {
        gap: 1rem;
    }
}

/* Handle landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        margin-top: 1rem;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .container {
        min-height: auto;
    }
}

/* About page styles */
.profile-section {
    text-align: center;
    margin: 4rem 0;
    padding: 0 1rem;
}

.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
    margin-bottom: 1.5rem;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.4);
}

.section-titlea {
    color: olivedrab;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-descriptiona {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(244, 242, 242, 0.9);
    line-height: 1.8;
}

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

.skill-carda {
    background-color: rgba(57, 57, 60, 0.5);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.skill-carda.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-carda.pre-animation {
    opacity: 0;
}

.skill-carda:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.skill-titlea {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    padding-bottom: 5px;
    /* Space for the underline */
    overflow: hidden;
}


.skill-titlea i {
    color: var(--success);
    font-size: 1.3rem;
}

.skill-lista {
    list-style-position: inside;
    color: rgba(244, 242, 242, 0.9);
    padding-left: 0.5rem;
}

.skill-lista li {
    margin-bottom: 0.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-left: 0.5rem;
}

.skill-lista li:hover {
    color: olivedrab;
    transform: translateX(5px);
}

.skill-content p {
    color: rgba(244, 242, 242, 0.9);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Scroll Animation */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.content-section:nth-child(odd) {
    animation-delay: 0.2s;
}

.content-section:nth-child(even) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Back to Top Button */
.top-btna-container {
    text-align: center;
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-btna-container.show {
    opacity: 1;
}

.top-btna {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(57, 57, 60, 0.7);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-btna:hover {
    background-color: olivedrab;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.top-btna i {
    transition: transform 0.3s ease;
}

.top-btna:hover i {
    transform: translateY(-3px);
}

/* Responsive Media Queries */

/* Tablets (992px and below) */
@media screen and (max-width: 992px) {
    .skills-grida {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .section-titlea {
        font-size: 2.2rem;
    }

    .skill-titlea {
        font-size: 1.3rem;
    }
}

/* Medium Tablets (768px and below) */
@media screen and (max-width: 768px) {
    .profile-section {
        margin: 3rem 0;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .section-titlea {
        font-size: 2rem;
    }

    .section-descriptiona {
        font-size: 1rem;
    }

    .skills-grida {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
        margin: 3rem 0;
    }

    .skill-carda {
        padding: 1.5rem;
    }
}

/* Mobile Phones (576px and below) */
@media screen and (max-width: 576px) {
    .profile-section {
        margin: 2rem 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .section-titlea {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-descriptiona {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .skills-grida {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .skill-carda {
        padding: 1.2rem;
    }

    .skill-titlea {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .skill-lista li {
        margin-bottom: 0.6rem;
    }

    .top-btna {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Contact Section */
.contact-section {
    text-align: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.section-title {
    color: olivedrab;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

/* Underline Animation for Section Title */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.section-title:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--secondary-color);
    background-color: var(--darker-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cancel-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.submit-btn:hover,
.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        margin-top: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

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

    .submit-btn,
    .cancel-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group textarea {
        min-height: 120px;
    }
}

/* Special Effects */
h1,
h2,
h3 {
    position: relative;
    overflow: hidden;
}

h1::after,
h2::after,
h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

h1:hover::after,
h2:hover::after,
h3:hover::after {
    transform: translateX(0);

}

/* Address Section */
.address-section {
    padding: 2rem 1rem;
    text-align: center;
}

.address-content {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 1rem auto;
    border: 1px solid var(--highlight);
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    margin-top: 1.5rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Survey Form  */
.survey-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(57, 57, 60, 0.3);
    border-radius: 6px;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--success);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--darker-bg);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex;
}

.form-buttons :hover {
    background-color: olivedrab;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}


/* Responsive Fixes */
@media (max-width: 768px) {
    .survey-section {
        padding: 1.5rem;
        margin: 1rem;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 1rem;
    }

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

    .submit-btn,
    .cancel-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .survey-section {
        padding: 1rem;
    }

    .form-group {
        padding: 0.75rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

/* Projects Section */

.projects-section {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    padding: 0 1rem;
}

.containerp {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.auto-scroll-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#playPauseBtn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

#playPauseBtn.active {
    background-color: var(--secondary-color);
}

#playPauseBtn:hover {
    background-color: olivedrab
}

/* Progress Indicator */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-out;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slide-indicator.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.projects-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.projects-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.projects-slide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    min-width: 100%;
    padding: 1rem 0;
}

.project-card {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: var(--card-hover);
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.view-project-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.view-project-btn:hover {
    background-color: olivedrab;
}

.github-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.github-link:hover {
    color: var(--secondary-color);
}

.arrow {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background-color: olivedrab;

}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-description {
    margin: 1.5rem 0;
    text-align: left;
}

.modal-description h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.modal-description p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-description ul {
    padding-left: 1.5rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
}

.demo-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.demo-btn:hover {
    background-color: olivedrab;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-slide {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .projects-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Vertical Skills Carousel Styles */
.skills-verticals-section {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    padding: 0 1rem;
}

.skills-carousel-verticals {
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    display: flex;
    gap: 1.5rem;
}

.carousel-controls-verticals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.auto-scroll-controls-verticals {
    display: flex;
    justify-content: center;
    align-items: center;
}

#playPauseBtns {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

#playPauseBtns.active {
    background-color: var(--secondary-color);
}

#playPauseBtns:hover {
    background-color: olivedrab;
}

.arrows-verticals {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.arrows-verticals:hover {
    background-color: olivedrab;
}

.skills-wrapper-verticals {
    flex-grow: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.skill-slide-verticals {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 1rem;
}

.skill-slide-verticals.actives {
    opacity: 1;
    transform: translateY(0);
}

.skill-cards {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-cards:hover {
    transform: translateY(-15px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: var(--card-hover);
}

.skill-cards h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-cards ul {
    text-align: left;
    padding-left: 1.2rem;
}

.skill-cards li {
    margin-bottom: 1.5em;
    color: var(--text-color);
}

/* Progress Indicator */
.progress-container-verticals {
    width: 4px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar-verticals {
    width: 100%;
    height: 0;
    background-color: var(--secondary-color);
    transition: height 0.3s ease-out;
}

/* Slide Indicators */
.slide-indicators-verticals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.slide-indicator-verticals {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slide-indicator-verticals.actives {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-carousel-verticals {
        flex-direction: column;
    }

    .carousel-controls-verticals {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .progress-container-verticals {
        width: 100%;
        height: 4px;
        margin: 0.5rem 0;
    }

    .progress-bar-verticals {
        width: 0;
        height: 100%;
    }

    .slide-indicators-verticals {
        flex-direction: row;
    }

    .skills-wrapper-verticals {
        height: 650px;
    }

    .skill-slide-verticals {
        grid-template-columns: 1fr;
    }
}

/* Skills Horizontal Carousel (reusing Project Carousel Layout) */
.skills-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.skills-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.skills-slide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    min-width: 100%;
    padding: 1rem 0;
}

.skill-card {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
    /* Prepare for border glow */
}

/* Lift and Glow Effect */
.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Lift */
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
    /* Glow shadow */
    border-color: var(--secondary-color);
    /* Border glow */
    background-color: var(--card-hover);
}

.skill-card h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-card ul {
    text-align: left;
    padding-left: 1.2rem;
    list-style-type: none;
    /* Custom bullets if needed, or default */
}

.skill-card li {
    margin-bottom: 0.8em;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.skill-card li::before {
    content: '▹';
    color: var(--success);
    position: absolute;
    left: 0;
}

/* Specific to Skills Page Controls if needed */
.skills-section {
    padding: 2rem 0;
}
