:root {
    --primary: #0f172a;
    --secondary: #f8fafc;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--gradient);
    opacity: 0.15;
    filter: blur(100px);
    z-index: -1;
    animation: blob-animation 25s infinite alternate;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}
/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-container {
    margin: 0 auto 2rem; /* Centers the profile image */
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.title-gradient {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.05em;
    animation: fadeInUp 0.8s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Animations */



/* Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 2.5rem;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: center; /* Changed to center */
    gap: 2.5rem; /* Adjusted gap */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 90%; /* Added for better mobile handling */
}

.nav-item {
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Prevent items from shrinking */
}

.nav-item.active {
    background: var(--gradient);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.35);
}

/* Sections */
.section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 4rem 0;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.contact-container {
    background: var(--primary);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-item.current::before {
    animation: pulse 2s infinite;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-weight: 300;
    margin-bottom: 0.3rem;
}

.timeline-content span {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.8);
}

/* Buttons */
.hire-btn {
    background: var(--gradient);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hire-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.hire-btn:hover {
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.hire-btn:hover::after {
    left: 150%;
}

.download-btn {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
    padding: 1rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.download-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Contact Form */
.contact-container h2 {
    margin-bottom: 2rem;
    text-align: center;
}

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

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.8rem;
    color: var(--secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--secondary);
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

/* Achievement Cards */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}

.achievement-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .bottom-nav {
        width: 95%;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.8rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .download-btn {
        margin-left: 0;
    }
}
/* Contact Modal */
.contact-modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.contact-content {
    position: relative;
    background: #0f172a;
    margin: 5% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.close-btn {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    font-size: 2.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

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

/* Form Styles */
.contact-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-content form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    color: var(--secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.submit-btn{
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .bottom-nav {
        gap: 1.2rem;
        padding: 0.8rem 1.5rem;
        max-width: 95%;
    }
    
    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-item span {
        display: none; /* Hide text on mobile if needed */
    }
    
    .nav-item i {
        margin: 0; /* Adjust icon spacing */
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        gap: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .nav-item {
        padding: 0.5rem;
    }
}
/* Profile Picture Styles */
.profile-container{
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(45deg, #7c3aed, #4f46e5);
    padding: 8px;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.profile-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Other Rounded Elements */
.skill-card,
.achievement-card,
.timeline-content {
    border-radius: 15px !important;
}

/* Animated Border Effect */
.profile-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        #7c3aed, 
        #4f46e5, 
        #10b981);
    border-radius: 50%;
    z-index: -1;
    animation: rotating-border 4s linear infinite;
}

@keyframes rotating-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-gradient {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .profile-container {
        width: 180px;
        height: 180px;
        animation: float 6s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .title-gradient {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}
/* Add text shadow for better readability */
.title-gradient {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add subtle transition to subtitle */
.subtitle {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}