:root {
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
    --text-color: #333;
    --light-color: #f4f6f9;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-color);
    scroll-behavior: smooth;
}

nav {
    background: var(--primary-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #cfd8dc;
}

.hero {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: var(--shadow);
    animation: fadeIn 2s ease-in-out;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.section {
    background: var(--white);
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skills-container {
    max-width: 600px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-name {
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 30px;
    height: 25px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    height: 100%;
    color: var(--white);
    text-align: right;
    padding-right: 10px;
    line-height: 25px;
    border-radius: 30px;
    animation: fillProgress 2s ease-in-out forwards;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h3 {
    margin-top: 0;
    color: var(--text-color);
}

.project-card p {
    color: var(--text-color);
}

.project-card .project-links a {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--secondary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: var(--white);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: var(--target-width); }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}
/* Resume Section Styles */
.resume-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resume-download {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--secondary-color);
}

.resume-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.resume-preview embed {
    flex-grow: 1;
    width: 100%;
    border: none;
}

.preview-note {
    text-align: center;
    padding: 0.5rem;
    background: #f5f5f5;
    margin: 0;
}
/* Add to existing styles */
.hidden {
    display: none;
}

.resume-preview {
    transition: all 0.3s ease;
    height: 0;
    opacity: 0;
}

.resume-preview.active {
    height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Dark mode variables */
:root {
    --bg-color: #f4f6f9;
    --text-color: #333;
    --card-bg: #fff;
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --card-bg: #1e1e1e;
    --primary-color: #2196f3;
    --secondary-color: #64b5f6;
}

/* Update existing styles to use variables */
body {
    background: var(--bg-color);
    color: var(--text-color);
}

.section {
    background: var(--card-bg);
}

/* Theme toggle button */
#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}
body, .section, button, a {
    transition: background-color 0.3s ease, color 0.3s ease;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background-color: #2d2d2d;
    color: #f5f5f5;
    border-color: #444;
}

[data-theme="dark"] .progress-bar {
    background-color: #333;
}
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;  /* Slightly brighter than pure white */
    --card-bg: #1e1e1e;
    --primary-color: #64b5f6;  /* Lighter blue for better visibility */
    --secondary-color: #90caf9;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}
