:root {
    --primary: #00f7ff;
    --secondary: #ff2a6d;
    --accent: #05ffa1;
    --dark-bg: #0c0c1d;
    --darker-bg: #060612;
    --medium-bg: #1d1d3d;
    --light-text: #e0e0ff;
    --glass-bg: rgba(29, 29, 61, 0.4);
}

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

body {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--medium-bg) 100%);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Titillium Web', sans-serif;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(12, 12, 29, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

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

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

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

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

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

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content h1 .accent {
    color: var(--secondary);
}

#typing {
    font-size: 2.2rem;
    margin-bottom: 40px;
    min-height: 80px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--dark-bg);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(5, 255, 161, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.5);
}

.hero-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* About Section */
#about {
    padding-top: 80px;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

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

.stat {
    background: rgba(29, 29, 61, 0.6);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 247, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.2);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(29, 29, 61, 0.6);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 247, 255, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2);
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 1.8rem;
}

.skill-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.portfolio-item:hover .portfolio-inner {
    transform: rotateY(180deg);
}

.portfolio-front, .portfolio-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.portfolio-front {
    background: linear-gradient(135deg, var(--medium-bg) 0%, var(--dark-bg) 100%);
}

.portfolio-back {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    transform: rotateY(180deg);
    text-align: center;
}

.portfolio-item .vulnerability-canvas {
    width: 100%;
    height: 70%;
}

.portfolio-item h3 {
    margin-top: 15px;
    color: var(--accent);
    font-size: 1.8rem;
}

.portfolio-back p {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.contact-form {
    background: rgba(29, 29, 61, 0.6);
    border-radius: 15px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    background: rgba(10, 10, 25, 0.5);
    color: var(--light-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

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

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

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(29, 29, 61, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    background: rgba(29, 29, 61, 0.5);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method p {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(29, 29, 61, 0.6);
    margin: 0 15px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-bottom: 20px;
}

.social-links a:hover {
    transform: translateY(-8px);
    background: var(--medium-bg);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.copyright {
    font-size: 1.1rem;
    color: rgba(224, 224, 255, 0.7);
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    #typing {
        font-size: 1.8rem;
        min-height: 70px;
    }
    
    .section-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #typing {
        font-size: 1.5rem;
        min-height: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        color: var(--light-text);
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    #typing {
        font-size: 1.3rem;
        min-height: 50px;
    }
    
    .section-content {
        padding: 30px 20px;
    }
    
    .stat {
        padding: 20px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
}
#alert-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.alert-content {
  padding: 20px;
}
#alert-message {
  font-size: 18px;
  margin-bottom: 10px;
}
#alert-ok {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#alert-ok:hover {
  background-color: #3e8e41;
}
