:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #00AEEF;
    --accent-color-dark: #8E2DE2;
    --card-bg: #1E1E1E;
    --border-color: #333;
}

* {
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 2000;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 174, 239, 0.5);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 600;
}

header {
    padding: 1.5rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 3rem;
}

header nav ul li a {
    font-weight: 600; /* Make links bolder */
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--accent-color);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 4rem;
    background: linear-gradient(-45deg, #121212, #1a232f, #121212);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    position: relative; /* For absolute positioning of the graphic */
    overflow: hidden; /* To ensure graphic doesn't spill out */
}

.hero-paintbrush-graphic {
    position: absolute;
    right: -100px; /* Adjust to move it partly off-screen */
    bottom: -100px; /* Adjust to move it partly off-screen */
    width: 600px; /* Adjust size as needed */
    height: 600px; /* Adjust size as needed */
    color: rgba(0, 174, 239, 0.1); /* Subtle color */
    transform: rotate(-20deg); /* Tilt it slightly */
    z-index: 0; /* Behind the content */
    opacity: 0.8;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1; /* Above the graphic */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.cta-button {
    background-image: linear-gradient(to right, var(--accent-color), var(--accent-color-dark));
    background-size: 200% auto;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 1rem;
    transition: 0.5s;
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background-position: right center;
}

.secondary-button {
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
}

.secondary-button:hover {
    background-color: var(--accent-color);
    color: white;
}

section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

section h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    border: 1px solid var(--border-color);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(50%);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.portfolio-item:hover .portfolio-item-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.portfolio-item-info p {
    font-size: 0.9rem;
    margin: 0;
}

#about, #contact {
    text-align: center;
}

footer {
    text-align: center;
    padding: 3rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    * { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
    header { padding: 1rem; }
    header nav ul { justify-content: center; }
    header nav ul li { margin: 0 1rem; }
    section { padding: 4rem 1.5rem; }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}

/* About Me Card */
.about-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Contact Card */
.contact-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background-color: var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.email-button {
    background-image: linear-gradient(to right, var(--accent-color), var(--accent-color-dark));
    color: white;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-card .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
