/* Global Variables */
:root {
    --bg-dark: #080808;
    --bg-secondary: #121212;
    --accent: #ff4d00;
    --accent-glow: rgba(255, 77, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Design Mode Theme */
body.design-mode {
    --accent: #e02af2;
    --accent-glow: rgba(224, 42, 242, 0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.accent-text {
    color: var(--accent);
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Mood Switcher */
.mood-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
    cursor: pointer;
}

.mood-option {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
    color: var(--text-secondary);
}

.mood-option.active {
    color: white;
}

.mood-slider {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: var(--transition);
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

body.design-mode .mood-slider {
    left: 40px;
}

body.design-mode {
    --accent: #e02af2;
    --accent-glow: rgba(224, 42, 242, 0.4);
    background: radial-gradient(circle at top right, #1a0b1c, var(--bg-dark));
}

body.design-mode .accent-text {
    text-shadow: 0 0 15px var(--accent-glow);
}

body.design-mode .hero-content .subtitle {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

body.design-mode .behance-link i {
    color: #0084ff;
}

body.design-mode .img-glow {
    opacity: 0.6;
    filter: blur(60px);
}

/* Section visibility based on mode */
.design-only {
    display: none;
}

body.design-mode .portfolio:not(.design-only) {
    display: none;
}

body.design-mode .design-only {
    display: block;
}

body.design-mode #design-portfolio .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    body.design-mode #design-portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body.design-mode #design-portfolio .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.behance-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 77, 0, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Image Glow Effect */
.img-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 1;
}

/* Sections General */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about .img-container {
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
}

.about h3 {
    margin-bottom: 1rem;
}

.about p {
    max-width: 800px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    width: 0;
    /* Animated via JS */
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--accent);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .img-container {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-link {
    background: transparent;
    color: white;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent);
    color: white;
}

.github-cta {
    text-align: center;
}

.github-cta i {
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-stats {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

#view-count {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-stats {
        order: -1;
    }
}

/* Software Section Styles */
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.software-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.software-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.software-card:hover::before {
    opacity: 0.1;
}

.software-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.software-card:hover .software-icon {
    background: var(--accent);
    color: white;
    transform: rotateY(360deg);
}

.software-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.software-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}