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

:root {
    --primary-navy: #1e3a8a;
    --secondary-navy: #1e40af;
    --light-navy: #3b82f6;
    --dark-navy: #1e293b;
    --navy-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --navy-gradient-reverse: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dark: #0f172a;
    --accent-gold: #fbbf24;
    --background-dark: #0f172a;
    --surface-dark: #1e293b;
    --surface-light: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 10px 25px -3px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--background-dark);
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, var(--primary-navy) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, var(--light-navy) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, var(--secondary-navy) 0%, transparent 50%);
    opacity: 0.3;
    animation: backgroundFloat 20s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(2deg); }
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

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

.name-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-1px);
}

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

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

/* Main content */
.main-content {
    padding-top: 80px;
}

/* Hero section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.title-line {
    display: inline-block;
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.3s both;
}

.title-divider {
    color: var(--accent-gold);
    margin: 0 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 1.2s both;
}

.floating-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(30, 58, 138, 0.4);
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-20px); }
}

.energy-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--accent-gold));
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Experience section */
.experience-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--background-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--navy-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--navy-gradient);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    z-index: 2;
}

.timeline-content {
    width: calc(50% - 2rem);
}

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

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

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.role-info {
    margin: 1rem 0;
}

.role-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.role-location, .role-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-location i, .role-period i {
    color: #2ecc71;
    width: 16px;
}

.role-description {
    margin-top: 1rem;
}

.role-bullets {
    list-style: none;
    padding-left: 1.5rem;
    text-align: left;
}

.role-bullets li {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    text-align: left;
}

.role-bullets li::before {
    content: "•";
    color: #2ecc71;
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.job-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.company-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* margin-bottom: 1rem; */
}

.company-name i {
    color: #2ecc71;
    font-size: 1rem;
    width: 16px;
}

.role-badge {
    display: inline-block;
    background: var(--navy-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.company-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Contact section */
.contact-section {
    padding: 8rem 2rem;
    background: var(--background-dark);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(30, 58, 138, 0.4);
}

.linkedin-connect {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.linkedin-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.linkedin-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy-gradient);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.linkedin-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Footer */
.footer {
    background: var(--surface-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .experience-timeline::before {
        left: 2rem;
    }
    
    .timeline-marker {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
        margin-right: 0 !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }
    
    .linkedin-connect {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .section-header,
    .contact-content {
        padding: 0 1rem;
    }
    
    .floating-card {
        padding: 2rem;
        transform: none;
    }
    
    .floating-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-divider {
        display: block;
        margin: 0.5rem 0;
    }
    
    .contact-card {
        padding: 2rem 1rem;
    }
}

.skills-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.skills-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.skills-tabs::-webkit-scrollbar {
    display: none;
}

.skill-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tab.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid #2ecc71;
}

.skill-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.skill-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-bottom: 1rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}


.skill-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.skill-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
}


.skill-level-fill {
    height: 100%;
    background: #2ecc71;
    border-radius: 2px;
    transition: width 0.5s ease;
}


.skill-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between columns */
    padding: 20px;
}


.skill-column {
    background-color: orange;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    flex: 1; /* Allow columns to grow and shrink */
    min-width: 150px; /* Minimum width for each column */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.skill-column-title {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.skill-grid-item {
    background-color: #000;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.skill-grid-item:hover {
    background-color: #e0e0e0;
}

details {
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

summary img {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}


.toggle-content {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 5px;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.project-tag {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-tag:hover {
  background: rgba(46, 204, 113, 0.25);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.project-info {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-company, .project-location, .project-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.project-company {
    color: #2ecc71;
    font-weight: 500;
}

.project-company i, .project-location i, .project-period i {
    font-size: 1rem;
    width: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: auto;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
}

.quick-info-grid .grid-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quick-info-grid .grid-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-info-grid .grid-item i {
    font-size: 1.5rem;
    color: #2ecc71;
    margin-bottom: 0.75rem;
}

.quick-info-grid .grid-item h3 {
    color: #ffffff;
    font-size: 1.1rem;
    /* margin-bottom: 0.75rem; */
    font-weight: 600;
}

.quick-info-grid .grid-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .quick-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

.profile-image-container {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.back-to-top:hover {
    background: rgba(46, 204, 113, 1);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


.login-theme-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.09);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.login-theme-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 6px 18px rgba(102,126,234,0.18);
    transform: translateY(-2px) scale(1.03);
}

.logout-theme-btn {
    background: linear-gradient(135deg, #dc3545 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220,53,69,0.09);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.logout-theme-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #dc3545 100%);
    box-shadow: 0 6px 18px rgba(220,53,69,0.18);
    transform: translateY(-2px) scale(1.03);
}