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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 50%, #1a0b2e 100%);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ff6b35;
}

.edit-btn {
    background: #ff6b35 !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white !important;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.admin-login-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-login-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Section */
.left-section {
    z-index: 2;
}

.hero .name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Right Section - Cards */
.right-section {
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    padding: 5rem 0;
    background: rgba(26, 11, 46, 0.3);
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff6b35;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat h3 {
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.stat p {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Headers with Scroll Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroll-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    color: #ff6b35;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scroll-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 120px;
    text-align: center;
}

/* Experience Section */
.timeline-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.timeline-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    background: #ff6b35;
    border-radius: 50%;
    border: 3px solid #1a0b2e;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 15px;
    width: 2px;
    height: calc(100% + 1rem);
    background: rgba(255, 107, 53, 0.3);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Skills Section */
.skills-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.skills-container::-webkit-scrollbar {
    width: 8px;
}

.skills-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skills-container::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

.skills-container::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.skill-category h3 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Portfolio Section */
.portfolio-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.portfolio-container::-webkit-scrollbar {
    width: 8px;
}

.portfolio-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.portfolio-container::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

.portfolio-container::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}

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

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.portfolio-image {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.portfolio-item h3 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.portfolio-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-item i {
    color: #ff6b35;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background: #e55a2b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.edit-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.edit-section h3 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.close {
    color: #ff6b35;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: #e55a2b;
}

.modal h2 {
    color: #ff6b35;
    margin-bottom: 2rem;
    text-align: center;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal form input {
    margin-bottom: 0.5rem;
}

.modal input,
.modal textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modal label {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #ff6b35;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #e55a2b;
}

.form-actions button[type="button"] {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-actions button[type="button"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero .name {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Custom Cursor - Simplified */
body {
    cursor: default;
}

a, button, input, textarea, select {
    cursor: pointer;
}

/* Hover effects for interactive elements */
a:hover, button:hover {
    cursor: pointer;
}

/* Custom cursor only for specific elements */
.card:hover {
    cursor: pointer;
}

.portfolio-item:hover {
    cursor: pointer;
}

/* Login Section Styles */
.edit-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-section h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

#editFormContainer {
    transition: all 0.3s ease;
}

#loginAndEditBtn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    margin-top: 10px;
}

#editLanguageSelect {
    width: 100%;
    padding: 10px;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
}
