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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #e8e8e8;
            background-color: #1a1a1a;
        }

        body.modal-open {
            overflow: hidden;
        }

        /* Navigation */
        nav {
            background-color: #1a1a1a;
            color: #e8e8e8;
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            border-bottom: 1px solid #2a2a2a;
        }

        nav .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #7bed9f;
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 2rem;
        }

        nav a {
            color: #e8e8e8;
            text-decoration: none;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #7bed9f;
        }

        nav a.active {
            color: #7bed9f;
            font-weight: bold;
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            background: none;
            border: none;
            color: #e8e8e8;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 60px; /* Adjust based on navbar height */
                right: -100%;
                width: 100%;
                height: calc(100vh - 60px);
                background-color: rgba(26, 26, 26, 0.95);
                backdrop-filter: blur(10px);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: right 0.3s ease-in-out;
                z-index: 999;
                padding: 2rem 0;
            }

            .nav-links.active {
                right: 0;
            }
            
            nav ul {
               gap: 2rem;
            }
        }

        /* Hero and About Wrapper */
        .hero-about-wrapper {
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
            display: flex;
            gap: 0;
            margin-top: 60px;
            height: calc(100vh - 60px);
            align-items: center;
            padding: 0;
        }

        .hero-about-wrapper > section {
            flex: 1;
            padding: 4rem 2rem;
        }

        /* Hero Section */
        .hero {
            background: transparent;
            color: #e8e8e8;
            text-align: center;
            margin-top: 0;
            border-bottom: none;
            border-right: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: auto;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: #7bed9f;
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            color: #b8b8b8;
        }

        .hero .cta-button {
            display: inline-block;
            background-color: #7bed9f;
            color: #1a1a1a;
            padding: 1rem 2rem;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
        }

        .hero .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(123, 237, 159, 0.3);
            background-color: #5fd68a;
        }

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

        /* Sections */
        section {
            padding: 4rem 2rem;
        }

        section h2 {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #7bed9f;
        }

        /* About Section */
        /* About Section */
        .about {
            background: transparent;
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: auto;
        }

        .about-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .about-content img {
            width: 500px;
            max-width: 100%;
            height: auto;
            aspect-ratio: 1/1;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 2rem;
            border: 5px solid #7bed9f;
            box-shadow: 0 0 20px rgba(123, 237, 159, 0.2);
        }

        .about-content p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #b8b8b8;
        }

        /* Experience & Education Sections */
        .experience, .education {
            background-color: #1a1a1a;
        }

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

        .timeline::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: #3d5a48;
            top: 0;
            bottom: 0;
            left: 20px;
            margin-left: -1px;
        }

        .timeline-item {
            position: relative;
            background-color: #2d2d2d;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            margin-left: 50px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid #353535;
        }



        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: 100%;
            background-color: #7bed9f;
            border: none;
            top: 20px;
            border-radius: 40%;
            z-index: 1;
            left: -41px;
        }

        .timeline-date {
            font-weight: bold;
            color: #7bed9f;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .timeline-content h3 {
            margin-bottom: 0.2rem;
            color: #e8e8e8;
        }

        .timeline-content h4 {
            color: #b8b8b8;
            margin-bottom: 1rem;
            font-weight: normal;
        }

        .timeline-content ul {
            list-style-position: inside;
            padding-left: 1rem;
        }

        .timeline-content li {
            margin-bottom: 0.5rem;
            color: #b8b8b8;
        }

        .disabled-link {
            color: #666 !important;
            border-color: #666 !important;
            pointer-events: none;
            text-decoration: none;
        }

        /* Skills Section */
        .skills {
            background-color: #2a2a2a;
        }

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

        .skill-card {
            background: #2d2d2d;
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid #353535;
        }



        .skill-card h3 {
            color: #7bed9f;
            margin-bottom: 1rem;
        }

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

        .skill-card li {
            padding: 0.5rem 0;
            color: #b8b8b8;
        }

        /* Projects Section */
        .projects {
            background-color: #1a1a1a;
        }

        .project-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            background-color: transparent;
            color: #b8b8b8;
            border: 2px solid #3d5a48;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            color: #7bed9f;
            border-color: #7bed9f;
        }

        .filter-btn.active {
            background-color: #7bed9f;
            color: #1a1a1a;
            border-color: #7bed9f;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        /* Hide class for filtering */
        .project-card.hide {
            display: none;
        }

        .project-card {
            background: #2d2d2d;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid #353535;
            display: flex;
            flex-direction: column;
            height: 100%;
        }



        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background-color: #353535;
            flex-shrink: 0;
        }

        .project-card .contain-img {
            object-fit: contain;
            padding: 10px;
        }

        .project-card .project-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .project-card h3 {
            color: #e8e8e8;
            margin-bottom: 1rem;
        }

        .project-card p {
            color: #b8b8b8;
            margin-bottom: 1rem;
        }

        .project-card .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .project-card .tag {
            background-color: #3d5a48;
            color: #7bed9f;
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.9rem;
        }

        .project-links {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            margin-top: auto;
        }

        .project-card a {
            display: inline-block;
            background-color: transparent;
            color: #7bed9f;
            text-decoration: none;
            font-weight: bold;
            padding: 0.5rem 1rem;
            border: 2px solid #7bed9f;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            text-align: center;
        }

        .project-card a:hover {
            background-color: #7bed9f;
            color: #1a1a1a;
            text-decoration: none;
        }

        /* Contact Section */
        .contact {
            background: #2a2a2a;
            color: #e8e8e8;
            border-top: 2px solid #3d5a48;
        }

        .contact h2 {
            color: #7bed9f;
        }

        .contact-content {
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-content p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: #b8b8b8;
        }

        .contact-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .contact-links a {
            color: #7bed9f;
            font-size: 2.5rem;
            text-decoration: none;
            padding: 0;
            background-color: transparent;
            transition: transform 0.3s, color 0.3s;
            margin: 0 1rem;
        }

        .contact-links a:hover {
            transform: translateY(-5px);
            color: #5fd68a;
            background-color: transparent;
        }

        /* Footer */
        footer {
            background-color: #1a1a1a;
            color: #b8b8b8;
            text-align: center;
            padding: 2rem;
            border-top: 1px solid #2a2a2a;
        }

        footer a {
            color: inherit;
            text-decoration: underline;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            nav .container {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 0;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
            }

            /* Tighten horizontal padding across all sections */
            section {
                padding: 3rem 1rem;
            }

            .container {
                padding: 0 1rem;
            }

            .hero-about-wrapper {
                flex-direction: column;
                height: auto;
                align-items: stretch;
            }

            .hero {
                border-right: none;
                border-bottom: 2px solid #3d5a48;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            section h2 {
                font-size: 2rem;
                margin-bottom: 2rem;
            }

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

            /* Mobile Modal Adjustments */
            .modal-container {
                width: 90%;
                max-height: 85vh;
            }

            .modal-header, .modal-body {
                padding: 1.5rem;
            }

            .modal-header h2 {
                font-size: 1.5rem;
            }

            /* Mobile Timeline — hide decorations, use full width */
            .timeline::after {
                display: none;
            }

            .timeline-item {
                margin-left: 0;
            }

            .timeline-item::after {
                display: none;
            }
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 2000;
            display: none; /* Changed from flex to none to prevent auto-open */
            justify-content: center;
            align-items: center;
            padding: 1rem;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        @keyframes scaleOut {
            from {
                transform: scale(1);
                opacity: 1;
            }
            to {
                transform: scale(0.9);
                opacity: 0;
            }
        }

        .modal-overlay.closing {
            animation: fadeOut 0.3s ease-out forwards;
        }

        .modal-overlay.closing .modal-container {
            animation: scaleOut 0.3s ease-out forwards;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.9);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Modal Container */
        .modal-container {
            background: #2a2a2a;
            border-radius: 15px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            /* overflow-y: auto; Removed for flex layout */
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid #3a3a3a;
            animation: scaleIn 0.3s ease-out;
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden; /* Clips the progress bar corners */
        }

        /* Modal Header */
        .modal-header {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            border-bottom: 2px solid #7bed9f;
            color: #e8e8e8;
            padding: 1.5rem 2rem;
            border-radius: 15px 15px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.8rem;
            color: #7bed9f;
        }

        .close-btn {
            background: none;
            border: none;
            color: #e8e8e8;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transform-origin: center center;
            transition: background-color 0.3s, transform 0.3s, color 0.3s;
        }

        .close-btn:hover {
            background-color: rgba(123, 237, 159, 0.1);
            color: #7bed9f;
            transform: rotate(90deg);
        }

        .close-btn:focus {
            outline: 2px solid #7bed9f;
            outline-offset: 2px;
        }

        /* Modal Body */
        .modal-body {
            padding: 2rem;
            overflow-y: auto;
            flex: 1;
        }

        /* Verification Notice */
        .verification-notice {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background-color: rgba(123, 237, 159, 0.1);
            border: 1px solid rgba(123, 237, 159, 0.3);
            border-radius: 8px;
            padding: 0.875rem 1rem;
            margin-bottom: 1.5rem;
        }

        .verification-notice i {
            color: #7bed9f;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .verification-notice p {
            color: #b8b8b8;
            font-size: 0.9rem;
            margin: 0;
            line-height: 1.4;
        }

        /* Progress Bar */
        .progress-bar-container {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background-color: rgba(123, 237, 159, 0.2);
            border-radius: 0 0 15px 15px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #7bed9f 0%, #5fd68a 100%);
            width: 0%;
            transition: width 5s linear;
            box-shadow: 0 0 10px rgba(123, 237, 159, 0.5);
        }

        /* Form Groups */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #e8e8e8;
            font-weight: 600;
        }

        .form-group .required {
            color: #ff6b6b;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem;
            background-color: #1a1a1a;
            color: #e8e8e8;
            border: 2px solid #3a3a3a;
            border-radius: 8px;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #7bed9f;
            box-shadow: 0 0 0 3px rgba(123, 237, 159, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #666;
        }

        /* Error Messages */
        .error-message {
            display: block;
            color: #ff6b6b;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            min-height: 1.2rem;
        }

        .form-group.has-error input,
        .form-group.has-error textarea {
            border-color: #ff6b6b;
        }

        /* Form Actions */
        .form-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 2rem;
        }

        .btn-primary,
        .btn-secondary {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .btn-primary {
            background: #7bed9f;
            color: #1a1a1a;
            min-width: 150px;
        }

        .btn-primary:hover:not(:disabled) {
            background: #5fd68a;
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(123, 237, 159, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn-secondary {
            background: transparent;
            color: #7bed9f;
            border: 2px solid #7bed9f;
        }

        .btn-secondary:hover {
            background: rgba(123, 237, 159, 0.1);
            transform: translateY(-2px);
        }

        .btn-primary:focus,
        .btn-secondary:focus {
            outline: 2px solid #7bed9f;
            outline-offset: 2px;
        }

        /* Loading State */
        .spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(26, 26, 26, 0.3);
            border-top-color: #1a1a1a;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Form Status Messages */
        .form-status {
            margin-top: 1rem;
            margin-bottom: 2rem;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 500;
            text-align: center;
        }

        .form-status.success {
            background-color: rgba(123, 237, 159, 0.2);
            color: #7bed9f;
            border: 1px solid #7bed9f;
        }

        .form-status.error {
            background-color: rgba(255, 107, 107, 0.2);
            color: #ff6b6b;
            border: 1px solid #ff6b6b;
        }

        /* Prevent body scroll when modal is open */
        body.modal-open {
            overflow: hidden;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .modal-container {
                max-height: 95vh;
                margin: 0.5rem;
            }

            .modal-header {
                padding: 1rem 1.5rem;
            }

            .modal-header h2 {
                font-size: 1.5rem;
            }

            .modal-body {
                padding: 1.5rem;
            }

            .form-actions {
                flex-direction: column-reverse;
            }

            .btn-primary,
            .btn-secondary {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .modal-overlay {
                padding: 0.5rem;
            }

            .modal-header {
                padding: 1rem;
            }

            .modal-body {
                padding: 1rem;
            }
        }

        /* Utility Classes */
        .hidden {
            display: none;
        }

