/* --- style.css --- */

/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #fdfffc;
    --text-color-primary: #1a1a1a;
    --text-color-secondary: #5a5a5a;
    --border-color: #e0e0e0;
    --accent-color: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Custom Cursor */
    cursor: url('assets/cursor.svg') 12 12, auto;
    /* Page Load Animation */
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Different cursor for interactive elements */
a, button, .cta-button, .project-card {
    cursor: url('assets/cursor-pointer.svg') 12 12, pointer;
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    background: rgba(253, 255, 252, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-color-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color-primary);
}

.nav-contact-btn {
    padding: 8px 20px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* --- HERO & PAGE HEADERS --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 1rem;
}

.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    z-index: 0;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 1px, transparent 1.5px);
    background-size: 30px 30px;
    transform: perspective(700px) rotateX(25deg) scale(1.5);
    animation: slow-pan 50s linear infinite;
}

@keyframes slow-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-content {
    position: relative; z-index: 1; display: grid;
    grid-template-areas: "title-top ." "name name" ". title-bottom" "cta cta";
    grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
}
.hero-name { grid-area: name; font-size: clamp(3rem, 12vw, 9rem); font-weight: 900; color: var(--accent-color); letter-spacing: -0.05em; margin: 0; line-height: 1; }
.hero-title-top { grid-area: title-top; font-size: clamp(1rem, 3.5vw, 2.5rem); font-weight: 300; color: var(--text-color-secondary); justify-self: start; transform: translateY(25%); }
.hero-title-bottom { grid-area: title-bottom; font-size: clamp(1rem, 3.5vw, 2.5rem); font-weight: 300; color: var(--text-color-secondary); justify-self: end; transform: translateY(-25%); }
.hero-cta { grid-area: cta; margin-top: 2rem; }

/* Simple header for other pages */
.page-header {
    padding-top: 150px;
    text-align: center;
}
.page-header h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    margin-top: 10px;
}

/* --- GENERAL CONTENT & SECTIONS --- */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 20px;
}

section { margin-bottom: 120px; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
p { font-size: 1.1rem; color: var(--text-color-secondary); max-width: 720px; }

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-button:hover { background-color: var(--accent-color); color: var(--bg-color); }
.cta-section { text-align: center; }

/* --- SPECIFIC SECTION STYLES --- */
/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 60px; margin-top: 40px; }
.service-item { position: relative; padding-top: 10px; }
.service-number { position: absolute; top: -20px; left: -15px; font-size: 4rem; font-weight: 900; color: rgba(0, 0, 0, 0.06); z-index: -1; line-height: 1; }
.service-item h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }

/* Featured Project on Homepage */
.featured-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; margin-bottom: 60px; }
.project-image { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-color); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.testimonial-card { padding: 30px; border: 1px solid var(--border-color); border-radius: 8px; }
.testimonial-card blockquote { font-size: 1.1rem; color: var(--text-color-primary); border-left: 3px solid var(--accent-color); padding-left: 20px; margin: 0; }
.testimonial-card footer { margin-top: 20px; font-weight: 700; color: var(--text-color-primary); }
.testimonial-card footer span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--text-color-secondary); }

/* Contact Links */
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 15px 30px; margin-top: 20px; }
.social-links a { font-size: 1.1rem; color: var(--text-color-primary); text-decoration: none; font-weight: 400; position: relative; display: inline-block; height: 2.4em; line-height: 1.2em; overflow: hidden; }
.social-links a span { display: inline-block; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.social-links a::after { content: attr(data-username); position: absolute; left: 0; top: 100%; display: inline-block; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.social-links a:hover span { transform: translateY(-100%); }
.social-links a:hover::after { transform: translateY(-100%); }

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links { list-style: none; display: flex; gap: 20px; }
.footer-links a { color: var(--text-color-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text-color-primary); }

/* --- PROJECTS PAGE --- */
.projects-grid {
    display: grid;
    /* Mobile First: 1 column */
    grid-template-columns: 1fr; 
    gap: 40px;
}
/* Tablet: 2 columns */
@media (min-width: 600px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Desktop: 3 columns (as requested) */
@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline from link */
    color: var(--text-color-primary); /* Ensure text color is correct */
    display: flex;
    flex-direction: column; /* Make card a flex container */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
}

.project-card .project-image-wrapper {
    overflow: hidden; /* This is key for the zoom effect */
}

.project-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease; /* Add transition for zoom */
}

.project-card:hover img {
    transform: scale(1.05); /* Zoom image on hover */
}

.project-card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: #3498db; /* Change title color on hover for feedback */
}

.project-card p {
    font-size: 1rem;
    flex-grow: 1; /* Pushes the status/link to the bottom */
}

.project-card .status {
    font-size: 0.8rem;
    color: var(--bg-color);
    background-color: #e74c3c;
    font-weight: 700;
    margin-top: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block; /* Makes it fit the content */
    align-self: flex-start; /* Aligns to the left */
}

/* --- ABOUT PAGE --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .about-layout {
        /* Desktop: 2 columns */
        grid-template-columns: 1fr 2fr;
    }
}

.about-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.highlight-box {
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f8f8;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color-primary);
}

.highlight-box span {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--text-color-secondary);
}

/* --- ABOUT & CV PAGE --- */
.two-column-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: flex-start;
}
.profile-image {
    width: 100%;
    border-radius: 8px;
}
.cv-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 40px;
}
.cv-section ul {
    list-style: none;
    padding-left: 0;
}
.cv-section ul li {
    margin-bottom: 10px;
}
.cv-item {
    margin-bottom: 30px;
}
.cv-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.cv-item .date {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

/* --- CONTACT PAGE --- */
.contact-page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.contact-page-container h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
}
.contact-email {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--text-color-primary);
    text-decoration: none;
    position: relative;
}
.contact-email::after {
    content: '';
    position: absolute; width: 100%; height: 2px;
    bottom: -5px; left: 0; background-color: var(--accent-color);
    transform: scaleX(0); transition: transform 0.3s ease-out;
}
.contact-email:hover::after {
    transform: scaleX(1);
}
.contact-page-container .social-links {
    margin-top: 60px;
    justify-content: center;
}

/* --- ANIMATIONS & RESPONSIVE --- */
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links, .nav-contact-btn { display: none; } /* Simple mobile solution: hide nav links. A hamburger menu would be the next step. */
    .featured-project-grid { grid-template-columns: 1fr; }
    .project-image { order: -1; }
    .two-column-layout { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; text-align: center; }
}