﻿/* General Resets and Root Variables */
:root {
    --bg-color: #0b0b0d; /* Dark background */
    --text-color: #a3a3a3; /* Muted light grey text */
    --highlight-color: #f77cf6; /* Main accent pink */
    --highlight-hover: #ff9dff; /* Brighter pink for hover */
    --border-color: #a3a3a3; /* Muted grey for borders */
    --card-bg: #111111; /* Slightly lighter dark for cards */
    --header-bg: #0b0b0d; /* Matching header bg */
    --logo-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --section-padding: 100px 20px;
    --container-width: 1200px;
}

/* Decorative hash symbol used in headings and nav */
.hash-decor {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    vertical-align: middle;
}

/* subtle nav marker before nav links (keep very low opacity) */
header nav ul li a::before {
    color: rgba(255,255,255,0.06);
    margin-right: 8px;
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Base Headings */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-left: 15px;
    margin-bottom: 50px;
}

    h2::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 1.2rem;
        background-color: var(--highlight-color);
    }

.highlight {
    color: var(--highlight-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--highlight-color) 0%, #9b7bff 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 20px rgba(120, 60, 140, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(120, 60, 140, 0.16);
    outline: none;
}

/* Outline / link style for buttons that should remain subtle */
.btn.live-link,
.btn.ghost {
    background: transparent;
    color: var(--highlight-color);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: none;
}

.btn.live-link:hover,
.btn.ghost:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
}

/* Smaller secondary button used for scrolling */
.scroll-down-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.04);
}

.scroll-down-btn:hover {
    background: rgba(255,255,255,0.06);
}

/* Side Icons */
.side-icons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.side-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    color: var(--text-color);
    font-size: 1.05rem;
    transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.side-icons a:hover,
.side-icons a:focus {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(247,124,246,0.12), rgba(155,123,255,0.08));
    color: #ffffff;
    outline: none;
}

.side-icons a[aria-label] {
    /* ensure accessible hit area */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
    z-index: 100;
}

    header.scrolled {
        border-bottom: 0px solid var(--border-color);
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--logo-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.main-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    header nav ul {
    display: flex;
    gap: 36px;
}

    header nav ul li a {
        font-size: 1rem;
        padding: 10px 14px;
        border-radius: 8px;
        color: rgba(255,255,255,0.85);
        transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
        text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    }

    /* make icons inside nav more visible */
    header nav ul li a .nav-icon {
        margin-right: 8px;
        color: var(--highlight-color);
        font-size: 0.95rem;
        vertical-align: middle;
        opacity: 0.95;
    }

    header nav ul li a:hover .nav-icon,
    header nav ul li a:focus .nav-icon {
        color: #fff;
    }

    header nav ul li a:hover,
    header nav ul li a:focus {
        background: rgba(255,255,255,0.02);
        color: var(--highlight-color);
        transform: translateY(-2px);
        outline: none;
    }

    header nav ul li a:focus-visible {
        box-shadow: 0 0 0 3px rgba(247,124,246,0.12);
        border-radius: 8px;
    }

/* Main Content Wrapper */
main {
    max-width: var(--container-width);
    margin: 80px auto 0; /* space for header */
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
    /* Adding a basic glowing effect like the image */
    box-shadow: 0 0 40px rgba(111, 44, 111, 0.4);
}

.work-box {
    position: absolute;
    bottom: -10px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--highlight-color);
}

.work-highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

/* Quote Section */
.quote {
    padding: var(--section-padding);
}

.bordered-quote {
    border: 1px solid var(--border-color);
    padding: 40px 60px;
    position: relative;
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.quote-icon-top,
.quote-icon-bottom {
    position: absolute;
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.quote-icon-top {
    top: -15px;
    left: 20px;
}

.quote-icon-bottom {
    bottom: -15px;
    right: 20px;
}

.quote-cite {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    margin-top: 15px;
    text-align: right;
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.view-all-link {
    color: var(--highlight-color);
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-thumb {
    height: 180px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Fallback for missing thumbs */
.placeholder-thumb {
    background: repeating-conic-gradient(#222 0% 25%, #111 25% 50%) 50% / 20px 20px;
}

.thumb-content {
    color: #444;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.3;
}

.project-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.live-link {
    align-self: flex-start;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skill-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.skill-logo {
    width: 40px;
    height: 40px;
    filter: none; /* always show icons in color */
    opacity: 1;
    transition: transform 0.18s ease, opacity 0.12s ease;
}

.skill-item:hover .skill-logo {
    transform: scale(1.08);
}

.skill-label {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* About Me Section */
.about-me {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.about-text p {
    margin-bottom: 15px;
}

.about-avatar {
    display: flex;
    justify-content: center;
}

.avatar-illustration {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #222;
}

.avatar-laptop-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 2;
}

.resume-btn {
    margin-top: 25px;
}

/* Contact Me Section */
.contact-me {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.bordered-contact {
    border: 1px solid var(--border-color);
    padding: 20px;
}

.contact-msg-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-list li {
    margin-bottom: 10px;
}

    .contact-list li a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
    }

        .contact-list li a:hover {
            color: var(--highlight-color);
        }

/* Footer */
footer {
    padding: 50px;
    background-color: #08080a;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--logo-color);
    font-size: 1rem;
}

.footer-logo-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.footer-media h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.02);
    color: var(--text-color);
    transition: background 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.footer-social-icons a:hover,
.footer-social-icons a:focus {
    background: linear-gradient(180deg, rgba(247,124,246,0.12), rgba(155,123,255,0.06));
    color: #ffffff;
    transform: translateY(-3px);
    outline: none;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #1a1a1e;
    padding-top: 20px;
}

/* Footer layout */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-col h4 {
    margin-bottom: 12px;
}

.footer-contact p {
    margin: 6px 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.newsletter-form input[type="email"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: #fff;
    flex: 1;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.45);
}

/* small helper for screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Animations and in-view helper */
/* Remove entrance animation: show elements immediately */
.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Ensure grid children are visible immediately */
.project-grid.animate-on-scroll > .project-card,
.skills-grid.animate-on-scroll > .skill-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* nav link entrance */
.nav-entrance { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Responsiveness */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .view-all-link {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    header {
        padding: 15px 20px;
    }

        header nav ul {
            display: none; /* simple mobile nav fallback */
        }

    .side-icons {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .quote-icon-top,
    .quote-icon-bottom {
        display: none;
    }

    .project-desc {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
