* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #6a0dad, #8a2be2, #9370db);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    border-color: white;
}

.contact-info svg {
    width: 22px;
    height: 22px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(106, 13, 173, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8a2be2;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}


section {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

h2 {
    color: #bb86fc;
    border-bottom: 3px solid #6a0dad;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2rem;
}

h3 {
    color: #bb86fc;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

h4 {
    color: #cfb3ff;
    margin: 20px 0 10px 0;
}

.project {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

.project:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.project-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
}

.project-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(106, 13, 173, 0.4);
}

.tools {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #6a0dad;
    color: #e0e0e0;
}

.code-snippet {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #9370db;
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
}

.code-snippet code {
    color: #bb86fc;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-snippet code .keyword {
    color: #ff79c6;
}

.code-snippet code .string {
    color: #f1fa8c;
}

.code-snippet code .comment {
    color: #6272a4;
}

.code-snippet code .function {
    color: #50fa7b;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6a0dad;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.2);
}

.skill-category h3 {
    color: #bb86fc;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.feature-list li:before {
    content: "▸";
    color: #bb86fc;
    margin-right: 10px;
}

footer {
    text-align: center;
    padding: 30px;
    background: #1a1a1a;
    color: #e0e0e0;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.project-links {
    margin-top: 20px;
}

.project-links a {
    display: inline-block;
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.project-links a:hover {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

p {
    color: #e0e0e0;
    margin-bottom: 15px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: #6a0dad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: #8a2be2;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    background: #6a0dad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #8a2be2;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .project-images {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info a {
        display: block;
        margin: 10px 0;
    }
    
    section {
        padding: 25px;
    }

    .lightbox-close {
        top: -50px;
        right: 10px;
    }

    .lightbox-nav {
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
