/* Color Variables */
:root {
    --soft-blue: #6B8E9E;
    --soft-blue-light: #8FB5C7;
    --soft-blue-dark: #4A6B7A;
    --prestige-mauve: #9B7EBD;
    --prestige-mauve-light: #B8A0D4;
    --prestige-mauve-dark: #7A5FA0;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--soft-blue-dark), var(--prestige-mauve-dark));
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.nav-link {
    color: var(--white) !important;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--soft-blue-light) !important;
    transform: scale(1.1);
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Home Section */
.home-section {
    background: linear-gradient(135deg, var(--soft-blue-light), var(--prestige-mauve-light));
    min-height: 100vh;
    padding-top: 80px;
}

.home-content h1 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--prestige-mauve-dark);
}

.home-content h2 {
    color: var(--soft-blue-dark);
    font-weight: 600;
}

.home-content p {
    color: var(--dark-gray);
}

.btn-primary {
    background: linear-gradient(135deg, var(--soft-blue), var(--prestige-mauve));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--soft-blue-dark), var(--prestige-mauve-dark));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--soft-blue-dark);
    transform: translateY(-3px);
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--soft-blue-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--soft-blue), var(--prestige-mauve));
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
}

.about-content h3 {
    color: var(--prestige-mauve-dark);
    font-weight: 600;
}

.about-content p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Experience Section */
.experience-section {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--soft-blue), var(--prestige-mauve));
}

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

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-content {
    background: linear-gradient(135deg, var(--soft-blue-light), var(--prestige-mauve-light));
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--prestige-mauve);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -42px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -42px;
}

.timeline-content h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    color: var(--prestige-mauve-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--white);
    font-weight: 600;
    margin: 0;
}

/* Skills Section */
.skills-section {
    background: var(--light-gray);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.skill-item {
    background: linear-gradient(135deg, var(--soft-blue), var(--prestige-mauve));
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Projects Section */
.projects-section {
    background: var(--white);
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid var(--light-gray);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--soft-blue-light);
}

.project-icon {
    font-size: 3rem;
    color: var(--prestige-mauve);
    margin-bottom: 1rem;
}

.project-card h4 {
    color: var(--soft-blue-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    color: var(--prestige-mauve-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-outline-primary {
    border-color: var(--soft-blue);
    color: var(--soft-blue);
}

.btn-outline-primary:hover {
    background: var(--soft-blue);
    border-color: var(--soft-blue);
    color: var(--white);
}

/* Services Section */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--soft-blue);
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--prestige-mauve-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Education Section */
.education-section {
    background: var(--white);
}

.education-card {
    background: linear-gradient(135deg, var(--soft-blue-light), var(--prestige-mauve-light));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.education-year {
    background: var(--white);
    color: var(--prestige-mauve-dark);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-card h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-card h5 {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-card p {
    color: var(--white);
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-info h3 {
    color: var(--soft-blue-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-color);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--soft-blue), var(--prestige-mauve));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-details p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-details i {
    color: var(--prestige-mauve);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--prestige-mauve-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-form .form-control {
    border: 2px solid var(--light-gray);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 0.2rem rgba(107, 142, 158, 0.25);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--soft-blue-dark), var(--prestige-mauve-dark));
    color: var(--white);
}

.footer p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .profile-img {
        width: 280px;
        height: 280px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        text-align: left !important;
    }
    
    .timeline-content::before {
        left: -32px !important;
    }
}

@media (max-width: 768px) {
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .skill-item {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .home-content h1 {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .btn-primary,
    .btn-outline-light {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
