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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1c7dba;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-menu a:hover {
    color: #fbbf24;
}

.nav-menu .resume-link {
    background: rgba(0, 0, 0, 0.35);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-menu .resume-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-brand {
    color: var(--primary-color);
    text-shadow: none;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-color);
    text-shadow: none;
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--primary-color);
}

.navbar.scrolled .hamburger span {
    background: var(--text-color);
}

.navbar.scrolled .nav-menu .resume-link {
    background: var(--primary-color);
    border-color: transparent;
}

.navbar.scrolled .nav-menu .resume-link:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 0 80px;
    background: url("../images/hero-bg-new.jpg") center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(5, 8, 22, 0.75) 0%, rgba(5, 8, 22, 0.55) 30%, rgba(5, 8, 22, 0.18) 60%, rgba(5, 8, 22, 0) 85%);
    z-index: 0;
}


.hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    margin: 0;
}

.hero-avatar {
    flex-shrink: 0;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.hero-content {
    max-width: 560px;
    text-align: left;
    margin-top: 80px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
    white-space: nowrap;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s both;
}

.hero-typing {
    color: #fbbf24;
    font-weight: 600;
    position: relative;
    padding-right: 0.35rem;
}

.hero-typing::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 1.4em;
    background: white;
    animation: heroCaret 0.8s steps(2, start) infinite;
}

@keyframes heroCaret {
    to {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.6s both;
}

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

.btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    backdrop-filter: blur(3px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    animation: fadeInUp 1s 0.8s both;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* About Section */
.about {
    background: var(--bg-light);
}

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

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #000;
    line-height: 1.8;
}

.about-text p strong {
    color: #000;
    font-weight: 700;
}

.about-info {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-label {
    font-weight: 600;
    min-width: 100px;
}

.info-value {
    color: var(--text-light);
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

.skills-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

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

.skill-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-item .skill-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.skill-item h3 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.skill-item .skill-text {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    color: var(--text-color);
    font-weight: 500;
    transition: transform 0.3s;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Skills with Logos */
.skills-with-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-logo-group {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.skill-logo-group:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-logo-group .skill-logo-item {
    display: inline-block;
    margin: 0.5rem;
    vertical-align: middle;
}

.skill-logo-group .skill-logo-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0.3rem;
}

.skill-logo-group .skill-logo-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0.3rem;
}

.skill-logo-group .skill-logo-item[style*="position: relative"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.skill-logo-group .skill-logo-item[style*="position: relative"] .fa-cog {
    font-size: 1.2rem !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skill-group-text {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Experience Section */
.experience {
    background: var(--bg-light);
}

.experience-timeline {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.experience-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.experience-header {
    display: flex;
    gap: 1.5rem;
}

.experience-logo {
    min-width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    overflow: hidden;
    padding: 4px;
    position: relative;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.experience-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.experience-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.experience-details {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.experience-details li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.experience-tools {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.experience-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Education Section */
.education {
    background: var(--bg-light);
}

.education-timeline {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-header {
    display: flex;
    gap: 1.5rem;
}

.education-icon {
    min-width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    overflow: hidden;
    padding: 4px;
    position: relative;
}

.education-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.education-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-degree {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.education-courses {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.course-list li {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

/* Resume Section */
.resume {
    background: var(--bg-light);
    text-align: center;
    padding: 60px 0;
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.resume .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

.resume .btn i {
    margin-right: 0.5rem;
}

/* Projects Section */
.projects {
    background: var(--bg-color);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--secondary-color);
}

.project-links i {
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.contact-icon i {
    font-size: 1.5rem;
}

.contact-text {
    color: #0f172a;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.contact-text a {
    color: #0f172a;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-item.contact-email .contact-icon i,
.contact-item.contact-phone .contact-icon i {
    color: #1e3a8a;
}

.contact-item.contact-github .contact-icon i {
    color: #111827;
}

.contact-item.contact-linkedin .contact-icon i {
    color: #0a66c2;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 8, 22, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu a {
        color: white;
        text-shadow: none;
    }

    .navbar.scrolled .nav-menu {
        background: white;
    }

    .navbar.scrolled .nav-menu a {
        color: var(--text-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }


    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
    }

    .experience-logo,
    .education-icon {
        align-self: flex-start;
    }

    .skills-tags {
        justify-content: center;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin-top: 0;
    }

    .profile-picture,
    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .skills-with-logos {
        grid-template-columns: 1fr;
    }

    .education-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        white-space: normal;
    }
}
