/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0e1829;
    --secondary-color: #333;
    --background-color: #fff;
    --hover-background-color: #f4f4f46b;
    --tag-background-color: #ea4c12bd;
    --button-hover-color: #553C9;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --base-font-size: 16px;
    --heading-font-size: 2rem;
    --hero-color: #fff;
    --subheading-font-size: 1.5rem;
    --paragraph-line-height: 1.8;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var (--secondary-color);
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

header {
    position: sticky;
    top: 0;
    background-color: white; /* Ensure the background color matches your design */
    z-index: 1000; /* Ensure it stays above other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for better visibility */
}
header h1 {
    margin: 0;
}
nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
nav a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}
nav a:hover {
    background: var(--hover-background-color);
}
nav a.active {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Hero section */
.hero {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    background: url('Design.png') no-repeat center center/cover;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var (--hero-color);
    text-align: center;
    margin-top: 60px; /* Adjust for fixed header */
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    margin: 0;
    animation: fadeIn 2s ease-in-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 2rem 0;
}

/* Two column grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

section {
    background: var(--background-color);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    margin-bottom: 3rem;
}
section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    color: var(--background-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}
.button:hover {
    background-color: var(--button-hover-color);
}
.project {
    background: #f9f9f9;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
}
.project:nth-child(odd) {
    background: #e9e9e9;
}
.contact-section {
    background: var(--background-color);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    grid-column: 1;
    grid-row: 1; /* Make it span both rows like personal-projects did */
}
.contact-section h2 {
    margin-bottom: 1rem;
}
.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.contact-section .button {
    font-size: 1.2rem;
    padding: 15px 30px;
}
footer {
    background: var(--background-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}
footer a {
    color: var(--secondary-color);
    margin: 0 10px;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}
footer a:hover {
    color: var (--primary-color);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.skills, .experience {
    background: var(--background-color);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
.skills h2, .experience h2 {
    margin-top: 0;
}
.skills ul, .experience ul {
    list-style: none;
    padding: 0;
}
.skills li, .experience li {
    background: var(--background-color);  /* Changed from #f9f9f9 */
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
}
.skills li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.skill-rating {
  margin-left: 1rem;
}
.ribbon {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color) ; /* Light gray */
    color: var(--background-color);
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}
.ribbon a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}
.ribbon a:hover {
    text-decoration: underline;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s;
}
.btn-primary:hover {
    background-color: var(--button-hover-color);
}
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: rgba(0, 123, 255, 0.4); /* Add transparency */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s;
}
#scrollToTopBtn:hover {
    background-color: rgba(0, 86, 179, 0.8); /* Add transparency */
}
/* form related classes */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 0 0 0; /* Changed from 'margin: 0 auto' to align left */
    padding: 24px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0069ff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #0069ff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #0051c3;
}

.tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.2rem 0.5rem;
    margin: 0.2rem;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: var(--tag-background-color);
}

.skill-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 2px;
  border: 0px solid #999;
  background-color: transparent;
}
.skill-box.filled {
  background-color: #31aa29;
}

:root {
    --primary-color: #122f6b;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
}

/* Skills Section */
.skills-container, .learning-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skills-list, .learning-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.skills-list li, .learning-list li {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.skills-list li:hover, .learning-list li:hover {
    transform: translateX(5px);
}

.skills-list strong, .learning-list strong {
    flex: 0 0 200px;
}

.progress-indicator {
    display: flex;
    gap: 4px;
}

.progress-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.progress-box.filled {
    background-color: var(--primary-color);
}

.skill-rating {
    display: flex;
    gap: 3px;
    align-items: center;
}

.skill-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: transparent;
    transition: all 0.2s ease;
}

.skill-box.filled {
    background-color: transparent; /* Change the background color to match the filled color, set transparent by default */
    border-color: transparent; /* Change the border color to match the filled color, set transparent by default */
}

/* Add progress percentage for learning items */
.learning-list li {
    position: relative;
}

.learning-list li::after {
    content: attr(data-progress) '%';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #dfa410;
}

/* Dark theme support */
[data-theme="dark"] .skills-list li,
[data-theme="dark"] .learning-list li {
    background: #2a2a2a;
}

[data-theme="dark"] .progress-box {
    border-color: var(--primary-color);
}

[data-theme="dark"] .progress-box.filled {
    background-color: var(--primary-color);
}

/* Make it responsive */
@media (max-width: 768px) {
    .skills-list li, .learning-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skills-list strong, .learning-list strong {
        flex: none;
    }
}

/* Projects Section */
.projects-grid {
    display: none;
}

.project {
    display: none;
}

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dark theme support */
[data-theme="dark"] .project {
    background: #2a2a2a;
}

[data-theme="dark"] .skill-box {
    border-color: #fff;
}

[data-theme="dark"] .skill-box.filled {
    background-color: #fff;
}

.skills-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.skills {
    grid-column: 1;
    grid-row: 1;
}

.learning-now {
    grid-column: 2;
    grid-row: 1;
}

#personal-projects {
    grid-column: 1;
    grid-row: 1 / 3; /* This makes it span both rows */
}

@media (max-width: 900px) {
    .skills-learning-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .contact-section,
    .skills,
    .learning-now {
        grid-column: 1;
        grid-row: 1;
    }
}

.calendly-inline-widget {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Make it responsive for mobile devices */
@media (max-width: 768px) {
    .skills-learning-grid {
        grid-template-columns: 1fr;
    }
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 300px;
    z-index: 999;
}

.popup.show {
    display: block;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

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

#social-links a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: #333;
    text-decoration: none;
}

#social-links a:hover {
    color: #0069ff;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.sticky-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.sticky-header p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero {
    margin-top: 100px; /* Adjust based on header height */
    height: 400px;
    background: url('Designer-3.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--hero-color);
    text-align: center;
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 0.75rem 1rem;
    }

    .sticky-header h1 {
        font-size: 1.2rem;
    }

    .sticky-header p {
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 80px;
        height: 300px;
    }
}

.skills,
.learning-now {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.skills-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-container li {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.skills-container li:last-child {
    margin-bottom: 0;
}

.skills-container li strong {
    flex: 1;
    min-width: 120px;
}

.skill-rating {
    display: flex;
    gap: 4px;
}

.skill-box {
    width: 20px;
    height: 8px;
    background: #e9ecef;
    border-radius: 2px;
}

.skill-box.filled {
    background: #e66c08d8;
}

/* New form styles */
.contact-form {
    max-width: 600px;
    margin: 0 0 0 0; /* Changed from 'margin: 0 auto' to align left */
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #0069ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background-color: #0069ff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0051c2;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}