:root {
    --primary-color: #ff8c00;       /* Orange */
    --primary-hover: #e67e00;       /* Darker Orange */
    --bg-color: #121212;            /* Deep Dark Background */
    --card-bg: #1e1e1e;             /* Lighter Dark for cards */
    --text-color: #e0e0e0;          /* Light Grey Text */
    --text-muted: #a0a0a0;
    --heading-color: #ffffff;
    --border-color: #333333;
    --nav-bg: rgba(10, 10, 10, 0.95);
}

/* --- Global Resets & Typography --- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* --- Utilities --- */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--primary-color);
    background-color: rgba(255, 140, 0, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 140, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
}

.avatar-image {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    object-fit: cover;
}

.avatar-image-large {
    width: 120px;
    height: 120px;
}

/* --- Cards (About, Projects, Profile) --- */
.about-thumb, .profile-thumb, .project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.about-thumb:hover, .profile-thumb:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.section-title-wrap {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.about-thumb .avatar-image {
    width: 60px;
    height: 60px;
}

/* --- Projects Specific --- */
.project-card {
    padding: 0; /* Remove padding for image flush */
    overflow: hidden;
}

.project-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.project-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    align-self: center;
}

.project-link:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.project-link.disabled {
    background-color: #444;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Profile Section Styling --- */
.profile-body p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 0;
}

.profile-body p:last-child {
    border-bottom: none;
}

.profile-small-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 20px;
}

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

/* --- Footer --- */
.site-footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    text-align: center;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Loader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}