        :root {
            --bg-primary: #0a192f;
            --bg-secondary: #112240;
            --text-primary: #ccd6f6;
            --text-secondary: #8892b0;
            --accent: #64ffda;
            --accent-hover: #4ad8b3;
            --terminal-bg: #000c24;
            --syntax-var: #ff5f56;
            --syntax-string: #ffbd2e;
            --syntax-property: #27c93f;
            --syntax-comment: #546a90;
            --syntax-function: #c678dd;
            --font-code: 'Fira Code', 'Courier New', monospace;
            --font-main: 'Inter', 'Segoe UI', sans-serif;
        }

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

        body {
            font-family: var(--font-main);
            background-color: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            margin-bottom: 1rem;
        }

        /* Terminal Header */
        .terminal-header {
            background: #1c1c1c;
            border-radius: 8px 8px 0 0;
            padding: 8px 12px;
            display: flex;
            align-items: center;
        }

        .terminal-dots {
            display: flex;
            gap: 8px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot-red {
            background: var(--syntax-var);
        }

        .dot-yellow {
            background: var(--syntax-string);
        }

        .dot-green {
            background: var(--syntax-property);
        }

        .terminal-title {
            flex-grow: 1;
            text-align: center;
            font-family: var(--font-code);
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Navbar */
        nav {
            padding: 1.5rem 0;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.3s ease;
            background-color: rgba(10, 25, 47, 0.8);
            backdrop-filter: blur(10px);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: var(--font-code);
            color: var(--accent);
            font-size: 1.5rem;
            font-weight: bold;
            position: relative;
            transition: all 0.3s ease;
        }

        .logo::before {
            content: "> ";
            opacity: 0;
            transition: all 0.3s ease;
        }

        .logo:hover::before {
            opacity: 1;
        }

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

        .nav-links li {
            position: relative;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-family: var(--font-code);
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

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

        .nav-index {
            color: var(--accent);
            font-size: 0.8rem;
        }

        .mobile-menu {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--text-primary);
        }

        /* Hero section */
        #hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 4rem;
            position: relative;
            overflow: hidden;
        }

        .hero-container {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .matrix-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0.1;
            pointer-events: none;
        }

        .matrix-background canvas {
            width: 100%;
            height: 100%;
        }

        .hero-content h1 {
            font-size: 4rem;
            line-height: 1.1;
            margin-bottom: 1rem;
            position: relative;
        }

        .hero-content h1 span {
            color: var(--accent);
            position: relative;
        }

        .hero-subtitle {
            color: var(--accent);
            font-family: var(--font-code);
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }

        .hero-description {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            max-width: 500px;
            font-size: 1.1rem;
        }

        .animated-cursor {
            display: inline-block;
            width: 10px;
            height: 24px;
            background-color: var(--accent);
            margin-left: 5px;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            font-family: var(--font-code);
            font-size: 0.9rem;
            border: 1px solid var(--accent);
            color: var(--accent);
            background: transparent;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background-color: rgba(100, 255, 218, 0.1);
            z-index: -1;
            transition: all 0.3s ease;
        }

        .btn:hover::before {
            width: 100%;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
        }

        .terminal-window {
            background-color: var(--terminal-bg);
            border-radius: 8px;
            box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            height: 400px;
            position: relative;
            font-family: var(--font-code);
            line-height: 1.5;
        }

        .terminal-content {
            padding: 1.5rem;
            height: calc(100% - 40px);
            overflow-y: auto;
            font-size: 0.9rem;
            position: relative;
        }

        .command-prompt {
            display: flex;
            margin-bottom: 0.5rem;
        }

        .prompt {
            color: var(--accent);
            margin-right: 0.5rem;
        }

        .command {
            color: var(--text-primary);
        }

        .command-output {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            white-space: pre-wrap;
        }

        .loading-bar {
            height: 4px;
            margin: 0.5rem 0 1rem 0;
            background-color: rgba(100, 255, 218, 0.2);
            position: relative;
            overflow: hidden;
            border-radius: 2px;
            width: 100%;
        }

        .loading-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 30%;
            background-color: var(--accent);
            border-radius: 2px;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% {
                left: -30%;
            }
            100% {
                left: 100%;
            }
        }

        .typewriter {
            overflow: hidden;
            border-right: 2px solid var(--accent);
            white-space: nowrap;
            margin: 0 auto;
            letter-spacing: 0.1em;
            animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--accent) }
        }

        .code-snippet {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .code-keyword {
            color: #cc99cd;
        }

        .code-function {
            color: var(--syntax-function);
        }

        .code-string {
            color: var(--syntax-string);
        }

        .code-number {
            color: #f08d49;
        }

        .code-property {
            color: var(--syntax-property);
        }

        .code-comment {
            color: var(--syntax-comment);
            font-style: italic;
        }

        .code-bracket {
            color: #e5c07b;
        }

        /* About Section */
        #about {
            padding: 8rem 0;
            position: relative;
            overflow: hidden;
        }

        .section-title {
            display: flex;
            align-items: center;
            margin-bottom: 3rem;
            width: 100%;
            font-size: 2rem;
            color: var(--text-primary);
            position: relative;
        }

        .section-title::before {
            content: "0" attr(data-num) ".";
            font-family: var(--font-code);
            color: var(--accent);
            font-size: 1.5rem;
            margin-right: 1rem;
        }

        .section-title::after {
            content: "";
            display: block;
            height: 1px;
            width: 300px;
            background-color: rgba(204, 214, 246, 0.2);
            margin-left: 1.5rem;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 3fr 2fr;
            gap: 4rem;
            align-items: center;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
        }

        .about-text a {
            color: var(--accent);
            text-decoration: none;
            position: relative;
        }

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

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

        .skills-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
            list-style: none;
            margin-top: 2rem;
            font-family: var(--font-code);
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .skills-list li {
            position: relative;
            padding-left: 1.5rem;
        }

        .skills-list li::before {
            content: '>';
            position: absolute;
            left: 0;
            color: var(--accent);
        }

        .profile-container {
            position: relative;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }

        .profile-img {
            position: relative;
            border-radius: 5px;
            filter: grayscale(30%) contrast(1.1); /* Reduced grayscale, slightly increased contrast */
            transition: all 0.3s ease;
            width: 100%;
            z-index: 2;
        }
        
        .profile-img:hover {
            filter: none;
        }

        .profile-img-border {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 100%;
            height: 100%;
            border: 2px solid var(--accent);
            border-radius: 5px;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .profile-container:hover .profile-img-border {
            top: 10px;
            left: 10px;
        }

        /* Projects Section */
        #projects {
            padding: 8rem 0;
            position: relative;
        }

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

        .project-card {
            background-color: var(--bg-secondary);
            border-radius: 5px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            position: relative;
            height: auto; /* Change from fixed height to auto */
            min-height: 450px; /* Add a minimum height instead */
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
        }

        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 1.5rem;
        }

        .folder-icon {
            color: var(--accent);
            font-size: 2.5rem;
        }

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

        .project-link {
            color: var(--text-secondary);
            font-size: 1.2rem;
            transition: color 0.2s ease;
        }

        .project-link:hover {
            color: var(--accent);
        }

        .project-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 0 1.5rem 5rem; /* Increase bottom padding */
            position: relative;
        }
        

        .project-title {
            font-size: 1.4rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .project-description {
            color: var(--text-secondary);
            margin-bottom: 2rem; /* Increase margin-bottom */
            font-size: 0.95rem;
            /* Optional: add text truncation */
            display: -webkit-box;
            -webkit-line-clamp: 5; /* Show maximum 5 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            list-style: none;
            font-family: var(--font-code);
            font-size: 0.8rem;
            color: var(--text-secondary);
            position: absolute;
            bottom: 1.5rem;
            left: 1.5rem;
            right: 1.5rem; /* Add right constraint */
        }

        .featured-projects {
            margin-bottom: 5rem;
        }

        .featured-project {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            align-items: center;
            margin-bottom: 6rem;
            position: relative;
        }

        .project-image {
            grid-column: 1 / 7;
            grid-row: 1 / -1;
            position: relative;
            z-index: 1;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            height: 350px;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(70%) grayscale(50%);
            transition: all 0.3s ease;
        }

        .project-image:hover img {
            filter: brightness(100%) grayscale(0%);
        }

        .project-info {
            grid-column: 6 / -1;
            grid-row: 1 / -1;
            z-index: 2;
            background-color: var(--bg-secondary);
            padding: 2rem;
            border-radius: 5px;
            text-align: right;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .project-featured-title {
            font-size: 0.9rem;
            font-family: var(--font-code);
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

        .project-info h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .project-info-description {
            background-color: var(--bg-secondary);
            padding: 1.5rem;
            border-radius: 5px;
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .project-info-tech {
            display: flex;
            justify-content: flex-end;
            list-style: none;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            font-family: var(--font-code);
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .project-info-links {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
        }

        .project-info-link {
            color: var(--text-primary);
            font-size: 1.2rem;
            transition: color 0.2s ease;
        }

        .project-info-link:hover {
            color: var(--accent);
        }

        .featured-project:nth-child(even) .project-image {
            grid-column: 6 / -1;
        }

        .featured-project:nth-child(even) .project-info {
            grid-column: 1 / 8;
            text-align: left;
        }

        .featured-project:nth-child(even) .project-info-tech,
        .featured-project:nth-child(even) .project-info-links {
            justify-content: flex-start;
        }

        /* Skills Section */
        #skills {
            padding: 8rem 0;
            position: relative;
        }

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

        .skill-category {
            background-color: var(--bg-secondary);
            border-radius: 5px;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .skill-category:hover {
            transform: translateY(-10px);
        }

        .skill-category::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-color: var(--accent);
        }

        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .skill-icon {
            color: var(--accent);
            font-size: 1.5rem;
        }

        .skill-list {
            list-style: none;
        }

        .skill-item {
            margin-bottom: 0.8rem;
            color: var(--text-secondary);
            font-family: var(--font-code);
            font-size: 0.9rem;
            position: relative;
            padding-left: 1rem;
            transition: transform 0.2s ease, color 0.2s ease;
        }
        
        .skill-item:before {
            content: '▹';
            position: absolute;
            left: 0;
            color: var(--accent);
        }
        
        .skill-item:hover {
            transform: translateX(5px);
            color: var(--text-primary);
        }

        /* Resume Section */
        #resume {
            padding: 8rem 0;
            position: relative;
        }

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

        .timeline::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: rgba(204, 214, 246, 0.2);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -1px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            width: 50%;
            box-sizing: border-box;
            margin-bottom: 3rem;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            top: 15px;
            border-radius: 50%;
            background-color: var(--accent);
            z-index: 1;
        }

        .left {
            left: 0;
            text-align: right;
        }

        .right {
            left: 50%;
            text-align: left;
        }

        .right::after {
            left: -10px;
        }

        .timeline-content {
            padding: 1.5rem;
            background-color: var(--bg-secondary);
            border-radius: 5px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            transition: transform 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
        }

        .timeline-date {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: rgba(100, 255, 218, 0.1);
            border-radius: 4px;
            font-family: var(--font-code);
            font-size: 0.8rem;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .timeline-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .timeline-subtitle {
            font-size: 1rem;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .timeline-description {
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .download-btn {
            display: block;
            margin: 4rem auto 0;
            padding: 1rem 2rem;
            font-size: 1rem;
            width: 200px;
            text-align: center;
        }

        /* Contact Section */
        #contact {
            padding: 8rem 0;
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .contact-subtitle {
            font-size: 1rem;
            font-family: var(--font-code);
            color: var(--accent);
            margin-bottom: 1.5rem;
        }

        .contact-text {
            color: var(--text-secondary);
            margin-bottom: 3rem;
        }

        /* Footer */
        footer {
            padding: 2rem 0;
            text-align: center;
            color: var(--text-secondary);
            font-family: var(--font-code);
            font-size: 0.9rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
            gap: 2rem;
        }

        .footer-link {
            color: var(--text-secondary);
            transition: color 0.2s ease;
            font-size: 1.2rem;
        }

        .footer-link:hover {
            color: var(--accent);
        }

        .footer-text a {
            color: var(--accent);
            text-decoration: none;
        }

        .social-links {
            position: fixed;
            bottom: 0;
            left: 40px;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            align-items: center;
            z-index: 10;
        }

        .social-links::after {
            content: '';
            display: block;
            width: 1px;
            height: 90px;
            background-color: var(--text-secondary);
            margin-top: 1rem;
        }

        .social-link {
            color: var(--text-secondary);
            font-size: 1.2rem;
            transition: all 0.2s ease;
        }

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

        .email-link {
            position: fixed;
            bottom: 0;
            right: 40px;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            align-items: center;
            z-index: 10;
        }

        .email-link a {
            color: var(--text-secondary);
            font-family: var(--font-code);
            font-size: 0.9rem;
            letter-spacing: 0.1em;
            writing-mode: vertical-rl;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .email-link a:hover {
            color: var(--accent);
            transform: translateY(-3px);
        }

        .email-link::after {
            content: '';
            display: block;
            width: 1px;
            height: 90px;
            background-color: var(--text-secondary);
            margin-top: 1rem;
        }

        /* Responsive */
        @media screen and (max-width: 768px) {
            .hero-container {
                grid-template-columns: 1fr;
            }

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

            .project-image {
                grid-column: 1 / -1;
            }

            .project-info {
                grid-column: 1 / -1;
                text-align: left;
            }

            .featured-project:nth-child(even) .project-image {
                grid-column: 1 / -1;
            }

            .featured-project:nth-child(even) .project-info {
                grid-column: 1 / -1;
            }

            .timeline::after {
                left: 31px;
            }

            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }

            .timeline-item::after {
                left: 21px;
            }

            .left, .right {
                left: 0;
                text-align: left;
            }

            .social-links, .email-link {
                display: none;
            }

            .section-title::after {
                width: 100px;
            }

            .mobile-menu {
                display: block;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                flex-direction: column;
                background-color: var(--bg-secondary);
                padding: 1rem 0;
                gap: 1rem;
                text-align: center;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: clip-path 0.3s ease;
            }

            .nav-links.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Code Animation */
        .typing-animation {
            white-space: nowrap;
            overflow: hidden;
            border-right: 2px solid var(--accent);
            width: 0;
            animation: typing 4s steps(44) 1s normal both, blinking 1s steps(1) infinite;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blinking {
            50% { border-color: transparent }
        }
