/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: transparent;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-secondary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #E8BCB9;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #E8BCB9;
    color: #1f2937;
}

.btn-primary:hover {
    background-color: #D4A5A2;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50% 45% 55% 40% / 40% 55% 45% 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: wiggle 8s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        border-radius: 50% 45% 55% 40% / 40% 55% 45% 50%;
    }
    25% {
        border-radius: 45% 50% 40% 55% / 55% 40% 50% 45%;
    }
    50% {
        border-radius: 55% 40% 50% 45% / 45% 50% 40% 55%;
    }
    75% {
        border-radius: 40% 55% 45% 50% / 50% 45% 55% 40%;
    }
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #000000;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1f2937;
}

.education h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-2px);
}

.education-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.education-item h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.education-item h4 a:hover {
    color: #000000;
    text-decoration: underline;
}

.education-item .degree {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.education-item .specialization {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.education-item .gpa {
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.25rem;
}

.education-item .duration {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: right;
}

.education-item .details {
    color: #1f2937;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #000000;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    text-align: left;
    padding-left: 2rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-content h3 a {
    color: #E8BCB9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-content h3 a:hover {
    color: #D4A5A2;
    text-decoration: underline;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.timeline-content .duration {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #1f2937;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background-color: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-right: 1rem;
}

.project-status {
    background: #E8BCB9;
    color: #1f2937;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-duration {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.project-description {
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #000000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #000000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
}

/* Certifications Section */
.certifications {
    background-color: #f8fafc;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.certification-card:hover {
    transform: translateY(-2px);
}

.certification-card i {
    font-size: 3rem;
    color: #000000;
    margin-bottom: 1rem;
}

.certification-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.certification-card a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #000000;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #4b5563;
    font-size: 0.9rem;
}

.contact-item p a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
        right: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .project-card,
    .skill-category,
    .certification-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
} 

/* CSS Variables for Theme */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #f8fafc;
    --text-primary: #ffffff;
    --text-secondary: #1f2937;
    --text-muted: #9ca3af;
    --accent-color: #E8BCB9;
    --accent-hover: #D4A5A2;
    --border-color: rgba(255, 255, 255, 0.2);
    --card-bg: white;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --navbar-bg: rgba(0, 0, 0, 0.9);
}

/* Make headings white in dark mode */
:root .section-title,
:root .timeline-content h3 {
    color: #fff !important;
}

[data-theme="light"] {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --accent-color: #E8BCB9;
    --accent-hover: #D4A5A2;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: white;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    z-index: 1001 !important;
    background: var(--accent-color) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid var(--accent-color) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Fallback icon if Font Awesome doesn't load */
.theme-toggle::before {
    content: '🌙';
    font-size: 1.2rem;
    display: none;
}

.theme-toggle:not(:has(i))::before {
    display: block;
} 

/* Light mode button and profile border fixes */
[data-theme="light"] .btn-secondary {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
[data-theme="light"] .btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}
[data-theme="light"] .profile-image {
    border: 4px solid var(--accent-color);
} 

/* End of light mode button and profile border fixes */ 

/* Correct dark mode: Only Skills, Experience, and Get in Touch headings are white */
[data-theme="dark"] #skills .section-title,
[data-theme="dark"] #experience .section-title,
[data-theme="dark"] #contact .section-title {
    color: #fff !important;
}
[data-theme="dark"] .section-title {
    color: #1f2937 !important;
}

/* Light mode: All section headings are black */
[data-theme="light"] .section-title {
    color: #1f2937 !important;
} 

[data-theme="dark"] .timeline::before,
[data-theme="dark"] .timeline-content::before {
    background: #fff !important;
} 

/* THEME-SPECIFIC SKILL HEADING COLOR (FORCE OVERRIDE) */
[data-theme="dark"] .skill-category h3 {
    color: #1f2937 !important;
}
[data-theme="light"] .skill-category h3 {
    color: #1f2937 !important;
} 

/* Black & White Contact Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto; background: rgba(0,0,0,0.4);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 32px 28px 24px 28px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  font-family: 'Inter', sans-serif;
  color: #111;
}
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1.5px solid #111;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #111;
  transition: border 0.2s, box-shadow 0.2s;
  resize: none;
  font-family: inherit;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border: 1.5px solid #000;
  outline: none;
  box-shadow: 0 0 0 2px #0001;
  background: #fff;
  color: #111;
}
#contactForm button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 4px;
}
#contactForm button[type="submit"]:hover {
  background: #222;
  transform: translateY(-2px) scale(1.02);
}
#contactModal h2 {
  text-align: center;
  margin-bottom: 18px;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
}
.close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #222;
}
#formStatus {
  margin-top: 10px;
  font-size: 1rem;
  color: #000;
  text-align: center;
  min-height: 24px;
} 

/* Project Skill Filter Bar */
.project-skill-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.project-skill-filter .filter-btn {
  background: #fff;
  color: #000;
  border: 1.5px solid #000;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
  outline: none;
}
.project-skill-filter .filter-btn.active,
.project-skill-filter .filter-btn:hover {
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
  transform: translateY(-2px) scale(1.04);
} 