/* CSS Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Body Styling */
        body {
            font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.7;
            font-weight: 400;
        }

        /* Enhanced heading styles */
        h1, h2, h3, h4 {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        header h1 {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 700;
            margin-bottom: 15px;
            letter-spacing: -0.03em;
        }

        header p {
            font-size: clamp(1rem, 2.5vw, 1.2rem);
        }

        section h2 {
            position: relative;
            padding-bottom: 12px;
            margin-bottom: 25px;
            font-size: clamp(1.5rem, 4vw, 2rem);
        }

        section h2::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 3px;
            background-color: #3498db;
        }

        /* Modern header with gradient */
        header {
            background: linear-gradient(135deg, #3b4043, #362d3b);
            color: #fff;
            padding: clamp(40px, 8vw, 80px) 20px clamp(30px, 6vw, 60px);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085') center/cover;
            opacity: 0.1;
            z-index: 0;
        }

        header h1, header p {
            position: relative;
            z-index: 1;
        }

        /* Responsive sticky navigation */
        nav {
            background-color: rgba(52, 73, 94, 0.95);
            padding: 15px 10px;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            margin: 5px 15px;
            font-size: clamp(0.9rem, 2.5vw, 1.1rem);
            font-weight: 500;
            position: relative;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #3498db;
            transition: width 0.3s ease;
        }

        nav a:hover {
            color: #3498db;
            background-color: rgba(255, 255, 255, 0.1);
        }

        nav a:hover::after {
            width: 100%;
        }

        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }

        /* Enhanced cards and sections */
        #about, #experience, #projects, #certificates, #contact {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            padding: clamp(20px, 4vw, 40px);
            margin-bottom: 30px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* About Section */
        #about p {
            font-size: clamp(1rem, 2vw, 1.1rem);
            line-height: 1.8;
            margin-bottom: 15px;
        }

        /* Responsive Button styles */
        .resume-btn, .project-link, #contact button, .certificate-button {
            display: inline-block;
            padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
            border-radius: 50px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-size: clamp(0.8rem, 1.5vw, 0.9rem);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
            text-decoration: none;
            border: none;
            cursor: pointer;
            text-align: center;
        }

        .resume-btn {
            margin-top: 25px;
            background-color: #2ecc71;
            color: white;
            box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
        }

        .project-link {
            margin-top: 15px;
            background-color: #3498db;
            color: white;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        #contact button {
            background-color: #3498db;
            color: white;
            width: 100%;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        .certificate-button {
            background-color: #e74c3c;
            color: white;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
        }

        .resume-btn:hover, .project-link:hover, #contact button:hover, .certificate-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        /* Experience items */
        .experience-item {
            margin-bottom: 30px;
            padding-bottom: 30px;
            border-bottom: 1px solid #eee;
            position: relative;
        }

        .experience-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .experience-item h3 {
            color: #3498db;
            font-size: clamp(1.2rem, 3vw, 1.6rem);
            margin-bottom: 8px;
        }

        .experience-item .company {
            font-weight: 600;
            font-size: clamp(1rem, 2.5vw, 1.15rem);
            margin-bottom: 8px;
            color: #2c3e50;
        }

        .experience-item .duration {
            display: inline-block;
            color: #7f8c8d;
            font-style: italic;
            margin-bottom: 15px;
            background-color: #f8f9fa;
            padding: 3px 12px;
            border-radius: 50px;
            font-size: clamp(0.8rem, 1.5vw, 0.9rem);
        }

        .experience-item ul {
            padding-left: 20px;
        }

        .experience-item li {
            margin-bottom: 8px;
            line-height: 1.6;
        }

        /* Responsive Projects Section */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: clamp(15px, 3vw, 30px);
            margin-top: 20px;
        }

        .project-card {
            background-color: #ffffff;
            padding: clamp(20px, 4vw, 30px);
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
            border-top: 4px solid #3498db;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .project-card h3 {
            margin-bottom: 15px;
            color: #3498db;
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
        }

        .project-card p {
            font-size: clamp(0.9rem, 1.8vw, 1rem);
            line-height: 1.6;
            margin-bottom: auto;
            flex-grow: 1;
        }

        /* Certificate Section */
        .certificate-button-container {
            text-align: center;
            padding: 20px 0 40px;
        }

        /* Responsive Contact Section */
        #contact form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        #contact input, #contact textarea {
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: clamp(0.9rem, 2vw, 1rem);
            transition: border-color 0.3s, box-shadow 0.3s;
            background-color: #f8f9fa;
            width: 100%;
        }

        #contact input:focus, #contact textarea:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        #contact textarea {
            min-height: 120px;
            resize: vertical;
        }

        /* Footer improvements */
        footer {
            background: linear-gradient(135deg, #2c3e50, #1a252f);
            color: #fff;
            text-align: center;
            padding: 40px 20px;
            margin-top: 60px;
        }

        footer p {
            font-size: clamp(0.9rem, 2vw, 1rem);
            opacity: 0.8;
        }

        /* Comprehensive Responsive Design */

        /* Large screens (desktops) */
        @media (min-width: 1200px) {
            .container {
                padding: 0 40px;
            }
            
            #contact form {
                grid-template-columns: 1fr 1fr;
            }
            
            #contact textarea {
                grid-column: 1 / -1;
            }
            
            #contact button {
                grid-column: 1 / -1;
                width: auto;
                justify-self: start;
            }
        }

        /* Medium screens (tablets) */
        @media (max-width: 1024px) {
            nav {
                padding: 12px 10px;
            }
            
            nav a {
                margin: 5px 10px;
                padding: 6px 10px;
            }
            
            .project-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
            }
            
            #about, #experience, #projects, #certificates, #contact {
                margin-bottom: 25px;
            }
        }

        /* Small tablets and large phones */
        @media (max-width: 768px) {
            header {
                padding: 40px 15px 30px;
            }
            
            nav {
                flex-direction: column;
                padding: 10px;
            }
            
            nav a {
                display: block;
                margin: 5px 0;
                padding: 10px;
                width: 100%;
                text-align: center;
            }
            
            .container {
                margin: 15px auto;
                padding: 0 15px;
            }
            
            .project-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .experience-item ul {
                padding-left: 15px;
            }
            
            section h2::after {
                width: 40px;
                height: 2px;
            }
        }

        /* Mobile phones */
        @media (max-width: 480px) {
            header {
                padding: 30px 10px 25px;
            }
            
            nav a {
                margin: 3px 0;
                padding: 8px;
                font-size: 0.9rem;
            }
            
            .container {
                padding: 0 10px;
            }
            
            #about, #experience, #projects, #certificates, #contact {
                padding: 15px;
                margin-bottom: 20px;
            }
            
            .project-card {
                padding: 15px;
            }
            
            .experience-item {
                margin-bottom: 20px;
                padding-bottom: 20px;
            }
            
            .experience-item ul {
                padding-left: 12px;
            }
            
            .experience-item li {
                font-size: 0.9rem;
            }
            
            #contact input, #contact textarea {
                padding: 12px;
            }
            
            #contact textarea {
                min-height: 100px;
            }
            
            footer {
                padding: 30px 15px;
                margin-top: 40px;
            }
            
            .resume-btn, .project-link, .certificate-button {
                width: 100%;
                margin: 10px 0;
                text-align: center;
            }
        }

        /* Extra small devices */
        @media (max-width: 320px) {
            #about, #experience, #projects, #certificates, #contact {
                padding: 12px;
                border-radius: 8px;
            }
            
            .project-card {
                padding: 12px;
            }
            
            #contact input, #contact textarea {
                padding: 10px;
                font-size: 0.9rem;
            }
            
            nav a {
                padding: 6px;
                font-size: 0.8rem;
            }
        }

        /* Landscape orientation on mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            header {
                padding: 20px 15px 15px;
            }
            
            nav {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            nav a {
                display: inline-block;
                margin: 2px 8px;
                padding: 6px 12px;
                width: auto;
            }
        }

        /* Print styles */
        @media print {
            header, nav, footer {
                display: none;
            }
            
            .container {
                max-width: none;
                margin: 0;
                padding: 0;
            }
            
            #about, #experience, #projects, #certificates, #contact {
                box-shadow: none;
                border: 1px solid #ddd;
                page-break-inside: avoid;
            }
            
            .project-card {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }
