:root {
    /* Light Mode Variables */
    --bg-color: #f9fafb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --header-height: 80px;
    --container-width: 1200px;
}

body.dark-mode {
    --bg-color: #111827;
    --text-color: #f9fafb;
    --text-light: #9ca3af;
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --secondary-color: #34d399;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Reusable Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-color);
    transition: background-color 0.3s;
}

body.dark-mode header {
    background-color: rgba(17, 24, 39, 0.8);
    box-shadow: 0 1px 0 var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: var(--border-color);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-light);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.skills-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar .bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

/* Skill Bar Colors */
.skill-bar .bar span.flutter {
    background-color: #02569B;
    background-image: linear-gradient(to right, #02569B, #0175C2);
}

.skill-bar .bar span.android {
    background-color: #3DDC84;
    background-image: linear-gradient(to right, #3DDC84, #42FA92);
}

.skill-bar .bar span.dart {
    background-color: #0175C2;
    background-image: linear-gradient(to right, #0175C2, #40C4FF);
}

.skill-bar .bar span.kotlin {
    background-color: #7F52FF;
    background-image: linear-gradient(to right, #7F52FF, #C711E1);
}

.skill-bar .bar span.html {
    background-color: #E34F26;
    background-image: linear-gradient(to right, #E34F26, #F06529);
}

.skill-bar .bar span.css {
    background-color: #264DE4;
    background-image: linear-gradient(to right, #264DE4, #2965F1);
}

.skill-bar .bar span.javascript {
    background-color: #F7DF1E;
    background-image: linear-gradient(to right, #F7DF1E, #E5C300);
}

.skill-bar .bar span.react {
    background-color: #61DAFB;
    background-image: linear-gradient(to right, #61DAFB, #00B7E6);
}

.skill-bar .bar span.node {
    background-color: #339933;
    background-image: linear-gradient(to right, #339933, #6B8E23);
}

.skill-bar .bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.skill-bar .bar span.active {
    transform: scaleX(1);
}

/* Projects Section - Featured Row Layout */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-card {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: visible;
    /* Allow hover effects to pop */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
    /* Alternating layout */
}

.project-img-container {
    flex: 1;
    height: 400px;
    /* Taller for mobile screenshots */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-color);
    /* Background for letterboxing */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevent distortion, show full image */
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-info {
    flex: 1;
    padding: 0 1rem;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tags span {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive adjustments for the new layout */
@media (max-width: 900px) {

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .project-img-container {
        width: 100%;
        height: 300px;
    }

    .project-info {
        padding: 0;
        width: 100%;
    }
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 4rem;
}

/* Resume Page Styles */
.resume-wrapper {
    padding-top: var(--header-height);
    background-color: var(--bg-color);
    min-height: 100vh;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.resume-header h1 {
    font-size: 2.5rem;
}

.resume-paper {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
    transition: background-color 0.3s;
}

.resume-top {
    text-align: center;
    margin-bottom: 2rem;
}

.resume-profile h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.resume-profile .role {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.resume-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.resume-socials a {
    color: var(--text-color);
    font-size: 0.9rem;
}

.resume-socials a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.resume-section {
    margin: 2.5rem 0;
}

.resume-section h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.resume-section h3 i {
    color: var(--primary-color);
}

.resume-item {
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.item-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.item-header .date,
.item-header .tech {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.company {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.resume-item ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-color);
}

.resume-item ul li {
    margin-bottom: 0.3rem;
}

.resume-section .skills-grid .skill-category {
    margin-bottom: 1rem;
}

.resume-section .skills-grid h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .resume-paper {
        padding: 1.5rem;
    }

    .resume-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-light);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 900px) {

    .container,
    .section {
        padding: 50px 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.5rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-controls {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    pointer-events: none;
}

.prev,
.next {
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    pointer-events: auto;
}

.prev:hover,
.next:hover {
    background-color: var(--primary-color);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

/* Utility Class for Hidden Projects */
.hidden-project {
    display: none !important;
}/ *   B l o g   S e c t i o n   * /  
 . b l o g - g r i d   {  
         d i s p l a y :   g r i d ;  
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 3 0 0 p x ,   1 f r ) ) ;  
         g a p :   2 . 5 r e m ;  
 }  
  
 . b l o g - c a r d   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - c a r d - b g ) ;  
         b o r d e r - r a d i u s :   1 6 p x ;  
         o v e r f l o w :   h i d d e n ;  
         b o x - s h a d o w :   v a r ( - - s h a d o w ) ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s ,   b o x - s h a d o w   0 . 3 s ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
 }  
  
 . b l o g - c a r d : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 8 p x ) ;  
         b o x - s h a d o w :   v a r ( - - s h a d o w - h o v e r ) ;  
 }  
  
 . b l o g - i m g   {  
         h e i g h t :   2 0 0 p x ;  
         o v e r f l o w :   h i d d e n ;  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . b l o g - i m g   i m g   {  
         w i d t h :   1 0 0 % ;  
         h e i g h t :   1 0 0 % ;  
         o b j e c t - f i t :   c o v e r ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 5 s   e a s e ;  
 }  
  
 . b l o g - c a r d : h o v e r   . b l o g - i m g   i m g   {  
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ;  
 }  
  
 . b l o g - c a t e g o r y   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   1 r e m ;  
         r i g h t :   1 r e m ;  
         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         c o l o r :   w h i t e ;  
         p a d d i n g :   0 . 3 r e m   0 . 8 r e m ;  
         b o r d e r - r a d i u s :   2 0 p x ;  
         f o n t - s i z e :   0 . 8 r e m ;  
         f o n t - w e i g h t :   5 0 0 ;  
         b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ;  
 }  
  
 . b l o g - c o n t e n t   {  
         p a d d i n g :   1 . 5 r e m ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         f l e x - g r o w :   1 ;  
 }  
  
 . b l o g - m e t a   {  
         f o n t - s i z e :   0 . 8 5 r e m ;  
         c o l o r :   v a r ( - - t e x t - l i g h t ) ;  
         m a r g i n - b o t t o m :   0 . 8 r e m ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
 }  
  
 . b l o g - c o n t e n t   h 3   {  
         f o n t - s i z e :   1 . 4 r e m ;  
         m a r g i n - b o t t o m :   0 . 8 r e m ;  
         c o l o r :   v a r ( - - t e x t - c o l o r ) ;  
         l i n e - h e i g h t :   1 . 3 ;  
 }  
  
 . b l o g - c o n t e n t   p   {  
         c o l o r :   v a r ( - - t e x t - l i g h t ) ;  
         f o n t - s i z e :   0 . 9 5 r e m ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
         f l e x - g r o w :   1 ;  
 }  
  
 . r e a d - m o r e   {  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         f o n t - w e i g h t :   6 0 0 ;  
         f o n t - s i z e :   0 . 9 5 r e m ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
         t r a n s i t i o n :   g a p   0 . 3 s ;  
 }  
  
 . r e a d - m o r e : h o v e r   {  
         g a p :   0 . 8 r e m ;  
 }  
  
 / *   S c r o l l   R e v e a l   A n i m a t i o n s   * /  
 . r e v e a l   {  
         o p a c i t y :   0 ;  
         t r a n s f o r m :   t r a n s l a t e Y ( 3 0 p x ) ;  
         t r a n s i t i o n :   a l l   1 s   e a s e ;  
 }  
  
 . r e v e a l . a c t i v e   {  
         o p a c i t y :   1 ;  
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;  
 }  
 