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

body {
    background: linear-gradient(135deg, #1a001a 0%, #330033 50%, #4d004d 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Flower Animation */
.flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flower {
    position: absolute;
    color: #ff69b4;
    animation: fall linear forwards;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px #ff1493);
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
header {
    background: rgba(255, 20, 147, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.cover-thumbnail {
    text-align: center;
    margin-bottom: 1rem;
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.typing-animation {
    overflow: hidden;
    border-right: .15em solid #ff1493;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    font-size: 1.5rem;
    color: #ffb6c1;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ff1493; }
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
}

nav ul li a:hover {
    color: #ff1493;
    text-shadow: 0 0 10px #ff1493;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff1493;
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 200px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffb6c1;
    text-shadow: 0 0 20px #ff1493;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff1493, transparent);
}

/* Profile Section */
.profile-container {
    text-align: center;
}

.floating-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
    border-radius: 50%;
    border: 4px solid #ff1493;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.5);
}

.floating-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

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

.gradient-text {
    font-size: 3rem;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.linkedin { background: #0077b5; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #d62976, #962fbf); }
.social-btn.facebook { background: #1877f2; }
.social-btn.github { background: #333; }
.social-btn.tryhackme { background: #212c42; }
.social-btn.resume { background: #ff4444; }

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.1);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-box {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: bold;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.skill-box:hover::before {
    left: 100%;
}

.skill-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.5);
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 20, 147, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #ffb6c1;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-info p {
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ff1493;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.project-link:hover {
    background: #ff69b4;
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-container input,
.contact-container textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-container input:focus,
.contact-container textarea:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.contact-container textarea {
    min-height: 120px;
    resize: vertical;
}

.pink-btn {
    padding: 1rem 2rem;
    background: #ff1493;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pink-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pink-btn:hover::before {
    left: 100%;
}

.pink-btn:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: #ffb6c1;
}

.contact-info i {
    margin-right: 1rem;
    color: #ff1493;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem;
}

.admin-login {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.admin-login h2 {
    color: #ff1493;
    margin-bottom: 2rem;
}

.admin-login input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff1493;
    border-radius: 5px;
    color: #fff;
}

.admin-dashboard {
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box h3 {
    color: #ffb6c1;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 2rem;
    color: #ff1493;
    font-weight: bold;
}

.editor-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffb6c1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 5px;
    color: #fff;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: rgba(255, 20, 147, 0.1);
    border-radius: 5px;
}

.delete-btn {
    padding: 0.3rem 0.8rem;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.logout-btn {
    padding: 1rem 2rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.logout-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 2px solid #ff1493;
}

footer p {
    margin: 0.5rem 0;
    color: #ffb6c1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.8rem;
    }
    
    .typing-animation {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a001a;
}

::-webkit-scrollbar-thumb {
    background: #ff1493;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff69b4;
}