:root {
    --primary-color: rgb(154, 221, 18);  /* Vibrant green */
    --secondary-color: rgb(22, 30, 46);  /* Dark blue */
    --accent-color: rgba(154, 221, 18, 0.8);
    --text-color: #ffffff;
    --light-text: rgba(255, 255, 255, 0.8);
    --bg-color: rgb(22, 30, 46);
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation - Top Right */
header {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* This creates the blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    width: 100%; /* Ensure it spans full width */
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 0.5rem;
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0; /* Changed from padding on sides to just top/bottom */
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

/* Underline animation - fixed version */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    transform-origin: left center;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active state for current page */
.nav-links a.active::after {
    width: 100%;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--white);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    animation: underlineGrow 1s ease-out;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 80px; }
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation - Top Right */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 0.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 70%;
}

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

/* Hero Section with Animation */
.hero {
    text-align: center;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(154, 221, 18, 0.1) 0%, transparent 70%);
    animation: pulse 15s infinite linear;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(154, 221, 18, 0.5);
}

.hero h2 {
    font-weight: 400;
    margin: 0.5rem 0 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-outline {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    animation: fadeIn 1s ease-out 0.6s both;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(154, 221, 18, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(154, 221, 18, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(154, 221, 18, 0.1);
    transform: translateY(-3px);
}

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

/* Journey Section with Animation */
.journey-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 221, 18, 0.1);
    transition: var(--transition);
}

.journey-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Education Cards with Animation */
.education-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(154, 221, 18, 0.1), transparent);
    transition: 0.5s;
}

.education-card:hover::before {
    left: 100%;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Skills Bars with Animation */
.skill-progress {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects-section {
    background: rgba(22, 30, 46, 0.7);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 221, 18, 0.2);
}

.learning-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(154, 221, 18, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.learning-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.learning-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.learning-list {
    text-align: left;
    max-width: 500px;
    margin: 1.5rem auto;
    list-style: none;
}

.learning-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.learning-list i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
}

.coming-soon {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(154, 221, 18, 0.2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.category {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.category i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.category h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

.progress-label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(154, 221, 18, 0.2);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-categories {
        flex-direction: column;
    }
    
    .category {
        width: 100%;
    }
    
    .learning-message {
        padding: 1.5rem;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links li {
        margin: 0.3rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-outline {
        width: 80%;
    }
    
    .education-container, .project-categories {
        flex-direction: column;
    }
    
    .education-card, .category {
        width: 100%;
        max-width: none;
    }
}

/* Skills Section */
.skills-section {
    background: rgba(22, 30, 46, 0.7);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 221, 18, 0.2);
    transition: all 0.4s ease;
}

.skills-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.skills-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

.skills-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    animation: underlineGrow 0.8s ease-out;
}

.skill-item {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.skill-percent {
    color: var(--primary-color);
    font-weight: bold;
}

.skill-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.skill-progress {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        rgba(154, 221, 18, 0.7));
    position: relative;
    transition: width 1.5s ease-out;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.html { width: 75%; }
.css { width: 70%; }
.cpp { width: 65%; }

/* Get in Touch Section */
.contact-section {
    background: rgba(22, 30, 46, 0.7);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 221, 18, 0.2);
    transition: all 0.4s ease;
}

.contact-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    animation: underlineGrow 0.8s ease-out;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 0.8s ease-out;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(154, 221, 18, 0.2);
}

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

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-text);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(154, 221, 18, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(154, 221, 18, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form,
    .contact-info {
        min-width: 100%;
    }
    
    .skills-section,
    .contact-section {
        padding: 2rem;
    }
}
