/* Global Styles */
:root {
    --primary: #319FCE;
    --primary-light: #5AB2D8;
    --primary-dark: #2180A8;
    --primary-darker: #1A6080;
    --primary-lightest: #86C7E8;
    --text-dark: #202830;
    --text-light: #ffffff;
    --transition-speed: 0.5s;
}

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
}

/* Element Styles */
button {
    background-color: var(--primary-dark);
    border: 2px solid var(--primary-lightest);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

footer {
    background-color: var(--primary-darker);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

footer a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-lightest);
}

footer p {
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 300;
}

/* Header/Navbar Styles */
header {
    background-color: var(--primary-lightest);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.visible {
    transform: translateY(0);
    opacity: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0 2rem;
}

nav ul li {
    padding: 0.5rem 1.5rem;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-dark);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-dark);
    transition: width 0.2s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Main Section Styles */
main {
    position: relative;
}

section {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

/* Add padding to account for the fixed header */
section:not(#home) {
    padding-top: 6rem;
}

/* Exception for contact section - less vertical space */
section#contact {
    background-color: var(--primary-lightest);
    color: var(--text-dark);
    min-height: auto;
    padding: 3rem 2rem 8rem 2rem;
    justify-content: flex-start;
}

/* Home Section */
#home {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-align: center;
    background-color: var(--primary-dark);
    color: #ffffff;
    padding-top: 0;
}

#home h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#home p {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-content {
    position: relative;
    z-index: 5;
    padding: 2rem;
}

#animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.profile-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.profile-icon svg {
    stroke: #ffffff;
}

section#about h2, section#projects h2, section#contact h2 {
    font-size: 3.5rem;
    margin: 0;
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 1;
}

section#about h2 {
    color: #ffffff;
}

section#projects .profile-icon svg {
    stroke: var(--text-dark);
}

section#contact .profile-icon svg {
    stroke: var(--text-dark);
}

.highlight-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 8px;
}

section#about .highlight-underline {
    background-color: #ffffff;
}

.about-text {
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Skills Section */
.skills-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.skills-group {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    padding: 2rem;
    transition: all 0.3s ease;
    width: 280px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skills-group:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 rgba(33, 128, 168, 0.4);
}

.skills-group h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-icon {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    filter: brightness(1.1);
}

.skill-icon span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* Projects Section */
section#projects {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

section#projects h2 {
    color: var(--text-dark);
    margin-bottom: 3rem;
}

section#projects .highlight-underline {
    background-color: var(--text-dark);
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.project-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    overflow: hidden;
    border: 2px solid var(--text-dark);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0 rgba(33, 128, 168, 0.4);
}

.project-content {
    display: flex;
    align-items: center;
}

.project-card.reverse .project-content {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
    padding: 3rem;
    position: relative;
}

.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--text-dark);
}

.project-card.reverse .project-info::before {
    left: auto;
    right: 0;
}

.project-info h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    text-transform: uppercase;
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.project-image {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(0.3) contrast(1.1);
}

.project-image:hover img {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1.2);
}

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

.project-button {
    background-color: var(--primary-dark);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-button:hover {
    background-color: var(--primary-darker);
    color: #ffffff;
}

/* Contact Section */
section#contact h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 0;
}

section#contact .highlight-underline {
    background-color: var(--text-dark);
}

section#contact p {
    max-width: 600px;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#contact-form input,
#contact-form textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--text-dark);
    border-radius: 0;
    padding: 16px;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--text-dark);
    box-shadow: 5px 5px 0 rgba(33, 128, 168, 0.4);
}

#contact-form textarea {
    height: 160px;
    resize: vertical;
}

#contact-form button {
    background-color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: center;
}

#contact-form button:hover {
    background-color: var(--primary);
    border-color: var(--primary-dark);
    color: #ffffff;
    box-shadow: 5px 5px 0 rgba(33, 128, 168, 0.4);
    transform: translate(-2px, -2px);
}

/* Special Effects */
.highlight {
    color: var(--primary-lightest);
    position: relative;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    width: 70%;
    max-width: 700px;
    border: 2px solid var(--text-dark);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 15px 15px 0 rgba(33, 128, 168, 0.4);
}

.modal-content h3 {
    font-size: 2rem;
    margin-top: 0;
    color: var(--text-dark);
    font-weight: 800;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--primary);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-darker);
    color: #ffffff;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid var(--primary-lightest);
}

.scroll-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Other necessary elements */
#color-overlay {
    display: none;
}

/* Responsive Styles - Simplified */
@media (max-width: 992px) {
    #home h1 {
        font-size: 4rem;
    }
    
    #home p {
        font-size: 1.6rem;
    }
    
    .project-content {
        flex-direction: column;
    }
    
    .project-card.reverse .project-content {
        flex-direction: column;
    }
    
    .project-image {
        max-width: 100%;
        width: 100%;
    }
    
    .project-info {
        padding: 2rem;
    }
    
    .project-info::before {
        width: 100%;
        height: 8px;
        top: 0;
        left: 0;
    }
    
    .project-card.reverse .project-info::before {
        right: auto;
        left: 0;
    }
}

@media (max-width: 768px) {
    .skills-icons {
        flex-direction: column;
        align-items: center;
    }
    
    section#about h2, 
    section#projects h2, 
    section#contact h2 {
        font-size: 2.8rem;
    }
    
    #home h1 {
        font-size: 3.2rem;
    }
    
    #home p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-group h3 {
        font-size: 1.3rem;
    }
    
    #home h1 {
        font-size: 2.5rem;
    }
    
    #home p {
        font-size: 1.2rem;
    }
    
    section#about h2, 
    section#projects h2, 
    section#contact h2 {
        font-size: 2.2rem;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    
    #contact-form button {
        align-self: stretch;
        text-align: center;
    }
    
    #contact-form input:focus,
    #contact-form textarea:focus {
        box-shadow: none;
    }

    .skills-group:hover,
    .project-card:hover,
    #contact-form button:hover {
        box-shadow: none;
        transform: none;
    }
}
