/* ==================== 
   GLOBAL STYLES 
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-white: #1a1a1a;
    --bg-light: #252525;
    --bg-dark: #0d0d0d;
    --border-color: #333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 
   NAVIGATION 
   ==================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.cv-link {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.cv-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.cv-link::after {
    display: none;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.lang-toggle {
    border-radius: 20px;
    width: auto;
    padding: 0 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.theme-icon {
    transition: var(--transition);
}

body.dark-mode .theme-icon::after {
    content: '☀️';
}

body.dark-mode .theme-icon {
    display: none;
}

body.dark-mode .theme-toggle::before {
    content: '☀️';
    font-size: 1.2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== 
   HOME SECTION 
   ==================== */

.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0a0e27;
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.home-section::after {
    content: '< /> { } [ ] ( ) => function var const let class extends import export async await return if else for while switch case break continue try catch throw new this super static public private protected void int string boolean double float long short byte char null true false console.log() document.querySelector() addEventListener() getElementById() fetch() promise async/await map() filter() reduce() forEach() push() pop() shift() unshift() splice() slice() join() split() trim() replace() includes() indexOf() find() findIndex() some() every() sort() reverse() concat() length toString() valueOf() hasOwnProperty() prototype constructor instanceof typeof delete in with debugger yield arguments eval isNaN parseInt parseFloat JSON.stringify() JSON.parse() Object.keys() Object.values() Object.entries() Array.from() Array.isArray() Math.random() Math.floor() Math.ceil() Math.round() Math.abs() Math.max() Math.min() Date.now() setTimeout() setInterval() clearTimeout() clearInterval() localStorage sessionStorage cookies fetch API REST GraphQL React Vue Angular Node.js Express MongoDB MySQL PostgreSQL Docker Kubernetes Git GitHub Python Java C++ C# Ruby PHP Swift Kotlin TypeScript JavaScript HTML CSS SQL NoSQL Redis AWS Azure GCP Linux Ubuntu Windows macOS Terminal Bash PowerShell CMD npm yarn pip composer Webpack Babel ESLint Prettier VS Code IntelliJ Eclipse NetBeans Atom Sublime PyCharm WebStorm Android Studio Xcode';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(52, 152, 219, 0.08);
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    overflow: hidden;
    animation: scrollCode 120s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scrollCode {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-25%, -25%); }
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0px);
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff !important;
    padding: 2rem;
}

.home-content h1,
.home-content .subtitle,
.home-content .description {
    color: #ffffff !important;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #3498db !important;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
    background-color: #ffffff !important;
    color: #3498db !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid #ffffff !important;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #ffffff !important;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.5; }
    100% { top: 5px; opacity: 1; }
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 
   ABOUT SECTION 
   ==================== */

.about-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-info {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.about-description {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 
   PROJECTS SECTION 
   ==================== */

.projects-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-card h3 small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.7;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.project-button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* ==================== 
   CONTACT SECTION 
   ==================== */

.contact-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.cv-download {
    margin-top: 2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.form-success p {
    font-size: 1.2rem;
    color: #27ae60;
    font-weight: 600;
}

/* ==================== 
   FOOTER 
   ==================== */

.footer {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer p {
    opacity: 0.8;
    color: #ffffff !important;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Floating Social Media Bar */
.floating-social {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    background: var(--bg-white);
    padding: 1rem 0.75rem;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.floating-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    border-radius: 50%;
    background: var(--bg-light);
}

.floating-social-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.floating-social-link svg {
    width: 22px;
    height: 22px;
}

/* ==================== 
   RESPONSIVE DESIGN 
   ==================== */

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-controls {
        position: absolute;
        right: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Home Section */
    .home-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-placeholder {
        max-width: 300px;
        height: 300px;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* Floating Social */
    .floating-social {
        right: 15px;
        padding: 0.75rem 0.5rem;
    }
    
    .floating-social-link {
        width: 35px;
        height: 35px;
    }
    
    .floating-social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    /* Hide floating social on small screens */
    .floating-social {
        display: none;
    }
}

/* ==================== 
   PROJECT MODAL 
   ==================== */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-features {
    margin-bottom: 2rem;
}

.features-title,
.tech-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.modal-tech {
    margin-top: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--bg-white);
}

.modal-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.modal-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.modal-website-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .features-title,
    .tech-title {
        font-size: 1.1rem;
    }
    
    .modal-website-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
