/* Base Styles */
:root {
    --primary-color: #0ae0a0;
    --secondary-color: #9e9e9e;
    --background-color: #121212;
    --card-background: #1a1a1a;
    --text-color: #f0f0f0;
    --light-gray: #333333;
    --dark-gray: #2a2a2a;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #07b683;
}

/* Header */
.header {
    height: auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0 1rem 0;
    position: relative;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.typing-text {
    color: var(--primary-color);
    font-weight: bold;
}

.highlight {
    color: var(--primary-color);
}

.nav {
    margin-top: 2rem;
}

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

.nav a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    color: var(--primary-color);
}

.nav a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Resume Link */
@keyframes floatResume {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.resume-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    animation: floatResume 1.5s infinite ease-in-out;
}

.resume-link:hover {
    color: #07b683; /* Darker shade on hover */
}

/* Social Icons */
.social-icons {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon svg {
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.social-icon svg:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

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

/* Sections */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.fade-in {
    opacity: 1;
    animation: fadeIn 0.8s ease forwards;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-number {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.section-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

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

/* About Section */
.about-content {
    max-width: 100%;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

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

/* Skills Section */
.skills-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.skills-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

#skills-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0;
    perspective: 1000px;
    overflow: hidden;
    border-radius: 8px;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary-color);
    width: 100%;
}

/* Projects Section */
.view-more {
    text-align: right;
    margin-bottom: 2rem;
}

.view-more a {
    font-size: 0.9rem;
    text-transform: lowercase;
    color: var(--secondary-color);
}

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

.project-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--transition);
}

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

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

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

.project-link {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.project-tech span {
    font-size: 0.8rem;
    background-color: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.arrow-link {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.show-more {
    text-align: center;
    margin-top: 3rem;
}

#show-more-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

#show-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
        transform: none;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .skills-section {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }
    
    .header {
        height: auto;
        padding: 4rem 0;
    }
}

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

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

.modal-content {
    background-color: var(--card-background);
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Contact Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 224, 160, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: #07b683;
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Error Message Styles */
.error-message {
    background-color: #ff4444;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
} 

#contactSuccessPopup.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
#contactSuccessPopup.modal.show {
    display: flex;
    opacity: 1;
}
#contactSuccessPopup .modal-content {
    background: #181818;
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    color: var(--text-color);
    position: relative;
    animation: fadeIn 0.5s;
}
#contactSuccessPopup .close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s;
}
#contactSuccessPopup .close-modal:hover {
    color: #fff;
}
#contactSuccessPopup h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}
#contactSuccessPopup p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
#contactSuccessPopup .contact-info-inline {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.1rem;
    margin-top: 1rem;
}
#contactSuccessPopup .contact-info-inline div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
} 

.project-card .visit-btn,
.project-card .absolute.inset-0.flex.flex-col.items-center.justify-center.z-20 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}

.project-card:hover .visit-btn,
.project-card:hover .absolute.inset-0.flex.flex-col.items-center.justify-center.z-20 {
  opacity: 1;
  pointer-events: auto;
} 

/* Hide the floating Visit+line container by default, show only on hover */
.project-card .absolute.inset-0.flex.flex-col.items-center.justify-center.z-20 {
  display: none;
  opacity: 0; /* Keep for transition */
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}

.project-card:hover .absolute.inset-0.flex.flex-col.items-center.justify-center.z-20 {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Optionally, hide the Visit button itself if you want only the line to show on hover */
/*
.project-card .visit-btn {
  display: none;
}
.project-card:hover .visit-btn {
  display: block;
}
*/ 

.visit-btn {
    color: #fff;
} 

.visit-btn:hover {
    background-color: #fff;
} 