/* Futuristic Tech-Inspired Profile - GashoTech Style */

:root {
    --primary-color: #1abc9c;
    --primary-dark: #16a085;
    --neon-accent: #00ffff;
    --neon-glow: rgba(0, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-light: #2c3e50;
    --text-dark: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --tech-pattern: rgba(26, 188, 156, 0.03);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: all 0.5s ease;
}

/* Animated Tech Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--tech-pattern) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-pattern) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: techScroll 20s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

@keyframes techScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Animated Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, var(--neon-glow) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(26, 188, 156, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: floatParticles 30s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Back to Home Button */
.back-to-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    background: var(--primary-color);
    border: 2px solid var(--neon-accent);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 15px var(--shadow-light),
        0 0 15px var(--neon-glow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.back-to-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-to-home:hover::before {
    left: 100%;
}

.back-to-home:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-dark);
    box-shadow:
        0 6px 25px var(--shadow-light),
        0 0 25px var(--neon-accent);
    border-color: var(--neon-accent);
}

.back-to-home i {
    font-size: 1.2em;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5px);
    }
}

/* Main Container */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 10px 40px var(--shadow-light),
        0 0 0 1px rgba(0, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 60px;
    width: 90%;
    max-width: 900px;
    margin: 100px auto;
    position: relative;
    transition: all 0.4s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--neon-accent);
    border-radius: 33px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.container:hover::before {
    opacity: 0.4;
}

/* Tech Decorative Corners */
.container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    opacity: 0.6;
}

.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    opacity: 0.4;
    transition: all 0.3s;
}

.corner-decoration.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.corner-decoration:hover {
    opacity: 1;
    box-shadow: 0 0 20px var(--neon-glow);
}

/* Header Section */
header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

/* Profile Image with Tech Frame */
.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    flex-shrink: 0;
    box-shadow:
        0 0 30px var(--neon-glow),
        0 10px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
    opacity: 0.7;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: -1;
}

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

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 40px var(--neon-accent),
        0 15px 40px var(--shadow-light);
}

/* Header Info */
.header-info {
    flex: 1;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    animation: expandLine 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s backwards;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.header-info p {
    color: var(--text-light);
    font-size: 1.4em;
    opacity: 0.85;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-info p::before {
    content: '▸';
    color: var(--primary-color);
    font-size: 0.8em;
    animation: pulse 2s ease infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Tech Status Indicator */
.tech-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-accent);
    border-radius: 25px;
    font-size: 0.9em;
    color: var(--primary-color);
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s backwards;
}

.tech-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Dark Mode Toggle */
.toggle-container {
    position: relative;
}

#darkModeToggle {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.8em;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 5px 20px var(--shadow-light),
        0 0 15px var(--neon-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#darkModeToggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

#darkModeToggle:hover::before {
    opacity: 1;
}

#darkModeToggle:hover {
    transform: scale(1.15);
    border-color: var(--neon-accent);
    box-shadow:
        0 8px 30px var(--shadow-light),
        0 0 25px var(--neon-accent),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: var(--neon-accent);
}

#darkModeToggle:active {
    transform: scale(0.95);
}

.light-icon,
.dark-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 8px currentColor);
}

.dark-icon {
    display: none;
}

/* Section Styling */
.bio,
.skills,
.contact {
    margin-bottom: 40px;
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 5px 20px var(--shadow-light),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeInScale 0.8s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.bio {
    animation-delay: 0.3s;
}

.skills {
    animation-delay: 0.5s;
}

.contact {
    animation-delay: 0.7s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bio::before,
.skills::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.02);
    opacity: 0;
    transition: opacity 0.3s;
}

.bio:hover::before,
.skills:hover::before,
.contact:hover::before {
    opacity: 1;
}

.bio:hover,
.skills:hover,
.contact:hover {
    transform: translateY(-8px);
    box-shadow:
        0 10px 35px var(--shadow-light),
        0 0 30px var(--neon-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: var(--neon-accent);
}

.bio h2,
.skills h2,
.contact h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bio h2::before {
    content: '⚡';
    font-size: 1.2em;
}

.skills h2::before {
    content: '⟡';
    font-size: 1.2em;
}

.contact h2::before {
    content: '◉';
    font-size: 1.2em;
}

.bio p {
    color: var(--text-light);
    font-size: 1.15em;
    line-height: 1.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Skills Grid with Tech Cards */
.skills ul {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 0;
}

.skills li {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.6s;
}

.skills li:hover::before {
    left: 100%;
}

.skills li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.08);
    box-shadow:
        0 8px 20px var(--neon-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: var(--neon-accent);
}

/* Contact Section with Icons */
.contact p {
    margin: 18px 0;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.contact p i {
    color: var(--primary-color);
    font-size: 1.3em;
    width: 30px;
    text-align: center;
    transition: all 0.3s;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.contact a:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--neon-accent);
    box-shadow: 0 5px 20px var(--neon-glow);
    transform: translateX(10px);
}

/* Dark Mode Styles */
body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.dark-mode .container {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow:
        0 10px 40px var(--shadow-dark),
        0 0 0 1px rgba(0, 255, 255, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .bio,
body.dark-mode .skills,
body.dark-mode .contact {
    background: rgba(45, 45, 45, 0.7);
    border-color: rgba(0, 255, 255, 0.2);
}

body.dark-mode h1,
body.dark-mode .bio h2,
body.dark-mode .skills h2,
body.dark-mode .contact h2 {
    color: var(--primary-color);
}

body.dark-mode .header-info p,
body.dark-mode .bio p {
    color: var(--text-dark);
}

body.dark-mode .skills li {
    background: rgba(61, 61, 61, 0.85);
    color: var(--text-dark);
}

body.dark-mode .contact a {
    color: var(--primary-color);
}

body.dark-mode .contact a:hover {
    color: white;
}

body.dark-mode .tech-status {
    background: rgba(0, 255, 255, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 25px;
        margin: 80px auto;
        border-radius: 20px;
    }

    .back-to-home {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.85em;
    }

    header {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 35px;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    h1 {
        font-size: 2.2em;
    }

    .header-info p {
        font-size: 1.2em;
    }

    .bio,
    .skills,
    .contact {
        padding: 25px;
    }

    .skills ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .corner-decoration {
        display: none;
    }
}
