        /* Base styles and animations */
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes changeText {
            /* 0%, 20% { content: "Web Developer"; } */
            0%, 20% { content: "Frontend Developer"; }
            60%, 100% { content: "Backend Developer"; }
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            color: #f5f5f5;
            background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
            background-size: 200% 200%;
            animation: gradientBG 15s ease infinite;
            min-height: 100vh;
            padding: 0;
            margin: 0;
        }
        
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(15, 12, 41, 0.9);
            backdrop-filter: blur(10px);
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(247, 247, 247, 0.3);
        }

        .logo {
            color: #ff66b2;
            font-size: 24px;
            font-weight: bold;
        }

        .menu-icon {
            display: none;
            font-size: 28px;
            cursor: pointer;
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 20px;
        }

        .nav-links li a {
            text-decoration: none;
            color: rgb(255, 255, 255);
            font-weight: 500;
        }

        /* Responsive Rules */
        @media (max-width: 768px) {
            .menu-icon {
                display: block;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 60px;
                right: 0;
                background: rgba(15, 12, 41, 0.9);
                backdrop-filter: blur(20px);
                width: 100%;
                text-align: center;
                padding: 10px 0;
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links li {
                margin: 10px 0;
            }
        }
        
        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 100px auto 50px;
            padding: 0 20px;
        }
        
        section {
            padding: 40px 0;
        }
        
        /* Hero Section */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 60px 20px;
        }
        
        .profile-card {
            max-width: 600px;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 0 30px rgba(255, 105, 180, 0.7);
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            transition: all 0.5s ease-in-out;
            margin-bottom: 40px;
        }

        /* .profile-card {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 30px;
            flex-wrap: wrap;
        } */

        /* .card-left, .card-right {
            flex: 1;
            min-width: 250px;
        }

        .card-right {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        } */

        
        .profile-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 5px solid #ff66b2;
            margin-bottom: 20px;
            transition: transform 0.3s ease-in-out;
            object-fit: cover;
        }
        
        .profile-img:hover {
            transform: scale(1.1);
        }
        
        h1 {
            font-size: 32px;
            font-weight: bold;
            color: #ff66b2;
            margin-bottom: 10px;
        }
        
        h2 {
            font-size: 22px;
            color: #ffcc00;
            margin-bottom: 10px;
        }

        .details {
            text-align: left;
            margin-top: 20px;
            font-size: 18px;
            color: white;
        }
        
        .details p {
            margin: 10px 0;
        }
        
        .details i {
            color: #ffcc00;
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        .changing-text {
            font-size: 18px;
            font-style: italic;
            color: #f5f5f5;
            position: relative;
            margin-bottom: 20px;
        }
        
        .changing-text::after {
            content: "Web Developer";
            animation: changeText 9s infinite;
        }
        
        .social-links {
            margin-top: 20px;
        }
        
        .social-links a {
            color: #ffcc00;
            text-decoration: none;
            font-size: 24px;
            margin: 0 15px;
            transition: color 0.3s;
        }
        
        .social-links a:hover {
            color: #ff66b2;
        }

        /* Section Styles */
        .section-title {
            text-align: center;
            margin-bottom: 40px;
            color: #ff66b2;
            font-size: 28px;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: #ffcc00;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        /* Projects Section */
        .projects {
            margin-top: 50px;
            padding: 40px 20px;
            background: rgba(15, 12, 41, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 15px;
        }
        
        .project-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .project-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px; 
            padding: 20px;
            transition: 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }
        /* --- replace the old rule --- */
        /* desktop: fixed thumb */
        .project-card h3 {
            color: #ffcc00;
            margin-bottom: 10px;
            font-size: 20px;
        }
        
        .project-card img{
            width:100%;
            height:auto;          /* let height follow width ↔ aspect‑ratio */
            /* aspect-ratio:16/9; */
            object-fit:cover;     /* still zooms to fill card, but now   */
            display:block;        /*   scales smoothly at every size     */
        }

        .project-card p {
            color: #f5f5f5;
            margin-bottom: 15px;
            font-size: 16px;
        }
        
        .project-card .tags {
            display: flex;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        
        .project-card .tag {
            background: rgba(255, 102, 178, 0.3);
            color: #f5f5f5;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            margin: 0 5px 5px 0;
        }
        
        .project-links {
            margin-top: 15px;
        }
        
        .project-links a {
            background: #ffcc00;
            color: #0f0c29;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            font-weight: bold;
            margin-right: 10px;
            transition: 0.3s;
        }
        
        .project-links a:hover {
            background: #ff66b2;
        }
        
        /* Certificates Section */
        .certificates {
            padding: 40px 20px;
            margin-top: 50px;
            background: rgba(15, 12, 41, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 15px;
        }
        
        .certificate-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .certificate-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 15px;
            transition: 0.3s;
        }
        
        .certificate-card:hover {
            transform: scale(1.05);
        }
        
        .certificate-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        @media (max-width: 768px){
            .project-card img{
                aspect-ratio:auto;   /* let the real height show */
                object-fit:contain;  /* scale down, no crop      */
            }
        }

        .certificate-card h3 {
            color: #ffcc00;
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .certificate-card p {
            color: #f5f5f5;
            font-size: 14px;
        }
        
        /* Skills Section */
        .skills {
            padding: 40px 20px;
            margin-top: 50px;
            background: rgba(15, 12, 41, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 15px;
        }
        
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .skill-category {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
        }
        
        .skill-category h3 {
            color: #ffcc00;
            margin-bottom: 15px;
            font-size: 20px;
            text-align: center;
        }
        
        .skill-item {
            margin-bottom: 10px;
        }
        
        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .skill-name span {
            color: #f5f5f5;
        }
        
        .skill-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .skill-progress {
            height: 100%;
            background: linear-gradient(to right, #ff66b2, #ffcc00);
            border-radius: 10px;
        }
        
        /* Education Section */
        .education {
            padding: 40px 20px;
            margin-top: 50px;
            background: rgba(15, 12, 41, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 15px;
        }
        
        .education-timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .education-timeline::after {
            content: '';
            position: absolute;
            width: 3px;
            background: #ffcc00;
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -1.5px;
        }
        
        .timeline-item {
            padding: 10px 40px;
            position: relative;
            width: 50%;
            box-sizing: border-box;
        }
        
        .timeline-item:nth-child(odd) {
            left: 0;
        }
        
        .timeline-item:nth-child(even) {
            left: 50%;
        }
        
        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: #ff66b2;
            border-radius: 50%;
            top: 15px;
            z-index: 1;
        }
        
        .timeline-item:nth-child(odd)::after {
            right: -10px;
        }
        
        .timeline-item:nth-child(even)::after {
            left: -10px;
        }
        
        .timeline-content {
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            position: relative;
        }
        
        .timeline-date {
            color: #ffcc00;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .timeline-title {
            color: #ff66b2;
            margin-bottom: 5px;
        }
        
        .timeline-subtitle {
            color: #f5f5f5;
            font-style: italic;
            margin-bottom: 10px;
        }
        
        .timeline-description {
            color: #f5f5f5;
        }
        
        /* Contact Section */
        .contact {
            padding: 40px 20px;
            margin-top: 50px;
            background: rgba(15, 12, 41, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 15px;
        }
        
        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #ffcc00;
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            background: rgba(15, 12, 41, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            color: #f5f5f5;
            font-family: 'Poppins', sans-serif;
            transition: 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #ff66b2;
            box-shadow: 0 0 8px rgba(255, 102, 178, 0.5);
        }
        
        textarea.form-control {
            resize: vertical;
            min-height: 120px;
        }
        
        .submit-btn {
            background: linear-gradient(90deg, #ff66b2, #ffcc00);
            color: #fff;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: 0.3s;
            display: block;
            width: 100%;
        }
        
        .submit-btn:hover {
            background: linear-gradient(90deg, #ffcc00, #ff66b2);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 102, 178, 0.5);
        }
        
        /* Footer */
        footer {
            text-align: center;
            padding: 30px;
            margin-top: 50px;
            background: rgba(15, 12, 41, 0.8);
        }
        
        .footer-text {
            color: #f5f5f5;
            margin-bottom: 15px;
        }
        
        /* Responsive Design */
        @media screen and (max-width: 768px) {
            .container {
                margin-top: 80px;
            }
            
            .toggle .line1 {
                transform: rotate(-45deg) translate(-5px, 6px);
            }
            
            .toggle .line2 {
                opacity: 0;
            }
            
            .toggle .line3 {
                transform: rotate(45deg) translate(-5px, -6px);
            }
            
            .section-title {
                font-size: 24px;
            }
            
            .timeline-item {
                width: 100%;
                padding: 10px 20px;
            }
            
            .timeline-item:nth-child(even) {
                left: 0;
            }
            
            .education-timeline::after {
                left: 10px;
            }
            
            .timeline-item::after {
                left: 0 !important;
            }
            
            .timeline-item:nth-child(odd)::after {
                left: 0 !important;
                right: auto;
            }
        }
        
        @media screen and (max-width: 480px) {
            .profile-card {
                padding: 20px;
            }
            
            h1 {
                font-size: 24px;
            }
            
            h2 {
                font-size: 18px;
            }
            
            .section-title {
                font-size: 20px;
            }
            
            .social-links a {
                font-size: 20px;
                margin: 0 10px;
            }
            
            .details {
                font-size: 16px;
            }
            
            .project-card h3 {
                font-size: 18px;
            }
            
            .timeline-content {
                padding: 15px;
            }
        }
        @media (max-width: 768px) {
            .profile-card {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .card-left, .card-right {
                width: 100%;
            }

            .social-links {
                justify-content: center;
            }
            }

        .datetime{
            display: flex;
            justify-content: space-between;
        }