/* Variables */
:root {
    /* Colors */
    --color-primary: #006d77;
    --color-secondary: #FF6B6B;
    --color-accent: #ffd166;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-light-gray: #e9ecef;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Permanent Marker', cursive;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Other */
    --border-radius: 8px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

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

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    text-align: center;
    position: relative;
}

.section-icon {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: var(--spacing-xs) auto;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-gray);
}

.text-link {
    color: var(--color-secondary);
    font-weight: 600;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.highlight {
    color: var(--color-secondary);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 249, 250, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    position: relative;
    z-index: 2;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}



.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(226, 149, 120, 0.2);
}

.shape-2 {
    bottom: 20px;
    left: 150px;
    width: 200px;
    height: 200px;
    background: url('varun.jpeg') no-repeat center center / cover;
    border-radius: 50%;
    overflow: hidden;
}




.shape-3 {
    top: 50%;
    right: 20%;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 109, 119, 0.3);
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text.full-width {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background-color: var(--color-light-gray);
    background-image: url('varun.jpg');
    background-size: cover;
    background-position: center;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.highlight-item i {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

/* Running Timeline Section */
.running {
    background-color: var(--color-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
}

.timeline-start {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/*
.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary);
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 50%;
}
*/

.timeline-start p {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 20px;
    height: 4px;
    background-color: var(--color-primary);
}

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

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


.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    border: 2px solid var(--color-white);
    z-index: 2;
}

.timeline-item:nth-child(odd)::after {
    right: -50px;
}

.timeline-item:nth-child(even)::after {
    left: -50px;
}

/*
.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}
*/

.timeline-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-xs);
}

.timeline-distance {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-time {
    font-weight: 600;
}

.timeline-end {
  position: relative;
  text-align: center;
  margin-top: 2rem;
}

.timeline-end .timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.timeline-end p {
  background-color: var(--color-primary);
  color: var(--color-white);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}


/* Finance/Wealth OS Section */
.finance {
    background-color: var(--color-white);
}

.wealth-os-content {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wealth-os-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1.1rem;
}

.wealth-os-content p:first-of-type {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.wealth-os-content p:last-of-type {
    font-style: italic;
    border-left: 3px solid var(--color-secondary);
    padding-left: var(--spacing-sm);
}

/* Projects Section */
.projects {
    background-color: var(--color-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}



.project-card {
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
        color: var(--color-white);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card.featured {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.project-card.featured h3,
.project-card.featured p,
.project-card.featured .project-tags span {
    color: var(--color-white);
}


.project-image {
    height: 200px;
    background-color: var(--color-light-gray);
    background-size: cover;
    background-position: center;
}

.featured .project-image {
    height: 100%;
}

.project-content {
    padding: var(--spacing-md);
}

.project-card h3 {
  color: var(--color-accent); /* subtle highlight using your accent color */
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}



.project-description {
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.project-tag {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

/* Books Section */
.reading {
    background-color: var(--color-white);
}

.books-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-md);
    scrollbar-width: none;
}

.books-carousel::-webkit-scrollbar {
    display: none;
}

.book {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
}

.book-cover {
    height: 250px;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.book-cover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.book-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Connect Section */
.connect {
    background-color: var(--color-light);
}

.connect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.contact-item i {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-white);
}

.footer-text {
    max-width: 500px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-accent);
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    
    .featured .project-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: rgba(255, 255, 255, 0.8); /* semi-transparent white */
    backdrop-filter: blur(10px); /* blur effect for frosted glass */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease; /* smooth open */
    box-shadow: var(--shadow-md);
    border-radius: 10px 0 0 10px;
    padding: 2rem 1rem;
    opacity: 0; /* start hidden */
    z-index: 1;
}

.nav-links a {
    font-size: 1.25rem;
    color: var(--color-primary);
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.nav-links a:hover {
    background-color: var(--color-light-gray); /* soft hover */
    color: var(--color-secondary);
}


.nav-links.active {
    transform: translateX(0);
    opacity: 1; /* fade in */
}
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item .timeline-dot {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 30px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 22px;
        right: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .books-carousel {
        gap: var(--spacing-sm);
    }
    
    .book {
        width: 140px;
    }
    
    .book-cover {
        height: 200px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

.fade-in.delay-3 {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #fcefcf; /* Softer yellowish shade */
  color: var(--color-dark);
  font-weight: 600;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: fit-content;
}

.project-link:hover {
  background-color: var(--color-accent); /* or try #ffe78a for hover */
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .side-quests {
    padding: 1rem;
  }

  .quest-card {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  min-height: auto; /* Remove forced tallness */
}


.quest-card h3 {
  font-size: 1.25rem; /* smaller heading */
  word-wrap: break-word; /* allow long words/titles to wrap */
  overflow-wrap: break-word; /* ensure compatibility */
  hyphens: auto; /* if needed, hyphenate on break */
}


  .quest-card p {
    font-size: 1rem; /* slightly smaller paragraph */
  }
}

@media (max-width: 768px) {
  .side-quests {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .quest-card {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    min-height: auto;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .project-card {
    width: 100%;
    min-height: auto;
    padding: 1rem;
    box-sizing: border-box;
    text-align: left;
  }

  .project-card h3 {
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .project-card p {
    font-size: 1rem;
  }
}
