/*Body Code Changes Begins*/
body {
    margin: 0;
    font-family: 'Michroma', sans-serif;
    background: radial-gradient(circle at center, #fcfcfc 0%, #eaeaea 60%, #bfbfbf 100%);
    font-size: clamp(16px, 2vw, 20px); /* scales with screen width */
    color: black;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}
/*Body Code Changes Begins*/

/*Dark Mode Toggle for Body Color Begins*/
body.dark-mode {
    background: black;
    color: #f0f0f0;
}
body.dark-mode a {
    color: #ddd;
}
/*Dark Mode Toggle for Body Color Ends*/

/*Mouse Scrolling Button Code Begins*/
.scroll-indicator {
    position: fixed; /* to position it in the container */
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*animation: fadeIn 2s ease forwards;*/
    animation: fadeToggle 10s infinite;
}
.scroll-indicator p {
    margin-top: 5px;
    font-size: 14px;
    color: black; /* now black */
    letter-spacing: 1px;
}
.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid black; /* black border */
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: black; /* black wheel */
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelMove 1.5s infinite;
}
@keyframes wheelMove {
    0% {top: 8px;opacity: 1;}
    50% {top: 20px;opacity: 0.5;}
    100% {top: 8px;opacity: 1;}
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes fadeToggle {
    0% {opacity: 1;}
    50% {opacity: 0;}
    100% {opacity: 1;}
}
/*Mouse Scrolling Button Code Ends*/
/*Mouse Dark Mode Css Code Begins*/
body.dark-mode .scroll-indicator p {
    color: white;
}
body.dark-mode .mouse {
    border-color: white;
}
body.dark-mode .wheel {
    background: white;
}
/*Mouse Dark Mode Css Code Ends*/

/*Flex Container Properties based on each sectional content */
.flex-container.flex-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-align: center; /* ✅ Ensures multiline text is centered */
}

.flex-intro h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 48px); /* ✅ Responsive font size */
    line-height: 1.2;
}

.flex-intro p {
    margin-top: 10px;
    font-size: clamp(14px, 4vw, 20px); /* ✅ Responsive font size */
    max-width: 90%;
    text-align: center;
    line-height: 1.6;
    color: #555;
    padding: 0 10px;
}

.dark-mode .flex-intro p {
    color: #ddd;
}

.gradient-wrapper {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    min-height: 100vh;
}

.dark-mode .gradient-wrapper {
    /*background: radial-gradient(circle at center, #2C3E50 0%, #000000 100%);*/
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    color: #fff;
}

.gradient-wrapper .about-btn{
    display: block;
    margin: 0 auto;
}

.flex-intro-2 {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    height: auto;
    min-height: 100vh;
}

.about-btn {
    border: 1px solid black;
    background: transparent;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.dark-mode .about-btn{
    background-color: #000; /* Black background */
    border-color: white;
    color: white;

}
.about-btn:hover {
    background: black;
    color: white;
}

.big-title {
    font-size: 30px;
    margin: 10px 0;
    text-align: center;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #555;
    text-align: justify;
}
.dark-mode .subtitle{
    color: white;
}

.info-card-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* stretch to fill grid row */
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    margin: 0;
}

.dark-mode .info-card-right{
    background: radial-gradient(circle at center, #1A1D2B 0%, #050509 100%);
}

.info-card-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.info-card-right h3 {
    margin-top: 0;
}

.info-card-right p {
    font-size: 16px;
    color: #333;
}

.info-card-left{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* stretch to fill grid row */
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    margin: 0;
}

.dark-mode .info-card-left{
    background: radial-gradient(circle at center, #1F1F2E 0%, #0A0A0F 100%);
}

.info-card-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.info-card-left h3 {
    margin-top: 0;
}

.info-card-left p {
    font-size: 18px;
    color: #333;
}
.dark-mode .info-card-left p{
    color: white;
}

.flex-intro p{
    margin-top: 10px;
}

.card-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.left-column {
    flex: 2;
    min-width: 300px;
}

.right-column {
    flex: 2.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 per row */
    grid-auto-rows: 1fr;                    /* Equal height */
    gap: 40px;
}

.card-icon {
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.dark-mode .tag{
    background-color: black;
    border-color: white;
    color: white;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*Portfolio css button begins*/
.portfolio-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.portfolio-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

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

.dark-mode .portfolio-btn{
    background-color: black;
    border: 2px solid #ffffff;
}
/*Portfolio css button ends*/

.theme-toggle-btn {
    position: fixed;
    top: 25px;
    right: 75px; /* Adjust this number so it sits just left of your menu button */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 999;
}

.theme-toggle-btn svg {
    display: block;
}

/*Projects Index Css Begins*/
.featured-projects-section {
    text-align: center;
    padding: 60px 20px;
}
.section-title {
    font-size: 28px;
    margin-bottom: 10px;
}
.section-subtitle {
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 16px;
}
.dark-mode .section-subtitle{
    color: white;
}

.projects-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ensures spacing between top and bottom */
    height: 100%; /* make all cards equal height */
    padding: 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.dark-mode .project-card{
    background: radial-gradient(circle at center, #1F1F2E 0%, #0A0A0F 100%);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.badge {
    display: inline-block;
    background: #eee;
    color: #555;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
}
.dark-mode .badge{
    background: radial-gradient(circle at center, #1F1F2E 0%, #0A0A0F 100%);
    color: white;
}

.project-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.project-links {
    margin-top: auto; /* Pushes this section to bottom */
}

.project-links a {
    margin-right: 12px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    color: black;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-links .live-demo {
    background: black;
    color: white;
}

.project-links a:hover {
    opacity: 0.8;
}

.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: clamp(60px, 10vw, 90px);
}

.view-all-btn {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.dark-mode .view-all-btn{
    background-color: black;
    border: 2px solid #ffffff;
}

/*Projects Index Css Ends*/