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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Aesthetic Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(2px) drop-shadow(0 0 16px rgba(0,255,255,0.3));
    box-shadow: 0 0 32px 8px rgba(0,255,255,0.15), 0 0 64px 16px rgba(0,255,255,0.08);
    animation: floatOrb 24s infinite cubic-bezier(.4,.2,.6,1);
    transition: transform 0.8s cubic-bezier(.4,.2,.6,1), box-shadow 0.8s;
}

.orb:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 0 48px 16px rgba(0,255,255,0.25), 0 0 96px 32px rgba(0,255,255,0.12);
    opacity: 1;
}


.orb-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #00fff7 0%, #00bfff 60%, transparent 100%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ff00cc 0%, #ffb3ff 60%, transparent 100%);
    top: 60%;
    right: 15%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #00ff99 0%, #b3ffd9 60%, transparent 100%);
    top: 70%;
    left: 30%;
    animation-delay: 8s;
    animation-duration: 22s;
}

.orb-4 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fffb00 0%, #fffbb3 60%, transparent 100%);
    top: 40%;
    left: 60%;
    animation-delay: 12s;
    animation-duration: 28s;
}

.orb-5 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #ff0055 0%, #ffb3b3 60%, transparent 100%);
    top: 80%;
    left: 15%;
    animation-delay: 16s;
    animation-duration: 35s;
}

.orb-6 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #00ffea 0%, #b3fff7 60%, transparent 100%);
    top: 10%;
    left: 70%;
    animation-delay: 20s;
    animation-duration: 26s;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.4;
    animation: rotateFloat 15s infinite linear;
    transition: transform 0.7s cubic-bezier(.4,.2,.6,1), box-shadow 0.7s;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.12));
}
.shape:hover {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 32px 8px rgba(255,255,255,0.18);
}


.triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #00fff7;
    position: absolute;
    top: 15%;
    left: 80%;
    opacity: 0.7;
    animation-delay: 0s;
    animation-duration: 20s;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #ff00cc;
    position: absolute;
    top: 75%;
    left: 60%;
    opacity: 0.7;
    animation-delay: -7s;
    animation-duration: 25s;
}

.circle-1 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffb00 0%, #fffbb3 100%);
    position: absolute;
    top: 30%;
    left: 40%;
    opacity: 0.7;
    animation-delay: -10s;
    animation-duration: 18s;
}

.circle-2 {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0055 0%, #ffb3b3 100%);
    position: absolute;
    top: 60%;
    left: 20%;
    opacity: 0.7;
    animation-delay: -15s;
    animation-duration: 22s;
}

.hexagon-1 {
    width: 60px;
    height: 34.64px;
    background: linear-gradient(135deg, #00ffea 0%, #b3fff7 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0.7;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: -5s;
    animation-duration: 30s;
}

/* Twinkling Stars Background */
.stars-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(135,206,235,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,215,0,0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,105,180,0.2), transparent),
        radial-gradient(2px 2px at 260px 60px, rgba(0,255,255,0.25), transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 350px 120px, rgba(147,112,219,0.2), transparent),
        radial-gradient(1px 1px at 400px 90px, rgba(0,255,127,0.25), transparent);
    background-repeat: repeat;
    background-size: 420px 140px;
    animation: twinkle 8s infinite;
}

/* Keyframe Animations */
@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(-15px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes rotateFloat {
    0% {
        transform: rotate(0deg) translateY(0px);
        opacity: 0.4;
    }
    25% {
        transform: rotate(90deg) translateY(-10px);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) translateY(-5px);
        opacity: 0.3;
    }
    75% {
        transform: rotate(270deg) translateY(-15px);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) translateY(0px);
        opacity: 0.4;
    }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    25% {
        opacity: 0.6;
        transform: scale(1.02);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(0.98);
    }
    75% {
        opacity: 0.5;
        transform: scale(1.01);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.bracket {
    color: #00ffff;
}

.name {
    color: #ffffff;
    margin: 0 0.5rem;
}

/* Navigation */
/* Desktop Navigation */
.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
}


