/* --- Variables & Reset (Dark Mode) --- */
:root {
    --bg-color: #050505;        /* Deepest Black */
    --card-bg: #111111;         /* Slightly lighter black for cards */
    --text-color: #ffffff;      /* Pure White */
    --gold: #D4AF37;            /* Metallic Gold */
    --gold-dim: #8a701e;        /* Darker Gold for borders */
    --grey: #a0a0a0;            /* Light Grey for subtitles */
    --border-color: #222222;    /* Subtle borders */
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hiding default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; cursor: none; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999;
    pointer-events: none;
}
.cursor-dot { width: 6px; height: 6px; background-color: var(--gold); }
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 2.5rem 8%; z-index: 100;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 8%;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    font-family: var(--font-serif);
    font-weight: 700; font-size: 1.4rem;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-color);
}
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
    font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 2px;
    transition: color 0.3s;
    color: var(--grey);
}
.nav-links a:hover { color: var(--gold); }
.btn-nav {
    border: 1px solid var(--text-color);
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
    color: var(--text-color) !important;
}
.btn-nav:hover { background: var(--gold); border-color: var(--gold); color: #000 !important; }

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 10%; position: relative; overflow: hidden;
}
.pre-title {
    font-size: 0.9rem; color: var(--gold);
    text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 1.5rem; font-weight: 600;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem; line-height: 1.1;
    margin-bottom: 2rem; color: var(--text-color);
}
.gold-text {
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-clip: text; -webkit-background-clip: text;
    color: transparent; font-style: italic;
}
.hero-subtitle {
    max-width: 550px; color: var(--grey);
    line-height: 1.8; margin-bottom: 3.5rem;
    font-size: 1.1rem; font-weight: 300;
}
.hero-buttons { display: flex; gap: 1.5rem; }
.btn {
    padding: 1.1rem 2.2rem;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    transition: all 0.4s var(--easing); font-weight: 600;
    display: inline-block;
}
.btn-primary {
    background-color: var(--text-color); color: #000;
    border: 1px solid var(--text-color);
}
.btn-primary:hover {
    background-color: var(--gold); border-color: var(--gold);
    color: #000; transform: translateY(-3px);
}
.btn-secondary {
    background: transparent; color: var(--text-color);
    border: 1px solid var(--grey);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Decorative Circle (Subtler in Dark Mode) */
.gold-circle {
    position: absolute; right: -5%; top: 15%;
    width: 650px; height: 650px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%; z-index: -1;
    animation: float 12s infinite ease-in-out;
    box-shadow: 0 0 100px rgba(212, 175, 55, 0.05);
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -20px); }
}

/* --- About Section --- */
.about-section {
    padding: 8rem 10%; background-color: var(--bg-color);
    display: flex; justify-content: center;
}
.about-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
    max-width: 1200px; width: 100%;
}
.about-image { position: relative; padding-left: 20px; padding-bottom: 20px; }
.image-wrapper {
    position: relative; z-index: 2;
    width: 100%; height: 500px;
    overflow: hidden;
    filter: grayscale(100%); /* B&W Photo for extra noir feel */
    transition: filter 0.5s ease;
}
.about-image:hover .image-wrapper { filter: grayscale(0%); }

.image-wrapper img { transition: transform 1s var(--easing); }
.image-frame {
    position: absolute; top: 30px; left: 0;
    width: 100%; height: 500px;
    border: 2px solid var(--gold);
    z-index: 1; transition: transform 0.5s ease;
}
.about-image:hover .image-wrapper img { transform: scale(1.03); }
.about-image:hover .image-frame { transform: translate(-10px, 10px); }

.gold-subtitle {
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1rem;
}
.about-text h2 {
    font-family: var(--font-serif); font-size: 3rem;
    line-height: 1.1; margin-bottom: 2rem;
}
.about-bio {
    color: var(--grey); line-height: 1.8;
    margin-bottom: 2.5rem; font-size: 1rem;
}
.about-bio strong { color: var(--text-color); font-weight: 600; }
.about-meta {
    display: flex; gap: 3rem; margin-bottom: 3rem;
    border-top: 1px solid var(--border-color); padding-top: 1.5rem;
}
.meta-item span {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    color: var(--gold); letter-spacing: 1px; margin-bottom: 0.3rem;
}
.meta-item p { font-family: var(--font-serif); font-size: 1.1rem; }

