﻿/* Base Styles */
:root {
    --bg-primary: rgba(1, 35, 59, 1);
    --bg-secondary: rgba(30, 50, 75, 1);
    --text-primary: rgba(219, 199, 117, 1);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent: rgba(255, 165, 0, 0.8);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

section {
    padding-top: 4rem;
    min-height: 100vh;
}

/* Typography */
.titleText {
    font-family: "Times New Roman", serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.bodyText {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

#projects .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    height: 4rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    padding: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 40px;
    max-width: 200px; /* Adjust based on your logo's proportions */
    overflow: hidden;
}

.navbar-logo {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar-toggler {
    background: transparent;
    border: none;
}

.navbar-toggler-icon {
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.navbar-toggler-icon i {
    background: transparent;
}

.navbar-nav {
    background: var(--bg-secondary);
}

.nav-item {
    background: inherit;
}

.nav-link {
    background: inherit;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
#home {
    position: relative;
    background: var(--bg-primary);
    padding-top: 0;
}

.intro-text {
    position: relative;
    z-index: 1;
}

#home .titleText {
    font-size: 5rem;
    margin-bottom: 1rem;
}

#home .bodyText {
    font-size: 1.5rem;
    opacity: 0.9;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: calc(var(--item-index) * 0.2s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home .animate-text:nth-child(1) { --item-index: 1; }
#home .animate-text:nth-child(2) { --item-index: 2; }
#home .animate-text:nth-child(3) { --item-index: 3; }
#home .animate-text:nth-child(4) { --item-index: 4; }
#home .animate-text:nth-child(5) { --item-index: 5; }

/* About Section */
#about {
    background: var(--bg-primary);
}

.about-text {
    margin-bottom: 1.5rem;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.profile-placeholder i {
    font-size: 8rem;
    color: var(--text-primary);
    opacity: 0.8;
}

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

.skills-container {
    margin-top: 2rem;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Projects Section */
#projects {
    background: var(--bg-primary);
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card {
    position: relative;
}

.project-link {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 10px; /* Optional: Add some spacing */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
    width: 100%;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--text-primary);
    opacity: 0.7;
}

.project-info {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: transparent;
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    background: transparent;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    background: transparent;
}

.project-tags span {
    background: rgba(219, 199, 117, 0.1);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateX(5px);
}

.project-link i {
    margin-left: 5px;
    background: transparent;
}

/* Contact Section */
#contact {
    background: var(--bg-primary);
}

.contact-text {
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.contact-form .form-control {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
}

.contact-form textarea {
    min-height: 150px;
}

/* Buttons */
.btn-custom {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-custom:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

footer p {
    background: transparent;
}

/* Education Section Styles */
#education {
    background: var(--bg-primary);
}

.education-item {
    position: relative;
    padding: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--accent);
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    left: -11px;
    top: 2rem;
}

.education-year {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-degree {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.education-school {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.education-description {
    color: var(--text-secondary);
}

/* Add responsive adjustments for the education section */
@media (max-width: 768px) {
    .education-item {
        padding-left: 1.5rem;
    }

    .education-degree {
        font-size: 1.2rem;
    }

    .education-school {
        font-size: 1rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    #home .titleText {
        font-size: 4rem;
    }

    #home .bodyText {
        font-size: 1.3rem;
    }

    .navbar-collapse {
        background: var(--bg-secondary);
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    #home .titleText {
        font-size: 3rem;
    }

    #home .bodyText {
        font-size: 1.1rem;
    }

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

    .profile-image-container {
        width: 250px;
        height: 250px;
        margin: 2rem auto;
    }
}

.logo-svg path,
.logo-svg rect,
.logo-svg circle,
.logo-svg ellipse,
.logo-svg line,
.logo-svg polyline,
.logo-svg polygon,
.logo-svg text {
    background: transparent;
}
/*responsive adjustment for svg in nav*/
@media (max-width: 768px) {
    .logo-container {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        height: 30px;
    }
}

@media (max-width: 576px) {
    #home .titleText {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
