:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #ff3366;
    --secondary-color: #1a1a1a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 51, 102, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, border-color 0.2s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Glitch Effect */
.glitch {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(11px, 9999px, 71px, 0); }
    20% { clip: rect(85px, 9999px, 14px, 0); }
    40% { clip: rect(33px, 9999px, 98px, 0); }
    60% { clip: rect(62px, 9999px, 22px, 0); }
    80% { clip: rect(94px, 9999px, 55px, 0); }
    100% { clip: rect(4px, 9999px, 88px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 59px, 0); }
    40% { clip: rect(88px, 9999px, 34px, 0); }
    60% { clip: rect(45px, 9999px, 77px, 0); }
    80% { clip: rect(23px, 9999px, 11px, 0); }
    100% { clip: rect(99px, 9999px, 44px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.description {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-explore {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: left 0.3s ease;
    z-index: -1;
}

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

.btn-explore:hover::before {
    left: 0;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 5%;
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.item-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .item-image {
    transform: scale(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.item-overlay p {
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .item-overlay h3,
.gallery-item:hover .item-overlay p {
    transform: translateY(0);
}

/* About Section */
.about-section {
    padding: 100px 5%;
    background-color: var(--secondary-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1.1rem;
}

.skills {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    mix-blend-mode: overlay;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
    opacity: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

/* Contact Section */
.contact-section {
    padding: 150px 5%;
    text-align: center;
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 3rem;
}

.email-link {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4rem;
    position: relative;
    transition: color 0.3s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.email-link:hover {
    color: var(--accent-color);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    background-color: var(--secondary-color);
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .glitch {
        font-size: 5rem;
    }
    
    .email-link {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple mobile handling for now */
    }
    
    .glitch {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}