/* --- Skills Matrix --- */
.skills-section { padding: 4rem 10% 8rem 10%; background: var(--bg-color); }
.section-header { margin-bottom: 5rem; display: flex; align-items: center; gap: 2rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 3rem; }
.line { height: 1px; flex-grow: 1; background: var(--border-color); }

.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.skill-group h4 {
    font-family: var(--font-serif); font-size: 1.5rem;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--gold-dim);
    display: inline-block; padding-bottom: 5px; color: var(--text-color);
}
.skill-group ul li {
    margin-bottom: 0.8rem; color: var(--grey);
    display: flex; align-items: center; gap: 10px;
}
.skill-group ul li::before {
    content: ''; width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
}

/* --- Work Section --- */
.work-section { 
    padding: 8rem 10%; 
    background: var(--bg-color); 
}

.gallery {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Slightly wider min-width */
    gap: 4rem;
}

.card { 
    background: var(--card-bg); 
    transition: 0.4s var(--easing); 
    border: 1px solid var(--border-color); /* Adds a subtle border definition */
}

.card:hover { 
    transform: translateY(-15px); 
    border-color: var(--gold-dim); 
}

.card-image-wrapper {
    height: 350px; 
    width: 100%; 
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.card-image-wrapper img {
    transition: transform 0.8s var(--easing);
    filter: grayscale(100%);
    opacity: 0.8;
}

.card:hover .card-image-wrapper img { 
    transform: scale(1.05); 
    filter: grayscale(0%); 
    opacity: 1; 
}

.card-info {
    padding: 40px; /* <--- This adds the big spacing inside the box */
    display: flex;
    flex-direction: column;
}

.card h3 { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    margin-bottom: 0.8rem; 
    color: var(--text-color);
}

.card p {
    color: var(--gold); 
    font-size: 0.75rem;
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 1.5rem; /* Space between tags and description */
    font-weight: 600;
}

.card-desc {
    color: var(--grey); 
    font-size: 0.95rem;
    line-height: 1.8; /* Makes the text breathe */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

/* --- Project Link Buttons (NEW ADDITION) --- */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px; /* Spacing from the description */
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.prj-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid #333;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.prj-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05); /* Very faint gold background */
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer-section {
    background-color: #000000; 
    color: #ffffff;
    padding: 8rem 10% 4rem 10%; text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
}
.footer-section .pre-title { color: var(--grey); margin-bottom: 1rem; }
.footer-title {
    font-family: var(--font-serif); font-size: 4rem;
    line-height: 1.1; margin-bottom: 2rem;
}
.footer-text {
    color: var(--grey); margin-bottom: 2.5rem;
    font-size: 1.1rem; font-weight: 300;
}
.email-link {
    font-size: 1.5rem; font-family: var(--font-serif);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px; margin-bottom: 4rem;
    transition: all 0.3s ease; color: var(--text-color);
}
.email-link:hover { color: var(--gold); border-color: var(--gold); }

.social-links { display: flex; gap: 2rem; margin-bottom: 5rem; }
.social-btn {
    width: 60px; height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem; transition: all 0.4s var(--easing);
    background: transparent; color: #fff;
}
.social-btn:hover {
    border-color: var(--gold); color: var(--gold);
    transform: translateY(-5px) scale(1.1);
    background: rgba(212, 175, 55, 0.1);
}
.copyright {
    width: 100%; border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.copyright p { font-size: 0.8rem; color: #555; text-transform: uppercase; letter-spacing: 2px; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(40px); animation: fadeInUp 1s var(--easing) forwards; }
.hero-content .fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.3s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.5s; }
.hero-content .fade-in:nth-child(4) { animation-delay: 0.7s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(60px); transition: all 1s var(--easing); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .hero-title { font-size: 3rem; }
    .navbar { padding: 1.5rem 5%; }
    .nav-links { display: none; }
    .gold-circle { width: 300px; height: 300px; top: 10%; right: -20%; }
    
    .about-container { grid-template-columns: 1fr; gap: 4rem; }
    .about-image { padding: 0; margin: 0 auto; max-width: 100%; }
    .image-wrapper, .image-frame { height: 400px; }
    .image-frame { left: -10px; }
    
    .footer-title { font-size: 2.5rem; }
    .email-link { font-size: 1.2rem; }
}