
:root {
    --bg-dark: #121212;
    --bg-light-dark: #1E1E1E;
    --border-color: #2D2D2D;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --accent-color: #FFC107; 
    --accent-hover: #FFD54F;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- General & Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}
.container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-color); margin: 10px auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 600px; margin: 0 auto 3rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }
.page-section { padding-top: 100px; /* Offset for fixed header */ }

/* --- Header & Navigation --- */
header { background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); position: fixed; width: 100%; z-index: 100; border-bottom: 1px solid var(--border-color); }
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }
.nav-links a { font-weight: 600; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.nav-links a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.hamburger { display: none; cursor: pointer; }
.hamburger .line { width: 25px; height: 3px; background: var(--text-primary); margin: 5px 0; transition: all 0.3s ease; }

/* --- Hero Section --- */
#hero-main { min-height: 90vh; display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; }
.hero-content .subtitle { font-size: 1.5rem; color: var(--accent-color); margin: 0.5rem 0 1.5rem; }
.hero-content .hero-description { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 2.5rem; }
/* Hero Buttons Layout */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.cta-button { 
    display: inline-block; 
    background: transparent;                
    color: var(--accent-color);       
    padding: 14px 28px; 
    border-radius: 6px; 
    font-weight: 700; 
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease; 
}
.cta-button:hover { 
    background: var(--accent-color); 
    color: #000;
    transform: translateY(-3px);
}
.hero-image { flex: 0.8; text-align: center; }
.hero-image img { max-width: 100%; width: 350px; height: 350px; object-fit: cover; border-radius: 50%; border: 5px solid var(--bg-light-dark); box-shadow: 0 0 40px rgba(255, 193, 7, 0.2); }

/* --- Thought Bar --- */
#thought-bar { background-color: var(--bg-light-dark); padding: 3rem 0; }
.thought-content i { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 1rem; }
.thought-content p { font-size: 1.25rem; font-style: italic; color: var(--text-secondary); max-width: 800px; margin: 0 auto 0.5rem; }
.thought-content cite { color: var(--text-primary); font-style: normal; }

/* --- Core Skills / My Approach --- */
.skills-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.skill-card { background: var(--bg-light-dark); padding: 2.5rem 1.5rem; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.skill-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.skill-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; }
.skill-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.skill-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Projects --- */
#featured-projects { background-color: var(--bg-dark); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card {
    background: var(--bg-light-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px; 
}

.project-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); border-color: var(--accent-color);}
.project-card h3 { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 1rem; }
.project-card p { color: var(--text-secondary); margin-bottom: 1.5rem; flex-grow: 1; }
.technologies { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.technologies span { background: var(--bg-dark); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border-color); }
.project-links { display: flex; gap: 1rem; margin-top: auto; }
.project-button { background: none; border: 1px solid var(--text-secondary); padding: 8px 16px; border-radius: 5px; color: var(--text-secondary); font-weight: 600; }
.project-button:hover { background: var(--accent-color); color: var(--bg-dark); border-color: var(--accent-color); }
.view-all-cta { text-align: center; margin-top: 3rem; }


/* --- Mini Projects (Homepage) --- */
.mini-project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mini-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light-dark);
    padding: 1.25rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mini-project-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.mini-project-item h4 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.mini-project-item .technologies span {
    font-size: 0.75rem; 
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap; 
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    border-color: var(--accent-color);
}

.email-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.email-link:hover {
    color: var(--accent-hover);
}

/* --- About Page --- */
.about-content .about-text p { font-size: 1.1rem; color: var(--text-secondary); text-align: center; max-width: 800px; margin: 0 auto; }
.skills-section, .education-section { margin-top: 4rem; }
.skills-section h3, .education-section h3 { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skills-grid span { background: var(--bg-light-dark); padding: 8px 15px; border-radius: 5px; font-size: 0.9rem; border: 1px solid var(--border-color); }
.education-item { background: var(--bg-light-dark); padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--accent-color); margin-bottom: 1.5rem; border-top: 1px solid var(--border-color); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.education-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.education-item .institution { font-weight: 700; color: var(--text-secondary); }

/* ================= PROJECT FULL PAGE DESIGN ================= */

.project-full {
    background: var(--bg-light-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 4rem;
    overflow: hidden;
    transition: 0.3s ease;
}

.project-full:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #111; 
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}


/* ===== Improved Compact Footer ===== */

footer { 
    text-align: center; 
    padding: 1.5rem 0;  
    background-color: var(--bg-light-dark);
    border-top: 1px solid var(--border-color); 
}

.footer-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content .social-links {
    margin: 1.5rem 0;
}

.footer-content .social-links a {
    font-size: 1.6rem;
    margin: 0 0.7rem;
    color: var(--text-secondary);
    transition: 0.3s ease;
}

.footer-content .social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-email {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

footer .container {
    padding: 1.5rem 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .container { padding: 4rem 1.5rem; }
    .nav-links { position: fixed; top: 70px; right: 0; height: calc(100vh - 70px); width: 100%; background: var(--bg-dark); flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.3s ease-in-out; }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { margin: 2rem 0; }
    .hamburger { display: block; }
    .hamburger.active .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    #hero-main { flex-direction: column-reverse; text-align: center; min-height: auto; padding: 120px 1.5rem 4rem; gap: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .hero-description { margin-left: auto; margin-right: auto; }
    .hero-image img { width: 250px; height: 250px; }
    .page-section { padding-top: 120px; }
    .lightbox-nav { font-size: 1.5rem; padding: 0.5rem 0.9rem; }
    #lightbox-prev { left: 10px; }
    #lightbox-next { right: 10px; }
    #lightbox-img { max-height: 70vh; }
}
