* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    margin-left: 290px;
    position: relative;
}

.section {
    display: none;
    min-height: 100vh;
    padding: 60px 80px;
    color: #fff;
    background-color: #000;
}

.section.active {
    display: block;
}

.sidebar {
    width: 290px;
    background-color: #0a121f;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    margin-bottom: 15px;
}

.profile h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #555;
}

.nav-menu {
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-item:hover, .nav-item.active {
    background-color: #1a2738;
}

.nav-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.hero {
    height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 72px;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 28px;
    color: white;
    margin-bottom: 30px;
}

#typing-text {
    color: #3498db;
}

.hero-buttons {
    margin-top: 30px;
}

.resume-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.about-container {
    color: white;
}

.about-header {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 30px;
}

.about-description {
    margin-bottom: 40px;
    line-height: 1.6;
}

.tab-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: #3498db;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ccc;
    font-size: 16px;
}

.skills-list li:hover {
    transform: translateY(-5px);
    background-color: #2c2c2c; 
}

.skills-list .skill-name {
    display: block;
    color: #3498db;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
}

.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.education-title {
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.education-description {
    color: #bbb;
    font-size: 16px;
    margin-bottom: 10px;
}

.education-item p {
    color: #ccc;
    margin: 5px 0;
    font-size: 14px;
}

.education-item p strong {
    color: #3498db;
}

.project-header {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 40px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.project-card {
    background: linear-gradient(to bottom, #1a2738, #0a121f);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 350px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-title {
    color: #fff;
    font-size: 20px;
    margin: 15px 0;
    font-weight: bold;
}

.project-description {
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.6;
    display: none;
    flex-grow: 1;
}

.project-card:hover .project-description {
    display: block;
}

.project-link {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-link {
    display: inline-flex;
}

.project-link:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.project-footer {
    text-align: center;
    color: #bbb;
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
    padding: 20px 0;
}

#projects {
    padding-bottom: 70px;
}

.contact-header {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.contact-blue-line {
    display: block;
    width: 80px;
    height: 4px;
    background-color: #3498db;
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    align-items: stretch;
}

.contact-info, .contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 10px;
    min-width: 300px;
    flex: 1 1 45%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #e0f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 20px;
    margin-right: 15px;
}

.info-content h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.info-content p {
    color: #666;
    font-size: 16px;
}

.map-container {
    margin-top: 20px;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    flex-grow: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#contactForm {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    flex-grow: 1;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin-top: auto;
    text-align: center;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

.footer {
    background-color: #0a121f;
    color: white;
    text-align: center;
    padding: 10px 0;
    border-top: 2px solid #3498db;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
}

.footer p {
    font-size: 14px;
    color: #bbb;
    margin: 0;
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .contact-container {
        padding: 15px;
        gap: 20px;
    }
    
    .contact-info, .contact-form {
        flex: 1 1 100%;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .section#contact {
        padding: 40px 50px;
    }
    
    .contact-header {
        font-size: 40px;
    }
    
    .contact-info, .contact-form {
        padding: 20px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 40px 20px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }
    
    .section#contact {
        padding: 30px 20px;
    }
    
    .contact-header {
        font-size: 32px;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px 0;
    }
    
    .profile-img {
        width: 80px;
        height: 80px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    body {
        flex-direction: column;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .info-content h3 {
        font-size: 16px;
    }
    
    .info-content p {
        font-size: 14px;
    }
    
    .contact-info, .contact-form {
        min-height: 400px;
    }
    
    .footer {
        padding: 10px 0;
    }

    .footer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .contact-header {
        font-size: 28px;
    }
    
    .contact-intro {
        font-size: 16px;
    }
    
    .contact-info, .contact-form {
        margin: 5px 0;
        padding: 15px;
        min-height: auto;
    }
    
    .map-container {
        height: 200px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .form-control {
        padding: 10px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .footer p {
        font-size: 12px;
    }
    
    .project-card {
        min-height: 300px;
    }
}