/* =========================================
   Reset & Basics
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   Typography & Colors
   ========================================= */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --text-color: #e2e8f0;
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --transition: all 0.3s ease-in-out;
}

h1, h2, h3 { font-weight: 700; }
a { text-decoration: none; color: inherit; }
.highlight { color: var(--primary-color); }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

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

/* =========================================
   Navbar
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(11, 15, 25, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-color); }

.admin-btn {
    background: #eab308;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
}
.admin-btn:hover { color: #fff; }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   Sections General
   ========================================= */
.section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5%;
    margin-top: 60px;
}

.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero-content h2 { font-size: 1.5rem; color: #94a3b8; margin-bottom: 1.5rem; font-weight: 400; }
.hero-content p { color: #cbd5e1; margin-bottom: 2rem; font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 1rem; }

.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.hero-image img:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }

/* =========================================
   About Section
   ========================================= */
.about-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-item {
    background-color: rgba(11, 15, 25, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-item p {
    color: #94a3b8;
    font-size: 1rem;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.7rem;
    color: #94a3b8;
    font-size: 1rem;
}

.about-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================================
   Skills Section
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.skill-card p { font-weight: 600; font-size: 1.1rem; }

.skill-card:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 60px; }
.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 13.5px;
    top: 5px;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.timeline-content:hover { transform: translateX(10px); }
.timeline-content h3 { color: var(--primary-color); }
.timeline-content h4 { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem; }
.timeline-content ul { list-style-position: inside; color: #cbd5e1; }

/* =========================================
   Projects Section
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.project-card:hover::before { transform: scaleX(1); }
.project-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.project-card p { color: #cbd5e1; font-size: 0.95rem; }

/* =========================================
   Education Section
   ========================================= */
.edu-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}
.edu-card:hover { background-color: #1e293b; }

/* =========================================
   Footer
   ========================================= */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: #06090f;
    border-top: 1px solid #1e293b;
}

.social-links { margin-bottom: 1rem; }
.social-links a { display: inline-block; margin: 0 10px; font-size: 1.5rem; color: var(--text-color); transition: var(--transition); }
.social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }

/* =========================================
   Back to Top
   ========================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px); background-color: #2563eb; }

/* =========================================
   Scroll Animations
   ========================================= */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.show-scroll { opacity: 1; transform: translateY(0); }

/* =========================================
   Responsive 
   ========================================= */
@media(max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        background-color: var(--card-bg);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 5rem; }
    .hero-image img { width: 250px; height: 250px; margin-bottom: 2rem; }
}