/* --- Custom Properties (Variables) --- */
:root {
    --primary-color: #ff8c00; /* Dark Orange */
    --secondary-color: #0d6efd; /* Bootstrap Primary Blue */
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Slab', serif;
}

/* --- Global Styles --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Offset for fixed navbar */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--font-secondary);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden; /* For AOS animations */
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.navbar .navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('your-background-image.jpg') no-repeat center center/cover; /* Optional: add a subtle background image */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero h2 {
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary-color);
}

.typing-text {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.profile-pic-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    border-radius: 50%;
    max-width: 350px;
    height: auto;
    border: 5px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
    transition: transform 0.3s ease-in-out;
}

.profile-pic-container:hover .profile-pic {
    transform: scale(1.05);
}

/* --- About Section --- */
#about {
    background-color: var(--surface-color);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* --- Projects Section --- */
.project-card {
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Skills Section --- */
#skills {
    background-color: var(--surface-color);
}
.skill-item {
    padding: 20px;
    transition: transform 0.3s ease;
}
.skill-item:hover {
    transform: scale(1.1);
}
.skill-item i {
    font-size: 4rem;
    color: var(--primary-color);
}
.skill-item p {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Certificates Table --- */
.table {
    border-radius: 10px;
    overflow: hidden; /* Ensures border-radius is applied to table corners */
}
.table th {
    background-color: var(--primary-color);
    color: #111;
}
.table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.table a:hover {
    text-decoration: underline;
}

/* --- Contact / Footer --- */
footer {
    background-color: #1e1e1e;
}

.social-icons a {
    color: var(--text-color);
    font-size: 2.5rem;
    margin: 0 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .profile-pic {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero {
        text-align: center;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-primary, .btn-secondary {
        width: 80%;
    }
}