/* ============================================
   MODERN CYBERSECURITY PORTFOLIO - SWANIT ANURAN
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #00ff41;
    --secondary-color: #0affed;
    --accent-color: #ff006e;
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --bg-card: #151932;
    --text-primary: #e8e8e8;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    --border-color: #1e2d4d;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cyber: linear-gradient(135deg, #00ff41 0%, #0affed 100%);
    --shadow: 0 10px 40px rgba(0, 255, 65, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 255, 65, 0.2);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* ===== MATRIX BACKGROUND ===== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.logo-bracket {
    color: var(--secondary-color);
}

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

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    animation: glitch 3s infinite;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        0 0 20px rgba(0, 255, 65, 0.3),
        0 0 30px rgba(0, 255, 65, 0.2);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.typing-container {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.code-symbol {
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: rgba(10, 255, 237, 0.1);
    transform: translateY(-3px);
}

/* ===== TERMINAL WINDOW ===== */
.hero-image {
    flex: 1;
    max-width: 600px;
}

.terminal-window {
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-prompt {
    color: var(--primary-color);
}

.terminal-command {
    color: var(--secondary-color);
}

.terminal-output {
    color: var(--text-secondary);
}

.blink {
    animation: blink 1s infinite;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.title-number {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.title-text {
    font-weight: 700;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
}

.accent-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

.about-organizations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.about-organizations h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.org-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.org-tags span {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

/* ===== HEXAGON GRID ===== */
.hexagon-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hexagon {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.hexagon:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.hexagon-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hexagon p {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.expertise-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.card-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-content li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tech span {
    background: rgba(10, 255, 237, 0.1);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(10, 255, 237, 0.2);
}

/* ===== ACHIEVEMENTS ===== */
.achievements {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.achievements h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    background: rgba(255, 0, 110, 0.1);
    color: var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 0, 110, 0.3);
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

.badge i {
    font-size: 1.5rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-dark);
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    padding: 2rem;
}

.project-card.featured {
    border-color: var(--primary-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 255, 65, 0.1);
    font-family: 'Courier New', monospace;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.project-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-status i {
    color: var(--accent-color);
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-features span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-features i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.more-projects {
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item span {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    background: var(--bg-card);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.platform-badge {
    background: rgba(255, 0, 110, 0.1);
    color: var(--accent-color);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 0, 110, 0.3);
    transition: var(--transition);
}

.platform-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(255, 0, 110, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(255, 0, 110, 0.3);
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .glitch {
        font-size: 3rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        width: 70%;
        height: calc(100vh - 70px);
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-right {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .glitch {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .achievement-badges {
        flex-direction: column;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
