/* --- GLOBAL STYLES & VARIABLES (Deep Dark Blue Mode) --- */
:root {
    --primary-color: #1f6feb;          /* Deep Blue Accent */
    --secondary-color: #58a6ff;        /* Lighter Blue Highlight */
    --text-color: #e6e6e6;             /* Light Gray Text */

    --background-color: #050b1a;       /* Deep Navy */
    --card-background: #0f1c2e;        /* Card Navy */
    --subtle-background: #11263c;      /* Slightly lighter navy */

    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.9);
    --border-radius: 12px;
    --font-family: 'Poppins', sans-serif;
}

/* --- LIGHT MODE VARIABLES (JS Toggles This) --- */
body.light-mode {
    --primary-color: #007bff;
    --secondary-color: #4CAF50;
    --text-color: #333;
    --background-color: #f9f9f9;
    --card-background: #ffffff;
    --subtle-background: #eee;
    --shadow-deep: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- BASE & UTILITIES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    transition: background-color 0.4s, color 0.4s;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8em;
    font-weight: 900;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 50px;
    font-weight: 300;
}

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-deep);
}

/* --- NAVIGATION --- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--card-background);
    box-shadow: var(--shadow-deep);
    padding: 18px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--secondary-color);
}

.nav-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 20px;
}

/* --- HERO SECTION --- */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    min-height: 75vh;
}

.hero-text h1 {
    font-size: 4.5em;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-color);
}

.accent-text {
    color: var(--primary-color);
}

.profile-pic {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 5px;
    border: 5px solid var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

.cta-button:hover {
    background: #3d8bfd;
    transform: translateY(-2px);
}

/* --- METRICS SECTION --- */
.metrics-section {
    padding: 30px 0;
    background-color: var(--card-background);
    border-top: 1px solid #0e2940;
    border-bottom: 1px solid #0e2940;
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.metric-number {
    font-size: 2.8em;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.9em;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SERVICES SECTION --- */
.services-bg {
    background-color: var(--subtle-background);
}

.services-list {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.4);
}

.service-index {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

/* --- SKILLS SECTION --- */
.skills-circles-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.skill-circle {
    text-align: center;
}

.circle-progress {
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    background: var(--card-background);
    border: 6px solid var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(31, 111, 235, 0.25);
}

.skills-category-group {
    margin-top: 60px;
}

.skills-category-group h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--card-background);
    padding-bottom: 5px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-tag {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 400;
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding: 20px 0;
    width: 80%;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 0;
}

.timeline-item.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--secondary-color);
    z-index: 10;
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-item.left .timeline-dot {
    right: -7.5px;
}

.timeline-item.right .timeline-dot {
    left: -7.5px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.timeline-item.left .timeline-content ul {
    text-align: right;
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(31, 111, 235, 0.15);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(31, 111, 235, 0.4);
    background-color: #142840;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-tech {
    background-color: var(--background-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-top: 10px;
    display: inline-block;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-details h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details .icon {
    margin-right: 10px;
    color: var(--primary-color);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #1a2a3d;
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
}

#contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--card-background);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #0e2940;
    font-size: 0.9em;
}

.back-to-top {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 20px;
}
