:root {
    --bg-color: #0f111a;
    --card-bg: #1a1c29;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --accent: #00d4ff; 
    --accent-hover: #00b8e6;
    --danger: #ff4757;
    --discord: #5865F2;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img { 
    -webkit-user-drag: none; 
    user-drag: none; 
    pointer-events: none; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
}


nav {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    background: rgba(15, 17, 26, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2d3748;
    z-index: 1000;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover { 
    color: var(--accent); 
}


header { 
    text-align: center; 
    padding: 3rem 0 4rem 0; 
    border-bottom: 1px solid #2d3748;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.profile-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.profile-pic {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

h1 {
    font-size: 3.2rem; 
    margin: 15px 0;
    color: #fff; 
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle { 
    font-size: 1.3rem; 
    color: var(--accent); 
    margin-bottom: 1rem; 
    font-weight: bold;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
}


.action-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.social-icon {
    width: 36px;
    height: 36px;
    fill: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    fill: var(--accent);
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent) 0%, #0061ff 100%);
    border: none;
    color: #000;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-contact:active {
    transform: translateY(0px);
}

#email-display {
    margin-top: 15px;
    color: var(--accent);
    display: none;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}


section { 
    margin: 5rem 0; 
    scroll-margin-top: 100px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    border-left: 5px solid var(--accent);
    padding-left: 20px; 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    color: #fff;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}


#about .card {
    position: relative;
    overflow: hidden;
}

#about .card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}


#concrete-skills {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.08) 0%, rgba(26, 28, 41, 0.6) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    padding: 4rem 2.5rem;
    border-radius: 15px;
    margin: 6rem 0;
    position: relative;
    overflow: hidden;
}

#concrete-skills::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#concrete-skills h2 {
    text-align: center;
    border-left: none;
    font-size: 2.6rem;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

#concrete-skills h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.skill-card {
    background-color: rgba(15, 17, 26, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2d3748;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    background-color: rgba(26, 28, 41, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}


#portfolio {
    background: rgba(26, 28, 41, 0.3);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 1px solid #2d3748;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2d3748;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.project-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 97, 255, 0.2) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #2d3748;
}

.project-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.project-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-top: 8px;
    border: 1px solid var(--accent);
}

.project-body {
    padding: 1.5rem;
}

.project-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-hover);
    gap: 12px;
}


.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #2d3748;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateX(5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-title { 
    font-size: 1.3rem; 
    font-weight: bold; 
    color: #fff; 
    display: block; 
    margin-bottom: 8px; 
}

.card-meta { 
    color: var(--accent); 
    font-size: 0.95rem; 
    font-family: monospace; 
    display: block; 
    margin-bottom: 15px; 
}

.card-content {
    padding-top: 10px;
}

.card ul { 
    padding-left: 20px; 
    color: var(--text-muted); 
}

.card li {
    margin-bottom: 8px;
    line-height: 1.6;
}


.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tip-box {
    background: var(--card-bg);
    border: 1px solid #2d3748;
    padding: 1.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.tip-box:hover::before {
    height: 100%;
}

.tip-box:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-3px);
}

.tip-header { 
    color: var(--accent); 
    font-weight: bold; 
    font-family: monospace; 
    margin-bottom: 12px; 
    display: block; 
    font-size: 1.05rem;
}


.discord-box {
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border: 2px solid var(--discord);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.2);
}

.discord-box h3 {
    color: #fff; 
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.discord-box ul {
    color: var(--text-muted); 
    text-align: left;
    padding-left: 20px;
}

.discord-box li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.discord-btn {
    display: inline-block;
    background-color: var(--discord);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover { 
    background-color: #4752c4; 
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}


.security-section {
    border: 1px solid var(--danger);
    background: rgba(255, 71, 87, 0.05);
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4rem;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
}

.security-section h4 {
    color: var(--danger);
    margin: 0 0 1rem 0;
}

.security-section ul {
    padding-left: 25px;
}

.security-section li {
    margin-bottom: 6px;
}

footer {
    text-align: center; 
    padding: 3rem 0 2rem 0; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    border-top: 1px solid #2d3748;
    margin-top: 4rem;
}

.legal-warning { 
    color: #ff6b6b; 
    font-weight: bold; 
    margin-top: 15px; 
    font-size: 0.75rem; 
}


#btnTornaSu {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #00d4ff 0%, #0061ff 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

#btnTornaSu svg { 
    stroke-width: 3px; 
}

#btnTornaSu:hover {
    background: linear-gradient(180deg, #00d4ff 0%, #0056e0 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

#btnTornaSu:active { 
    transform: translateY(-2px); 
}


@media(max-width: 768px) {
    nav a { 
        font-size: 0.85rem; 
        margin: 0 10px; 
    }

    h1 { 
        font-size: 2.2rem; 
    }

    h2 {
        font-size: 1.6rem;
    }

    #concrete-skills { 
        padding: 2rem 1.5rem; 
    }

    #concrete-skills h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .portfolio-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .discord-box {
        padding: 2rem 1.5rem;
    }

    #btnTornaSu {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media(max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .action-container {
        flex-direction: column;
        gap: 15px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }
}