:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --dark-color: #2f2e41;
    --light-color: #f8f9fa;
    --accent-color: #ff6584;
    --text-color: #333;
    --text-light: #777;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: 5px;
    left: 0;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Improved name highlight effect */
.name-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;  /* Slightly thicker underline */
    bottom: 4px;  /* Better vertical positioning */
    left: 0;
    background-color: rgba(108, 99, 255, 0.3);  /* More subtle opacity */
    z-index: -1;
    border-radius: 4px;  /* Rounded edges */
    transform: skew(-15deg);  /* Slight angle for style */
    transition: all 0.3s ease;
}

.hero-title:hover .name-highlight::after {
    height: 12px;  /* Grows on hover */
    background-color: rgba(108, 99, 255, 0.4);  /* More visible on hover */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    margin: 10px 5px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/* Sections */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .about-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}
/* Projects Section - Single Line Layout */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.project-content {
    flex: 1;
    padding-right: 20px;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background-color: rgba(108, 99, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.project-links .btn {
    padding: 6px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Dark mode styles */
.dark-mode .project-line {
    background-color: #1e1e1e;
}

.dark-mode .project-content h3 {
    color: white;
}

.dark-mode .project-desc {
    color: #b0b0b0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-content {
        padding-right: 0;
    }
    
    .project-links {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .project-links {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .project-links .btn {
        flex: 1;
        text-align: center;
    }
}
/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.skill-category i {
    width: 30px;
    height: 30px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Dark mode styles */
.dark-mode .skill-category {
    background-color: #1e1e1e;
}

.dark-mode .skill-category li {
    color: #ffffff;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toggle hamburger animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        padding: 150px 20px 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .image-placeholder {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
}

/* Dark mode styles */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .section-title,
.dark-mode .hero-title,
.dark-mode .about-text h3,
.dark-mode .project-info h3,
.dark-mode .skill-category h3,
.dark-mode .contact-info h3 {
    color: #ffffff;
}

.dark-mode .project-card,
.dark-mode .skill-category,
.dark-mode .contact-form {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .project-info p,
.dark-mode .about-text p,
.dark-mode .contact-info p {
    color: #b0b0b0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #3d3d3d;
}

.dark-mode .project-tech span {
    background-color: #2d2d2d;
    color: #b0b0b0;
}

.dark-mode .skill-bar {
    background-color: #2d2d2d;
}