/* CSS Variables for consistent theming */
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --text-color: #333;
            --white: #ffffff;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        /* Global Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--white);
            overflow-x: hidden;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 40px;
            position: relative;
            color: var(--dark-color);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--primary-color);
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: #2980b9;
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        /* Preloader Styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader-content {
            text-align: center;
        }

        .loader-logo {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
            letter-spacing: 2px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Loader Logo Image Styles - Updated with larger size */
        .loader-logo-img {
            height: 180px; /* Increased from 120px */
            width: auto;
            margin-bottom: 10px;
        }

        .loader-text {
            font-size: 1.2rem;
            color: var(--dark-color);
            margin-bottom: 20px;
        }

        .loader-bar {
            width: 150px;
            height: 4px;
            background-color: var(--light-color);
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        .loader-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 30%;
            height: 100%;
            background-color: var(--primary-color);
            animation: loader 1.5s infinite ease-in-out;
        }

        @keyframes loader {
            0% {
                left: -30%;
            }
            100% {
                left: 100%;
            }
        }

        /* Header/Navigation Styles - Updated for perfect search bar alignment */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 120px;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            padding: 0 20px;
        }

        /* Logo on the left */
        .logo {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            height: 100%;
        }

        .logo-img {
            height: 90px;
            width: auto;
            transition: var(--transition);
            display: block;
        }

        .logo:hover .logo-img {
            transform: scale(1.05);
        }

        /* Navigation links in the middle */
        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            flex: 1;
            justify-content: center;
            align-items: center;
        }

        .nav-links li {
            margin: 0 15px;
        }

        .nav-link {
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 500;
            position: relative;
            transition: var(--transition);
            display: flex;
            align-items: center;
            padding: 5px 0;
            white-space: nowrap;
        }

        .nav-link i {
            margin-right: 8px;
            font-size: 1.1rem;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        /* Search container on the far right */
        .search-container {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            position: relative;
            height: 100%;
            padding-left: 15px; /* Small gap from last menu item */
        }

        .search-toggle {
            background: none;
            border: none;
            color: var(--dark-color);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .search-toggle:hover {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }

        /* Search box that expands from right to left */
        .search-box {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            overflow: hidden;
            transition: width 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            background-color: var(--white);
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .search-box.active {
            width: 250px;
            padding: 5px;
            border: 1px solid var(--primary-color);
        }

        .search-input {
            width: 100%;
            padding: 8px 15px;
            border: none;
            border-radius: 20px;
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
            outline: none;
            background: transparent;
        }

        .search-clear {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--dark-color);
            font-size: 0.9rem;
            cursor: pointer;
            opacity: 0;
            transition: var(--transition);
            padding: 5px;
        }

        .search-clear.visible {
            opacity: 1;
        }

        .search-clear:hover {
            color: var(--accent-color);
        }

        /* Hamburger menu */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            z-index: 15;
            margin-left: 15px;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: var(--dark-color);
            margin: 3px 0;
            transition: var(--transition);
        }

        /* Enhanced Search Results Styles */
        .search-results {
            position: absolute;
            top: 100%;
            right: 0;
            width: 400px;
            max-height: 500px;
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            overflow-y: auto;
            z-index: 1001;
            display: none;
            margin-top: 10px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .search-results.active {
            display: block;
        }

        .search-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid var(--light-color);
            background-color: var(--light-color);
            border-radius: 8px 8px 0 0;
        }

        .search-results-title {
            font-weight: 600;
            color: var(--dark-color);
        }

        .search-results-close {
            background: none;
            border: none;
            color: var(--dark-color);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-results-close:hover {
            color: var(--accent-color);
        }

        .search-results-content {
            padding: 10px 0;
        }

        .search-result-item {
            padding: 15px;
            border-bottom: 1px solid var(--light-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background-color: rgba(52, 152, 219, 0.1);
        }

        .search-result-item h4 {
            color: var(--primary-color);
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .search-result-item p {
            color: var(--text-color);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .search-result-category {
            display: inline-block;
            background-color: var(--primary-color);
            color: var(--white);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            margin-top: 5px;
        }

        .search-result-relevance {
            float: right;
            color: var(--primary-color);
            font-size: 0.8rem;
            font-weight: 500;
        }

        .no-results {
            text-align: center;
            padding: 20px;
            color: var(--text-color);
        }

        .search-highlight {
            background-color: #fff59d;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: 500;
        }

        .search-history {
            padding: 10px 15px;
            border-bottom: 1px solid var(--light-color);
        }

        .search-history-title {
            font-size: 0.85rem;
            color: var(--dark-color);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .search-history-items {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .search-history-item {
            background-color: var(--light-color);
            color: var(--dark-color);
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-history-item:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }

        .search-suggestions {
            padding: 10px 15px;
            border-bottom: 1px solid var(--light-color);
        }

        .search-suggestions-title {
            font-size: 0.85rem;
            color: var(--dark-color);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .search-suggestion-item {
            padding: 5px 0;
            color: var(--text-color);
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-suggestion-item:hover {
            color: var(--primary-color);
        }

        .search-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .search-loading-spinner {
            width: 30px;
            height: 30px;
            border: 3px solid var(--light-color);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Hero Section Styles - Updated padding to match new header height */
        .hero {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80') center/cover no-repeat;
            color: var(--white);
            padding-top: 120px; /* Match new navbar height */
        }

        .hero-content {
            max-width: 800px;
            padding: 0 20px;
        }

        .hero-title {
            font-size: 3.5rem;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-subtitle {
            font-size: 1.8rem;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-description {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-buttons {
            opacity: 0;
            transform: translateY(20px);
        }

        .hero-buttons .btn {
            margin: 0 10px;
        }

        /* Intro Animation for Hero Section */
        .animate-fade-in {
            animation: fadeInUp 1s ease forwards;
        }

        .hero-title {
            animation-delay: 0.2s;
        }

        .hero-subtitle {
            animation-delay: 0.4s;
        }

        .hero-description {
            animation-delay: 0.6s;
        }

        .hero-buttons {
            animation-delay: 0.8s;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* About Section Styles */
        .about-content {
            display: flex;
            gap: 50px;
            align-items: center;
            margin-bottom: 40px;
        }

        .about-photo {
            flex: 0 0 300px;
        }

        .profile-img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .profile-img:hover {
            transform: scale(1.03);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .about-text {
            flex: 1;
        }

        .about-text p {
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .soft-skills {
            margin-bottom: 40px;
        }

        .soft-skills h3 {
            text-align: center;
            margin-bottom: 30px;
            color: var(--dark-color);
            font-size: 1.5rem;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .skill-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background-color: var(--light-color);
            border-radius: 10px;
            transition: var(--transition);
        }

        .skill-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .skill-item i {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        .resume-download {
            text-align: center;
            margin-top: 20px;
        }

        /* Education Section Styles */
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 100%;
            background-color: var(--primary-color);
        }

        .timeline-item {
            position: relative;
            width: 50%;
            padding: 20px 40px;
            opacity: 0;
            transform: translateY(30px);
        }

        .timeline-item:nth-child(odd) {
            left: 0;
            text-align: right;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline-icon {
            position: absolute;
            top: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;
        }

        .timeline-item:nth-child(odd) .timeline-icon {
            right: -25px;
        }

        .timeline-item:nth-child(even) .timeline-icon {
            left: -25px;
        }

        .timeline-content {
            background-color: var(--white);
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .timeline-content h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .timeline-content h4 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        /* Skills Section Styles - Updated with Horizontal Categories and Vertical Skills */
        .skills-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .skills-category {
            flex: 1;
            min-width: 300px;
            max-width: 350px;
            background-color: var(--white);
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 25px;
            transition: var(--transition);
        }

        .skills-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .skills-category h3 {
            margin-bottom: 20px;
            color: var(--dark-color);
            font-size: 1.3rem;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
        }

        .skills-icons-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .skill-icon-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-radius: 8px;
            background-color: var(--light-color);
            transition: var(--transition);
        }

        .skill-icon-item:hover {
            background-color: rgba(52, 152, 219, 0.2);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        .skill-icon-item i {
            font-size: 2rem;
            margin-right: 15px;
            color: var(--primary-color);
            min-width: 40px;
            text-align: center;
        }

        .skill-icon-item span {
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--dark-color);
        }

        /* Certificates Section Styles */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .certificate-card {
            background-color: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 30px 20px;
        }

        .certificate-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .certificate-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .certificate-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .certificate-card p {
            color: var(--text-color);
        }

        /* Projects Section Styles */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .project-card {
            background-color: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .project-image {
            height: 200px;
            background-color: var(--light-color);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .project-image i {
            font-size: 4rem;
            color: var(--primary-color);
        }

        .project-content {
            padding: 25px;
        }

        .project-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--dark-color);
        }

        .project-content p {
            margin-bottom: 20px;
            color: var(--text-color);
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }

        .project-tech span {
            background-color: var(--light-color);
            color: var(--primary-color);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        /* Project buttons styling */
        .project-buttons {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .btn-demo, .btn-code {
            padding: 8px 15px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .btn-demo {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-demo:hover {
            background-color: #2980b9;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        .btn-code {
            background-color: var(--dark-color);
            color: white;
        }

        .btn-code:hover {
            background-color: #1a252f;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
        }

        /* Add ripple effect on button click */
        .btn-demo:active, .btn-code:active {
            transform: translateY(1px);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        /* Add icon animation on hover */
        .btn-demo:hover i, .btn-code:hover i {
            transform: scale(1.2);
        }

        /* Activities Section Styles */
        .activities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .activity-card {
            background-color: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 30px 20px;
        }

        .activity-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .activity-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .activity-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .activity-card p {
            color: var(--text-color);
        }

        /* Contact Section Styles */
        .contact-content {
            display: flex;
            gap: 50px;
        }

        .contact-info {
            flex: 1;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
        }

        .contact-item i {
            font-size: 2rem;
            color: var(--primary-color);
            width: 50px;
            height: 50px;
            background-color: var(--light-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .contact-item h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--dark-color);
        }

        .contact-form {
            flex: 1;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        /* Footer Styles - Updated hover color */
        footer {
            background-color: var(--dark-color);
            color: var(--white);
            padding: 40px 0;
            text-align: center;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .social-links {
            display: flex;
            gap: 20px;
        }

        .social-link {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            font-size: 1.5rem;
            transition: var(--transition);
            text-decoration: none;
        }

        .social-link:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        /* Back to Top Button */
        #backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: var(--shadow);
        }

        #backToTop.show {
            opacity: 1;
            visibility: visible;
        }

        #backToTop:hover {
            background-color: #2980b9;
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(52, 152, 219, 0.4);
        }

        /* Animation on scroll */
        .fade-in {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-out {
            opacity: 0;
            transform: translateY(30px);
        }

        .slide-in-left {
            opacity: 1;
            transform: translateX(0);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .slide-out-left {
            opacity: 0;
            transform: translateX(-50px);
        }

        .slide-in-right {
            opacity: 1;
            transform: translateX(0);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .slide-out-right {
            opacity: 0;
            transform: translateX(50px);
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .nav-links li {
                margin: 0 10px;
            }
            
            .search-box.active {
                width: 220px;
            }
        }

        @media (max-width: 992px) {
            header {
                height: 100px;
            }
            
            .logo-img {
                height: 70px;
            }
            
            .nav-links li {
                margin: 0 8px;
            }
            
            .nav-link {
                font-size: 0.9rem;
            }
            
            .nav-link i {
                font-size: 1rem;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .about-photo {
                flex: 0 0 auto;
                width: 250px;
                margin: 0 auto;
            }
            
            .contact-content {
                flex-direction: column;
            }
            
            .skills-container {
                flex-direction: column;
                align-items: center;
            }
            
            .skills-category {
                max-width: 500px;
                width: 100%;
            }
            
            .search-box.active {
                width: 200px;
            }
            
            .search-results {
                width: 350px;
            }
            
            .loader-logo-img {
                height: 140px;
            }
        }

        @media (max-width: 768px) {
            header {
                height: 80px;
            }
            
            .logo-img {
                height: 50px;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background-color: var(--white);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                transition: var(--transition);
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .nav-link {
                font-size: 1.1rem;
                padding: 10px 0;
            }
            
            .search-container {
                position: static;
                order: 2;
                padding-left: 0;
            }
            
            .search-box {
                right: 50px; /* Make room for hamburger */
            }
            
            .search-box.active {
                width: 180px;
            }
            
            .search-results {
                width: 300px;
                right: 50px;
            }
            
            .hamburger {
                display: flex;
                order: 3;
            }
            
            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }
            
            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }
            
            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.5rem;
            }
            
            .timeline::before {
                left: 20px;
            }
            
            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
                text-align: left;
            }
            
            .timeline-item:nth-child(even) {
                left: 0%;
            }
            
            .timeline-icon {
                left: 20px;
            }
            
            .timeline-item:nth-child(odd) .timeline-icon {
                right: auto;
            }
            
            .timeline-item:nth-child(even) .timeline-icon {
                left: 20px;
            }
            
            .skills-grid {
                grid-template-columns: 1fr;
            }
            
            .loader-logo-img {
                height: 110px;
            }
        }

        @media (max-width: 576px) {
            .logo-img {
                height: 40px;
            }
            
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .hero-buttons .btn {
                display: block;
                width: 80%;
                margin: 10px auto;
            }
            
            .projects-grid,
            .certificates-grid,
            .activities-grid {
                grid-template-columns: 1fr;
            }
            
            .about-photo {
                width: 200px;
            }
            
            .skills-category {
                min-width: 100%;
            }
            
            .search-box.active {
                width: 150px;
            }
            
            .search-results {
                width: 250px;
                right: 50px;
            }
            
            .search-toggle {
                width: 35px;
                height: 35px;
            }
            
            .loader-logo-img {
                height: 90px;
            }
        }