/* Root Theme Variables */
:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #0077b5;
    --border-color: #ddd;
    --card-bg: #f9f9f9;
    --primary-color: #0056b3;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --chip-bg: #e0e0e0;
    --chip-text: #333;
    --chip-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --link-color: #0077cc;
    --hover-color: #00418a;
    --success-bg: #d4edda;
    --success-text: #155724;
}

.dark {
    --bg: #121212;
    --text: #f5f5f5;
    --accent: #66ccff;
    --border: #333;
    --card-bg: #1e1e1e;
    --chip-bg: #2e2e2e;
    --chip-text: #f5f5f5;
    --primary-color: #2196f3;
    --hover-color: #64b5f6;
    --border-color: #333;
    --card-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    --chip-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);

}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0 1rem;
    transition: background-color 0.4s, color 0.4s;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--hover-color);
}

/* Navbar */
header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    background-color: var(--bg);
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

header nav a {
    color: var(--text);
    transition: 0.3s ease;
}

header nav a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}

.toggle-wrapper {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--border);
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 2rem 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.highlight {
    color: var(--accent);
}

/* Typewriter Cursor Animation */
#typewriter-text {
    font-size: 2.5rem;
    font-weight: 600;
    min-height: 3rem;
}

.cursor {
    font-weight: bold;
    animation: blink-caret 0.7s steps(1) infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Social Links */
.social-links a {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    margin: 0 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.dark .social-links a {
    color: var(--accent);
}

.social-links a:hover {
    border-color: var(--accent);
}
.social-links a:hover {
    border-color: var(--accent);
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .toggle-wrapper {
        position: fixed;
        top: 1rem;
        right: 1rem;
        header nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .toggle-wrapper {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    }
}
.profile-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 5rem;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pulse-ring, .static-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    z-index: 1;
}

.pulse-ring {
    animation: pulse 2.5s infinite;
    opacity: 0.6;
}

.static-ring {
    opacity: 1;
    border: 2px solid var(--accent);
    transform: scale(1.2); /* Make it slightly bigger than the profile image */
    z-index: 0;
}
@keyframes pulse {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
    100% {
        transform: scale(5.0);
        opacity: 0;
    }
}
.section-block {
    margin-bottom: 3rem;
}

.custom-list {
    list-style: disc;
    margin-left: 1.5rem;
    line-height: 1.8;
}
/* 404 Page Styling */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg);
    color: var(--text);
    padding: 2rem 1rem;
    animation: fadeIn 1s ease-in-out;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1rem;
    color: var(--text);
    max-width: 500px;
    margin-bottom: 2rem;
}

.error-page a {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
    background-color: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.error-page a:hover {
    background-color: #005fa3;
    text-decoration: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.btn-download-cv {
  background-color: #007BFF; /* Blue background */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for background and transform */
}

.btn-download-cv:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: scale(1.1); /* Slight enlargement on hover */
}

/* --- Responsive Enhancements --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .about-container {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .profile-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 1rem 0;
    }

    .hero {
        padding: 2rem 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        width: 100%;
    }

    .toggle-wrapper {
        top: 1rem;
        right: 1rem;
    }

    .profile-wrapper {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .profile-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 3rem;
    }

    .error-page h2 {
        font-size: 1.6rem;
    }

    .error-page p {
        font-size: 0.95rem;
    }

    .btn-download-cv {
        font-size: 15px;
        padding: 8px 16px;
    }

    .social-links a {
        margin: 0 0.3rem;
    }
}