/* --- Global Styles & Variables --- */
:root {
    --primary-color: #f39c12; /* Orange */
    --secondary-color: #9b59b6; /* Purple */
    --link-color: #338dff; /* Bright blue for links and underlines */
    --dark-bg: #05040a;
    --text-color: #ecf0f1;
    --font-primary: 'Audiowide', cursive;
    --font-secondary: 'Rajdhani', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Animated Background --- */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(155, 89, 182, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 89, 182, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

/* --- Header & Navigation --- */
header {
    width: 100%;
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.glitch {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    position: relative;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 { 0% { clip-path: inset(15% 0 86% 0); } 20% { clip-path: inset(5% 0 58% 0); } 40% { clip-path: inset(45% 0 25% 0); } 60% { clip-path: inset(80% 0 10% 0); } 80% { clip-path: inset(22% 0 70% 0); } 100% { clip-path: inset(95% 0 2% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(78% 0 12% 0); } 20% { clip-path: inset(40% 0 33% 0); } 40% { clip-path: inset(2% 0 95% 0); } 60% { clip-path: inset(60% 0 8% 0); } 80% { clip-path: inset(90% 0 5% 0); } 100% { clip-path: inset(35% 0 48% 0); } }

.subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: #bdc3c7;
    font-weight: 400;
}

.cta-button {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 10px var(--primary-color);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 5px var(--primary-color);
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 5%;
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color), 0 0 15px var(--secondary-color);
}

.about-content {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #bdc3c7;
}

/* --- Project Grid --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border: 1px solid var(--secondary-color);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px -5px var(--secondary-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px -5px var(--secondary-color);
    border-color: var(--primary-color);
}

.card-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* KEY FIX: Makes content 'invisible' to the mouse */
}

.card-cover-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-content h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--primary-color);
    display: inline-block;
    border-bottom: 1px solid var(--link-color);
    padding-bottom: 6px;
}

.card-content p {
    color: var(--link-color);
    font-size: 1rem;
    line-height: 1.8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--link-color);
    text-underline-offset: 4px;
    margin-top: 1rem;
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-start;
    border-bottom: 1px solid var(--link-color);
    padding-bottom: 2px;
}

.project-link::after {
    content: ' →';
    display: inline-block;
}

/* --- Instagram Feed Section --- */
.instagram-container {
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    box-shadow: 0 0 15px var(--primary-color), inset 0 0 15px var(--primary-color);
}

/* --- Footer --- */
footer {
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid rgba(155, 89, 182, 0.2);
}

footer p {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}