/* --- Variables & Reset --- */
:root {
    --primary-color: #196fc2;
    --secondary-color: #004b91;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #1e293b;
    --text-color: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* --- Typography & Utilities --- */
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.bg-dark .section-title p { color: var(--text-light); }

/* --- Buttons --- */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(25, 111, 194, 0.4);
    margin-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span { color: var(--primary-color); }

.nav-links { display: flex; align-items: center; }

.nav-links li { margin: 0 15px; }

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

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

.btn-nav {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary-color) !important;
}

.btn-nav:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../img/intro.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 10px; }
.hero h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; }
.hero h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; }
.hero p { max-width: 600px; margin: 0 auto 40px; color: var(--text-light); font-size: 1.1rem; }

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--primary-color);
    width: 100%;
}

.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark-bg); }
.about-text p { margin-bottom: 20px; line-height: 1.8; color: #555; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: 0.3s;
}

.stat-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.stat-item i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-item h4 { font-size: 0.9rem; margin-bottom: 5px; }
.stat-item p { font-size: 0.8rem; color: #777; }

/* --- Skills Section --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.skill-category h3 { margin-bottom: 20px; color: var(--primary-color); border-bottom: 2px solid #334155; padding-bottom: 10px; display: inline-block; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.skill-tags span:hover { background: var(--primary-color); color: var(--white); }

/* --- Experience (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-content {
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.timeline-date {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-content h3 { font-size: 1.2rem; color: var(--dark-bg); }
.timeline-content h4 { font-size: 1rem; color: #777; margin-bottom: 10px; font-weight: 400; }
.timeline-content p { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 15px; }

.tech-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
    margin-top: 5px;
}

/* --- Contact & Footer --- */
.contact-box {
    text-align: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links { margin-top: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--white);
    transition: 0.3s;
}
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }

footer {
    background: #020617;
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--dark-bg);
        width: 100%;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .navbar {
        width: 100vw;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
    .timeline-item:nth-child(odd) { left: 0; text-align: left; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 21px; }
    .timeline-item:nth-child(even) .timeline-dot { left: 21px; }
}
