/* --- Neumorphic Portfolio Styles by Cool Shot Systems --- */

/* --- High-Contrast Neumorphic Palette --- */
:root {
    --primary-color: #00cfff; /* Bright cyan for accents */
    --secondary-color: #00ff99; /* Vibrant green for secondary accents */
    --light-bg: #e0e5ec; /* Light background for the neumorphic effect */
    
    /* --- ADJUSTED FOR BETTER CONTRAST --- */
    --text-primary: #1c1c1c;   /* Darker text for high readability */
    --text-secondary: #4a4a4a; /* Darker secondary text */
    --shadow-light: #ffffff;   /* Light shadow for highlights */
    --shadow-dark: #9da3a9;    /* Darker shadow for more depth and clarity */
}

/* General body styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* --- Navigation Bar --- */
/* The navbar has a subtle pressed-in (concave) neumorphic effect. */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--light-bg);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
}

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

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: inset 3px 3px 5px var(--shadow-dark),
                inset -3px -3px 5px var(--shadow-light);
}

/* Hamburger for mobile view */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

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

/* --- General Section Styling --- */
section {
    padding: 120px 20px 80px; /* Added top padding to account for fixed navbar */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* --- Neumorphic Buttons --- */
/* Buttons have a raised (convex) effect that appears pushed out from the page. */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--light-bg);
    color: var(--text-primary);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
}

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

/* When a button is pressed, the shadows invert to create a pressed-in look. */
.btn:active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
    transform: translateY(2px);
}

/* --- Project Cards & General Cards --- */
/* Cards are the primary example of the neumorphic raised effect. */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card, .skill-card, .contact-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 10px 10px 20px var(--shadow-dark),
                -10px -10px 20px var(--shadow-light);
}

.project-card:hover, .skill-card:hover, .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px var(--shadow-dark),
                -15px -15px 30px var(--shadow-light);
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 50px;
}

/* --- Footer --- */
.footer {
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 40px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }
    }
