/* Portfolio Site Styles - style.css */
:root {
    --primary: #6e45e2;
    --secondary: #88d3ce;
    --accent: #ff6b6b;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --lighter: #f8f9fa;
    --gray: #6c757d;
    --card-bg: rgba(30, 30, 40, 0.8);
    --transition: all 0.4s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --game-border: 4px solid var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: var(--transition);
}

body.light-mode {
    background: linear-gradient(135deg, #f0f2f5, #e4e5f1);
    color: #333;
    --card-bg: rgba(255, 255, 255, 0.9);
}

/* Game-inspired elements */
.game-border {
    border: var(--game-border);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.4);
    position: relative;
    overflow: hidden;
}

.game-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--secondary);
    border-radius: 24px;
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.pixel-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.pixel-corner.tl {
    top: -4px;
    left: -4px;
    border-top: 4px solid var(--accent);
    border-left: 4px solid var(--accent);
}

.pixel-corner.tr {
    top: -4px;
    right: -4px;
    border-top: 4px solid var(--accent);
    border-right: 4px solid var(--accent);
}

.pixel-corner.bl {
    bottom: -4px;
    left: -4px;
    border-bottom: 4px solid var(--accent);
    border-left: 4px solid var(--accent);
}

.pixel-corner.br {
    bottom: -4px;
    right: -4px;
    border-bottom: 4px solid var(--accent);
    border-right: 4px solid var(--accent);
}

/* Header styles */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--light);
    text-decoration: none;
    animation: glow 2s infinite alternate;
}

body.light-mode .logo {
    color: var(--dark);
}

.logo-icon {
    color: var(--secondary);
    font-size: 2.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

body.light-mode nav a {
    color: var(--dark);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

body.light-mode .theme-toggle {
    color: var(--dark);
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(110, 69, 226, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

body.light-mode .btn-secondary {
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Particles background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* About section */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-box .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Skills section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tag {
    background: rgba(136, 211, 206, 0.2);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(136, 211, 206, 0.2);
    font-family: Georgia, serif;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
}

.client-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Contact section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 50px;
    height: 50px;
    background: rgba(136, 211, 206, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--primary);
}

/* Footer */
footer {
    background: var(--darker);
    padding: 60px 5% 30px;
    position: relative;
}

body.light-mode footer {
    background: #e4e5f1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 15px;
}

body.light-mode .footer-logo {
    color: var(--dark);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Support Button */
.support-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background: var(--accent);
    color: var(--light);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: var(--transition);
}

.support-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.6);
}

/* Support Modal */
.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.support-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--darker);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition);
}

.support-modal.active .modal-content {
    transform: translateY(0);
}

body.light-mode .modal-content {
    background: var(--lighter);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
}

body.light-mode .close-modal {
    color: var(--dark);
}

.modal-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.donation-option {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.donation-option:hover {
    background: rgba(110, 69, 226, 0.3);
}

.donation-option.active {
    background: var(--primary);
}

.phone-numbers {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.phone-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .phone-number {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.copy-btn {
    background: rgba(136, 211, 206, 0.2);
    color: var(--secondary);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--secondary);
    color: var(--dark);
}

.thank-you {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary);
    font-weight: 600;
}

/* AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 999;
}

.ai-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
    transition: var(--transition);
}

.ai-btn:hover {
    transform: scale(1.1);
}

.ai-chatbox {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--darker);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow: hidden;
}

body.light-mode .ai-chatbox {
    background: var(--lighter);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ai-chatbox.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary);
    color: var(--light);
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    line-height: 1.4;
}

.message.ai {
    background: rgba(136, 211, 206, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background: rgba(110, 69, 226, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: var(--card-bg);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background: var(--darker);
    color: var(--light);
    outline: none;
}

body.light-mode .chat-input input {
    background: var(--lighter);
    color: var(--dark);
}

.chat-input button {
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1rem 5%;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-assistant {
        right: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .donation-options {
        grid-template-columns: 1fr;
    }
    
    .ai-chatbox {
        width: 300px;
        height: 400px;
        right: -20px;
    }
}
