/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #ff0055; /* Vibrant Pink Accent */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-secondary: #b0b0b0;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}
.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--primary-color); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 70%);
}

.hero h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .typewriter {
    font-size: 20px;
    color: var(--text-secondary);
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s step-end infinite;
}

/* --- SECTION GLOBAL STYLES --- */
section {
    padding: 80px 10%;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 40px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

/* --- ABOUT & SKILLS --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.profile-text p { margin-bottom: 20px; color: var(--text-secondary); }

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item { margin-bottom: 15px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 5px; }
.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0; /* Animated via JS */
    transition: width 1.5s ease-in-out;
}

/* Stats Counter */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    text-align: center;
}
.stat-item i { font-size: 30px; color: var(--primary-color); margin-bottom: 10px; }
.stat-number { font-size: 24px; font-weight: 700; display: block; }
.stat-label { font-size: 12px; text-transform: uppercase; color: var(--text-secondary); }

/* --- PORTFOLIO --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover { color: var(--primary-color); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 1; /* For filtering */
    transform: scale(1);
}

.portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.portfolio-img {
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 40px;
}

.portfolio-info { padding: 20px; }
.portfolio-info h3 { font-size: 20px; margin-bottom: 5px; }
.portfolio-info span { font-size: 12px; color: var(--primary-color); text-transform: uppercase; }

.portfolio-item.hidden {
    display: none;
}

/* --- EXPERIENCE & EDUCATION --- */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.timeline-column h3 { margin-bottom: 30px; font-size: 24px; }

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
    border-left: 2px solid #333;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 12px;
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-title { font-size: 18px; color: #fff; margin-bottom: 5px; }
.timeline-company { font-size: 14px; color: var(--primary-color); margin-bottom: 10px; display: block; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); }

/* --- CONTACT --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover { background: #d90048; }

/* --- FOOTER --- */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #333;
    color: var(--text-secondary);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .about-container, .timeline-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 40px; }
}

@keyframes blink {
    50% { border-color: transparent; }
}