@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        min-width: 0;
        height: 56px;
        background: rgba(10,10,10,0.98);
        border-top: 1.5px solid rgba(0,255,255,0.18);
        box-shadow: 0 -2px 16px rgba(0,255,255,0.08);
        z-index: 10001;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        gap: 0;
        transition: background 0.3s;
    }
    .mobile-nav-btn {
        background: none;
        border: none;
        color: #00ffff;
        font-size: 1.6rem;
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, transform 0.2s;
        flex: 1 1 20%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-nav-btn.active,
    .mobile-nav-btn:focus {
        background: linear-gradient(90deg, #00fff7 0%, #ff00cc 100%);
        color: #0a0a0a;
        transform: scale(1.08);
    }
    .mobile-nav-btn:active {
        background: rgba(0,255,255,0.12);
        color: #fff;
    }
}

.nav-btn, .cli-toggle {
    background: rgba(0, 255, 255, 0.08);
    border: 1.5px solid rgba(0, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,255,255,0.08);
    transition: background 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s;
}

.nav-btn:hover, .cli-toggle:hover {
    border-color: #00ffff;
    background: linear-gradient(90deg, #00fff7 0%, #ff00cc 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(0,255,255,0.18);
    transform: translateY(-4px) scale(1.07);
}

.nav-btn.active {
    background: linear-gradient(90deg, #00fff7 0%, #ff00cc 100%);
    color: #0a0a0a;
    border-color: #00ffff;
    box-shadow: 0 4px 16px rgba(0,255,255,0.18);
}

.cli-toggle {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: #000000;
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Sections */
.section {
    display: none;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(.4,.2,.6,1), transform 0.7s cubic-bezier(.4,.2,.6,1);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero.active {
    display: grid;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.glitch {
    position: relative;
    color: #ffffff;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-1 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, -2px);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

.cta {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    color: #000000;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
}

.cta-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Terminal Preview */
.terminal-preview {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

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

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    color: #888;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: #00ffff;
}

.cursor {
    color: #ffffff;
    animation: blink 1s infinite;
}

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

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2.5rem;
    margin: 0 auto 3rem auto;
    max-width: 700px;
    padding: 0 1rem;
}

.about-grid > .profile-card {
    order: 0;
    margin-bottom: 0;
}
.about-grid > .about-card, .about-grid > .about-text {
    order: 1;
    margin-top: 0;
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    .profile-card {
        margin-bottom: 0.5rem;
        padding: 1.2rem 1rem;
    }
    .about-card, .about-text {
        margin-top: 0.5rem;
        padding: 1.2rem 1rem;
    }
}


.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00fff7 0%, #ff00cc 100%) 1;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0,255,255,0.12), 0 1.5px 8px 0 rgba(255,0,204,0.08);
    backdrop-filter: blur(12px) saturate(120%);
    margin: 0 auto;
    max-width: 700px;
    transition: box-shadow 0.5s, border-image 0.5s, transform 0.5s;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

.profile-card {
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00fff7 0%, #ff00cc 100%) 1;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0,255,255,0.12), 0 1.5px 8px 0 rgba(255,0,204,0.08);
    backdrop-filter: blur(12px) saturate(120%);
    transition: box-shadow 0.5s, border-image 0.5s, transform 0.5s;
    margin-top: 0;
    align-self: center;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0,255,255,0.22), 0 4px 24px rgba(255,0,204,0.18);
    border-image: linear-gradient(135deg, #ff00cc 0%, #00fff7 100%) 1;
}

.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo:hover .profile-img {
    transform: scale(1.1);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-photo:hover .profile-overlay {
    opacity: 1;
}

.profile-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.profile-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.profile-info p {
    color: #888;
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

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

.skill-category h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border-radius: 4px;
    transition: width 1s ease;
}

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

.project-card {
    background: rgba(0, 0, 0, 0.32);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff00cc 0%, #00fff7 100%) 1;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(255,0,204,0.10), 0 1.5px 8px 0 rgba(0,255,255,0.08);
    backdrop-filter: blur(10px) saturate(120%);
    transition: box-shadow 0.5s, border-image 0.5s, transform 0.5s;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 48px rgba(255,0,204,0.22), 0 4px 24px rgba(0,255,255,0.18);
    border-image: linear-gradient(135deg, #00fff7 0%, #ff00cc 100%) 1;
}

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

.project-header h3 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: #00ffff;
}

.project-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ff00ff;
}

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

.project-link {
    color: #00ffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #00ffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-method h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #888;
    margin: 0;
}

.contact-form {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* CLI Mode */
.cli-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.cli-mode.active {
    display: flex;
}

.cli-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.cli-controls {
    display: flex;
    gap: 0.5rem;
}

.cli-controls .control {
    cursor: pointer;
    transition: all 0.3s ease;
}

.cli-controls .control:hover {
    transform: scale(1.2);
}

.cli-title {
    color: #00ffff;
    font-weight: 500;
}

.cli-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
}

.cli-welcome {
    color: #00ffff;
    margin-bottom: 1rem;
}

.cli-welcome pre {
    font-size: 0.6rem;
    margin-bottom: 1rem;
    color: #ff00ff;
}

.cli-line {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.cli-output {
    flex: 1;
    margin-bottom: 1rem;
}

.cli-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.cli-prompt {
    color: #00ffff;
    white-space: nowrap;
}

.cli-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.cli-cursor {
    color: #ffffff;
    animation: blink 1s infinite;
}

.cli-command {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cli-result {
    color: #ccc;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.cli-error {
    color: #ff4444;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {    .header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        min-height: fit-content;
    }

    .logo {
        font-size: 1.2rem;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-btn, .cli-toggle {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        flex: 1 1 40%;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        border-radius: 6px;
        margin: 0.1rem 0;
    }

    .main-content {
        margin-top: 120px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: calc(100vh - 120px);
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    } 

 /* CLI Mobile */
    .cli-mode {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
    }

    .cli-header {
        padding: 0.5rem;
        min-height: 40px;
    }

    .cli-title {
        font-size: 0.8rem;
    }

    .cli-body {
        padding: 0.5rem;
        font-size: 0.85rem;
        overflow-x: hidden;
    }

    .cli-welcome {
        margin-bottom: 0.5rem;
    }

    .cli-welcome pre {
        font-size: 0.3rem;
        overflow-x: auto;
        white-space: pre;
        line-height: 1.2;
    }

    .cli-input-line {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .cli-input {
        font-size: 0.85rem;
        min-width: 0;
        word-break: break-all;
    }

    .cli-prompt {
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .cli-result {
        font-size: 0.8rem;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.4;
    }

    .cli-command {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .cli-error {
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Terminal Preview Mobile */
    .terminal-preview {
        margin-top: 1rem;
    }

    .terminal-title {
        font-size: 0.8rem;
    }

    .terminal-body {
        padding: 0.75rem;
        font-size: 0.85rem;
    }    /* Profile adjustments for mobile */
    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .profile-info h3 {
        font-size: 1.1rem;
    }

    .profile-status {
        font-size: 0.8rem;
    }

    /* Project cards mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .mobile-nav {
        height: 48px;
        font-size: 1.2rem;
    }
    .mobile-nav-btn {
        font-size: 1.3rem;
        padding: 0.1rem 0.2rem;
        border-radius: 10px;
    }
    .header {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav {
        gap: 0.3rem;
    }

    .nav-btn, .cli-toggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: calc(50% - 0.15rem);
        max-width: 120px;
    }

    .main-content {
        margin-top: 100px;
    }

    .hero {
        min-height: calc(100vh - 100px);
        padding: 0.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .glitch {
        font-size: 2rem;
    }

    .section {
        padding: 1.5rem 0.75rem;
    }

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

    .cli-welcome pre {
        font-size: 0.25rem;
    }

    .cli-result {
        font-size: 0.75rem;
    }

    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .profile-info h3 {
        font-size: 1rem;
    }

    .profile-status {
        font-size: 0.75rem;
    }
}
