:root {
    --primary-color: #00f0ff;
    --secondary-color: #ff00f0;
    --dark-color: #0a0a1a;
    --light-color: #f0f0ff;
    --accent-color: #f0ff00;
    --text-color: #e0e0ff;
    --text-dark: #1a1a2e;
    --success-color: #00ff9d;
    --warning-color: #ff9d00;
    --error-color: #ff006a;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --transition-fast: 0.2s;
    --transition-medium: 0.5s;
    --transition-slow: 1s;

    --border-radius: 8px;
    --box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    --text-glow: 0 0 10px rgba(0, 240, 255, 0.7);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title .section-number {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.8rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    transition: var(--transition-medium);
}

.nav {
    position: sticky;
    top: 0;
    display: flex;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    z-index: 100;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: var(--text-glow);
}

.nav-logo .glow {
    animation: glow-pulse 1s infinite alternate;
}

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

.nav-link {
    position: relative;
    padding: 5px 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
}

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

.hover-underline:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.nav-hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition-medium);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

#threejs-bg, #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    padding-left: 50px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    overflow: hidden;
}

.title-word {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(224, 224, 255, 0.8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-hover-glow {
    padding: 15px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0);
    transition: var(--transition-medium);
}

.btn-hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
    background: rgba(0, 240, 255, 0.1);
}

.hero-avatar {
    padding-left: 30px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-container {
    width: 350px;
    height: 350px;
    position: relative;
}

.avatar-image {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: url('https://assets.codepen.io/15988159/internal/avatars/users/default.png?fit=crop&format=auto&height=512&version=1765956479&width=512') center/cover;
    position: absolute;
    top: 5%;
    left: 5%;
    box-shadow: var(--box-shadow);
}

.avatar-ring {
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 2px dashed var(--primary-color);
    position: absolute;
    top: 1%;
    left: 1%;
    animation: rotate-reverse 30s linear infinite;
    opacity: 0.7;
}

.avatar-particles {
    position: absolute;
    width: 300%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-tech {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-bubble {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.tech-bubble::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-medium);
}

.tech-bubble:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    background: rgba(0, 240, 255, 0.1);
}

.tech-bubble:hover::before {
    bottom: 20%;
    opacity: 1;
    transform: translateY(10px);
}

.tech-bubble img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary-color));
    transition: var(--transition-medium);
}

.tech-bubble:hover img {
    transform: scale(1.1);
    filter: brightness(1) invert(0) drop-shadow(0 0 10px var(--primary-color));
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    max-width: 500px;
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
}

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

.work-card-inner.flipped {
    transform: rotateY(180deg);
}

.work-card-front, .work-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.work-card-front {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 240, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-card-back {
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.work-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: start;
    border-radius: 10px;
}

.project-3 {
  background-image: url('../images/portfolio.png');
}

.work-title {
    padding: 20px;
    font-size: 1.5rem;
    background: rgba(10, 10, 26, 0.7);
}

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

.work-card-back p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.work-keywords {
    margin-top: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--light-color);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
}

.work-keywords span {
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.8rem;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
}

.skill-item {
    margin-bottom: 10px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.skill-bar {
    height: 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 240, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-method i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.contact-social {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: var(--transition-medium);
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    outline: none;
}

.form-group textarea {
    min-height: 44px;
    resize: none;
    overflow: hidden;
    transition: min-height 0.3s ease;
}

.form-group textarea:focus {
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1.1rem;
    color: rgba(224, 224, 255, 0.7);
    pointer-events: none;
    transition: var(--transition-medium);
}

.form-group input:focus~label,
.form-group input.has-value~label,
.form-group textarea:focus~label,
.form-group textarea.has-value~label {
    top: -20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-medium);
}

.form-group input:focus~.form-underline,
.form-group textarea:focus~.form-underline {
    width: 100%;
}

.footer {
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

#statusMessage {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #c6f6d5;
    color: #2d784e;
    border: 1px solid #9ae6b4;
}

.error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.hidden {
    display: none;
}

.success-check {
    color: #38a169;
    margin-right: 8px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 5px var(--primary-color);
    }
    to {
        text-shadow: 0 0 20px var(--primary-color);
    }
}

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        padding: 50px;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.95);
        flex-direction: column;
        justify-content: top;
        align-items: center;
        clip-path: circle(0px at 90% -10%);
        transition: var(--transition-medium);
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-hamburger.active .line2 {
        opacity: 0;
    }

    .nav-hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        padding-left: 20px;

    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-tech {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;
        background: rgba(10, 10, 26, 0.95);
        border-radius: var(--border-radius);
        flex-direction: column;
        padding: 2px;
        width: auto;
        min-width: 200px;
        clip-path: circle(0px at 90% -10%);
        transition: var(--transition-medium);
        pointer-events: none;
        border: 1px solid rgba(0, 240, 255, 0.3);
        box-shadow: var(--box-shadow);
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        padding-left: 0px;

    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

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

.avatar-container {
    width: 350px;
    height: 350px;
    position: relative;
    transform: none !important;
}

.work-card-front {
    padding: 0;
}

.work-image {
    height: calc(100% - 60px);
    width: 100%;
}

.work-title {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 0;
}

.work-card-back {
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.skills-container {
    display: block;
}

.skill-radar {
    display: none;
}

.skill-bars {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 30px;
}

@media (min-width: 992px) {
    .contact-form {
        margin-top: 0;
    }
}

.tech-bubble img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary-color));
    transition: var(--transition-medium);
}

.tech-bubble:hover img {
    transform: scale(1.1);
    filter: brightness(1) invert(0) drop-shadow(0 0 10px var(--primary-color));
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

.scroll-down {
    animation: bounce 2s infinite;
}

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