:root {
    --primary: #4db6ac; /* Changed from light green to teal */
    --secondary: #0a192f;
    --light: #ccd6f6;
    --dark: #1e2a47;
    --gray: #8892b0;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Calibre', 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    background-color: var(--secondary);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    height: var(--nav-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    display: inline-block;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    transition: var(--transition);
}

.theme-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.theme-btn .fa-sun {
    opacity: 0;
}

.theme-btn:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: var(--nav-height);
}

.greeting {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.bio {
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--gray);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn:hover {
    background-color: rgba(77, 182, 172, 0.1);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: var(--gray);
    animation: scrollAnimation 2s infinite;
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    background-color: var(--secondary);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-right: 1.5rem;
    font-family: inherit; /* Keep your original font */
}

.section-line {
    flex: 1;
    height: 1px;
    background-color: var(--dark);
    opacity: 0.3;
}

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

.project-card {
    background-color: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0.7;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

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

.folder-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.project-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tech img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
}

.project-tech img:hover {
    filter: none;
    transform: scale(1.2);
}

/* Light mode overrides */
body.light-mode .projects {
    background-color: var(--light-bg);
}

body.light-mode .project-card {
    background-color: var(--light-card);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .project-title,
body.light-mode .project-links a {
    color: var(--dark-text);
}

body.light-mode .project-desc {
    color: var(--dark-gray);
}


/* Add these to your :root variables */
:root {
    --light-bg: #f8f9fa;
    --light-card: #ffffff;
    --dark-text: #212529;
    --dark-gray: #6c757d;
}


/* About Section */
.about {
    padding: 8rem 2rem;
    background-color: var(--secondary);
}

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

.about-intro h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}



.about-intro p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

.wave {
    animation: wave 2s infinite;
    display: inline-block;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.skills-section {
    margin-top: 3rem;
}

.skills-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--light);
    position: relative;
    display: inline-block;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
}

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

.skill-category {
    background: rgba(30, 42, 71, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--light);
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.tech-icon span {
    font-size: 0.8rem;
    color: var(--gray);
    opacity: 0;
    transition: var(--transition);
}

.tech-icon:hover img {
    transform: scale(1.2);
}

.tech-icon:hover span {
    opacity: 1;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    max-width: 350px;
    margin-left: auto;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
}

.image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    z-index: 1;
    transition: var(--transition);
}

.image-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 2px, transparent 3px);
    background-size: 20px 20px;
    bottom: -30px;
    right: -30px;
    z-index: 0;
    opacity: 0.3;
}

.image-wrapper:hover .profile-img {
    filter: none;
}

.image-wrapper:hover .image-border {
    top: 15px;
    left: 15px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 3rem;
        display: flex;
        justify-content: center;
    }
    
    .image-wrapper {
        margin: 0 auto;
    }
}

/* Light Mode Styles */
body.light-mode .about {
    background-color: var(--light-bg);
}

body.light-mode .skill-category {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .skills-title,
body.light-mode .category-title {
    color: var(--dark-text);
}

body.light-mode .about-intro p {
    color: var(--dark-gray);
}

body.light-mode .tech-icon span {
    color: var(--dark-gray);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-card {
    background: var(--dark);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    max-width: 500px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--light);
}

.contact-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: var(--secondary);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    width: 180px;
    overflow: hidden;
}

.cta-btn span {
    transition: transform 0.3s ease;
}

.arrow-wrapper {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.arrow::before,
.arrow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--secondary);
    right: 0;
}

.arrow::before {
    transform: rotate(45deg) translate(1px, -3px);
}

.arrow::after {
    transform: rotate(-45deg) translate(1px, 3px);
}

.cta-btn:hover {
    box-shadow: 0 5px 20px rgba(77, 182, 172, 0.4);
}

.cta-btn:hover .arrow-wrapper {
    transform: translateX(5px);
}

.cta-btn:hover span {
    transform: translateX(-5px);
}

.contact-social {
    margin-top: 3rem;
}

.contact-social h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.contact-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.github {
    background: rgba(110, 84, 148, 0.1);
    color: #6e5494;
}

.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
}

.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-card span {
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-decoration {
    position: relative;
    height: 100%;
}

.decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        max-width: 100%;
    }
    
    .contact-decoration {
        display: none;
    }
}

/* Light Mode Styles */
body.light-mode .contact {
    background-color: var(--light-bg);
}

body.light-mode .contact-card,
body.light-mode .social-card {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .contact-card h3,
body.light-mode .contact-social h3,
body.light-mode .social-card span {
    color: var(--dark-text);
}

body.light-mode .contact-card p {
    color: var(--dark-gray);
}
/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

.copyright {
    margin-top: 0.5rem;
}

/* Animations */
@keyframes scrollAnimation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Light Mode Styles */
body.light-mode {
    --secondary: #f8f9fa;
    --light: #343a40;
    --dark: #e9ecef;
    --gray: #6c757d;
}

body.light-mode .glass-nav {
    background-color: rgba(248, 249, 250, 0.85);
}

body.light-mode .theme-btn .fa-moon {
    opacity: 0;
}

body.light-mode .theme-btn .fa-sun {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: var(--nav-height);
        background-color: var(--secondary);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .burger {
        display: block;
    }

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

    .image-wrapper {
        margin: 2rem auto 0;
    }

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

/* Burger Menu Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.hero-image .image-wrapper {
    width: 350px;
    height: 350px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-image .image-border {
    position: absolute;
    width: 105%;
    height: 105%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), transparent);
    z-index: 1;
    animation: rotateBorder 20s linear infinite;
}

.hero-image:hover img {
    filter: none;
}

@keyframes rotateBorder {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.greeting {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
    line-height: 1.1;
}

.title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.bio {
    max-width: 500px;
    margin-bottom: 2rem;
    color: var(--gray);
}

/* Responsive Design for Hero */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        align-items: center;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .hero-image .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .bio {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-image .image-wrapper {
        width: 200px;
        height: 200px;
    }
}

a {
  text-decoration: none;
}
