/* --- Global Styles & Variables --- */
:root {
    --primary-color: #ff9f43; /* Vibrant Amber */
    --secondary-color: #e67e22; /* Deeper Orange */
    --dark-bg: #2c231e; /* Dark Chocolate Brown */
    --light-bg: #3e3530; /* Lighter, warm brown for cards */
    --alt-bg: #261e19; /* Even darker brown for section separation */
    --text-color: #dcd0c0; /* Warm, off-white */
    --heading-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --code-font: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.8;
    cursor: none;
}

/* --- Layout & Helpers --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Custom Cursor --- */
.cursor, .cursor-follower {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    border-radius: 50%;
}
.cursor {
    width: 8px; height: 8px;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 40px; height: 40px;
    background-color: rgba(255, 159, 67, 0.2);
    border: 1px solid rgba(255, 159, 67, 0.4);
    transition: transform 0.2s ease-out, opacity 0.3s ease, background-color 0.3s ease;
    transform: translate(-50%, -50%);
}
body:hover .cursor-follower.hovered {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 159, 67, 0.4);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}
.main-header.scrolled {
    background: rgba(44, 35, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--heading-color); }
.logo-accent {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
.nav-cta { background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)); color: white; padding: 10px 22px; border-radius: 20px; transition: transform 0.3s ease; }
.nav-cta:hover { color: white; transform: scale(1.05); }

/* --- Hero Section (Left-Aligned) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    text-align: left;
}
.hero-headline, .hero-headline-dynamic {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--heading-color);
}
.hero-headline-dynamic {
    min-height: 1.2em; /* Prevents layout shift */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
#typing-effect {
    border-right: 4px solid var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--primary-color); } }
.hero-text .subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 1.5rem 0 2.5rem;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--heading-color);
    padding: 16px 36px; border-radius: 50px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(230, 126, 34, 0.5); }

/* --- General Section Styling --- */
.content-section { padding: 6rem 0; }
.alt-bg { background-color: var(--alt-bg); }
.section-title { font-size: 3rem; margin-bottom: 4rem; text-align: center; }

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--light-bg); padding: 2.5rem; border-radius: 12px;
    border: 1px solid transparent; text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.service-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }

/* --- Portfolio Section --- */
.portfolio-item { display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; gap: 4rem; }
.app-showcase { text-align: center; }
.app-mockup { max-width: 100%; transition: transform 0.5s ease; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); }
.portfolio-item:hover .app-mockup { transform: scale(1.05) rotate(-3deg); }
.app-details .app-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 1.5rem; }
.tech-stack { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.tech-stack li { margin-bottom: 0.5rem; }
.tech-stack i { color: var(--primary-color); margin-right: 10px; width: 20px; }

/* FIX: SVG Google Play badge styling */
.google-play-link { display: inline-block; transition: transform 0.3s ease; }
.google-play-link:hover { transform: scale(1.05); }
.google-play-link svg .cls-1 { fill: #fff; }
.google-play-link svg .cls-2 { fill: var(--text-color); }
.google-play-link svg .cls-3,
.google-play-link svg .cls-4,
.google-play-link svg .cls-5,
.google-play-link svg .cls-6 { /* Keep original colors */ }


/* --- About & Contact Sections --- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hire-me-section { padding: 6rem 0; text-align: center; }
.hire-me-content h2 { font-size: 2.5rem; }

/* --- Animation: Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .portfolio-item { grid-template-columns: 1fr; text-align: center; }
    .app-showcase { margin-bottom: 3rem; }
    .app-details { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    .main-nav { flex-direction: column; gap: 1rem; }
    .hero-container { text-align: center; }
    .hero-text .subtitle { margin: 1.5rem auto 2.5rem; }
}