/* --- VARIABLES & RESET --- */
:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #2563eb; /* Electric Blue */
    --accent-glow: rgba(37, 99, 235, 0.5);
    --border: #222;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; color: #fff; }

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand { display: flex; align-items: center; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.profile-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
}
.profile-icon img { width: 100%; height: 100%; object-fit: cover; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn-outlined {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.btn-outlined:hover { border-color: var(--accent); color: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 2px; background: #fff; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}
.hero-subtitle .highlight { color: #fff; font-weight: 600; }

.cta-group { display: flex; gap: 1.5rem; align-items: center; }
.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3); }

.btn-text { font-weight: 600; color: #fff; }
.btn-text:hover { color: var(--accent); gap: 10px; }

.scroll-indicator {
    position: absolute; bottom: 40px; right: 5%;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 0.8rem;
}
.mouse {
    width: 20px; height: 35px; border: 1px solid var(--text-secondary);
    border-radius: 15px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 6px; background: #fff; border-radius: 2px;
    animation: scroll 2s infinite;
}
@keyframes scroll { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* --- GENERAL LAYOUT --- */
.section-pad { padding: 8rem 5%; }
.bg-darker { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 4rem; }
.subtitle { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.section-header h2 { font-size: 3rem; }

/* --- SERVICES GRID --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.icon-box { font-size: 2rem; color: var(--accent); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.service-list li {
    color: #888; font-size: 0.9rem; margin-bottom: 0.5rem;
    position: relative; padding-left: 15px;
}
.service-list li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* --- PROJECTS --- */
.projects-wrapper { display: flex; flex-direction: column; gap: 6rem; }
.project-item { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
/* Alternate layout for even projects */
.project-item:nth-child(even) { direction: rtl; } 
.project-item:nth-child(even) .project-details { direction: ltr; }

.project-image {
    height: 400px; width: 100%; border-radius: 12px; overflow: hidden;
    position: relative;
}
.placeholder-img {
    width: 100%; height: 100%; display: flex;
    justify-content: center; align-items: center;
    font-size: 4rem; color: rgba(255,255,255,0.1);
}
.project-cat { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.project-details h3 { font-size: 2.5rem; margin: 0.5rem 0 1.5rem; }
.project-details p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }
.tech-stack { display: flex; gap: 1rem; }
.tech-stack span {
    padding: 5px 15px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: 20px;
    font-size: 0.85rem; color: #ccc;
}

/* --- EXPERIENCE & TESTIMONIALS --- */
.split-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.bio-text { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 400px; }

.timeline { border-left: 2px solid var(--border); padding-left: 3rem; }
.timeline-block { position: relative; margin-bottom: 3rem; }
.timeline-block::before {
    content: ''; position: absolute; left: -3.6rem; top: 5px;
    width: 16px; height: 16px; background: var(--bg-main);
    border: 2px solid var(--accent); border-radius: 50%;
}
.timeline-block .date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.timeline-block h4 { font-size: 1.3rem; margin: 5px 0; }
.timeline-block .company { display: block; color: #fff; margin-bottom: 10px; font-weight: 500; }
.timeline-block p { color: var(--text-secondary); font-size: 0.95rem; }

.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.review-card { background: var(--bg-card); padding: 2.5rem; border: 1px solid var(--border); }
.stars { color: #ffd700; margin-bottom: 1rem; font-size: 0.9rem; }
.review-card p { font-style: italic; color: #ccc; margin-bottom: 1.5rem; }
.client-info h5 { font-size: 1rem; }
.client-info span { font-size: 0.85rem; color: var(--text-secondary); }

/* --- CONTACT --- */
.contact-wrapper {
    background: linear-gradient(135deg, #111, #0a0a0a);
    padding: 4rem; border-radius: 20px; text-align: center;
    border: 1px solid var(--border);
}
.contact-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-content p { color: var(--text-secondary); margin-bottom: 3rem; }
.contact-methods { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; }
.contact-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 25px; background: rgba(255,255,255,0.05);
    border-radius: 50px; transition: var(--transition);
}
.contact-pill:hover { background: var(--accent); color: white; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border); padding: 3rem 5%; background: #000; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #111; border-radius: 50%; color: #fff; }
.social-links a:hover { background: var(--accent); }
.copyright { color: #555; font-size: 0.9rem; }

/* --- ANIMATIONS & RESPONSIVE --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .project-item { grid-template-columns: 1fr; gap: 2rem; }
    .project-item:nth-child(even) { direction: ltr; }
    .project-item:nth-child(even) .project-details { direction: ltr; }
    .project-image { height: 250px; }
    .split-layout { grid-template-columns: 1fr; }
    .nav-links, .btn-outlined { display: none; }
    .hamburger { display: flex; }
}