/**
 * @file styles.css
 * @description Main stylesheet for Gabriel Bendix Portfolio Website
 * @author Gabriel Bendix
 * @version 1.0.0
 * @since 2025
 */

/*=============================================================================
  TABLE OF CONTENTS
  1. CSS Variables & Custom Properties
  2. Reset & Base Styles  
  3. Typography
  4. Layout & Grid System
  5. Navigation
  6. Hero Section
  7. Featured Projects
  8. Project Cards
  9. Work Experience
  10. About Section
  11. Contact Section
  12. Footer
  13. Animations & Effects
  14. Responsive Design
=============================================================================*/

/*=============================================================================
  1. CSS VARIABLES & CUSTOM PROPERTIES
=============================================================================*/

:root {
  /* Color Palette */
  --primary-green: #4ade80;
  --primary-green-dark: #22c55e;
  --primary-green-light: #86efac;
  
  /* Background Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #0d1b0d;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --text-accent: #c0c0c0;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/*=============================================================================
  2. RESET & BASE STYLES
=============================================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1b0d 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #4ade80;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #4ade80;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Glitch Background - Contained within hero section */
#glitch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000000;
    display: block;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    #glitch-canvas {
        transition: opacity 0.1s ease-out;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content-rectangle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.rotating-text {
    color: #ffffff;
    border-radius: 4px;
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
    min-width: 200px;
    text-align: left;
}

.hero-description {
    font-size: 1.1rem;
    color: #a3a3a3;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: rgba(0, 0, 0, 0.6);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

/* Featured Project Hero Section */
.featured-project-hero {
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
}

.featured-project-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 20px 4rem 20px;
}

.featured-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0;
}

.featured-project-images {
    position: relative;
}

.featured-image-grid {
    display: block;
    height: 500px;
}

.featured-img {
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.featured-img:hover {
    transform: translateY(-5px);
}

.featured-project-text {
    padding-left: 2rem;
}

.featured-project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.featured-project-description {
    font-size: 1rem;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-project-highlights {
    margin-bottom: 1.5rem;
}

.featured-project-highlights h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.featured-project-highlights ul {
    list-style: none;
    padding: 0;
}

.featured-project-highlights li {
    color: #a3a3a3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.featured-project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #4ade80;
}

.featured-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag.featured {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: #000000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
}

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

.btn.featured {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Regular Featured Projects (keeping original styles for compatibility) */
.featured-projects {
    padding: 4rem 0;
    background: transparent;
}

/* Projects Section */
.projects {
    padding: 6rem 0 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.projects-grid .project-card {
    max-width: 500px;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 222, 128, 0.3);
}

.project-image {
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    text-align: center;
}

.placeholder-image i {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-date {
    font-size: 1.1rem;
    color: #c0c0c0;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.project-content p {
    color: #a3a3a3;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

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

.tech-tag {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.project-links {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.project-link:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-info p {
    color: #a3a3a3;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4ade80;
    color: #000000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a3a3a3;
    font-size: 0.875rem;
}

/* About Page Styles */
.about {
    padding: 6rem 0 4rem 0;
}

.about-content {
    margin-bottom: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

/* Hover effects removed for about card */

.about-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-prof-img {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Hover effects removed for about profile image */

.about-text {
    flex: 1;
}

.professional-photo {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.professional-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.professional-photo i {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.professional-photo p {
    color: #a3a3a3;
    font-size: 1rem;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-description {
    font-size: 1.1rem;
    color: #a3a3a3;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.skills-section {
    margin-bottom: 4rem;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(74, 222, 128, 0.2);
    transform: translateY(-2px);
}

/* Education Section */
.education {
    padding: 6rem 0;
}

.education-section {
    margin-top: 4rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Hover effects removed for education card */

.education-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 1.5rem;
    color: #000000;
}

.education-info {
    flex: 1;
}

.education-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.education-info h4 {
    font-size: 1.2rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #a3a3a3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.education-description {
    color: #a3a3a3;
    line-height: 1.6;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.education-icon i {
    font-size: 1.5rem;
    color: #000000;
}

.education-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.education-content h4 {
    font-size: 1.2rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #a3a3a3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-description {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-tag {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Interests Section */
.interests {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.interest-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 222, 128, 0.3);
}

.interest-item i {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.interest-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.interest-item p {
    color: #a3a3a3;
    line-height: 1.6;
}

/* Work Page Styles */
.work {
    padding: 6rem 0 4rem 0;
}

.work .section-title {
    margin-bottom: 3rem;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    height: calc(100% - 500px);
    width: 2px;
    background: linear-gradient(to bottom, #4ade80, #22c55e);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 1rem;
}

.timeline-item.current .timeline-marker {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
    border: 2px solid #4ade80;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 5;
    border: 2px solid #4ade80;
    position: relative;
}

.timeline-marker i {
    font-size: 1.5rem;
    color: #4ade80;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateX(10px);
}

.work-header {
    margin-bottom: 1.5rem;
}

.work-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.work-header h4 {
    font-size: 1.2rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.work-period {
    color: #a3a3a3;
    font-size: 0.9rem;
    font-weight: 500;
}

.work-description {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-achievements h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.work-achievements ul {
    list-style: none;
    padding: 0;
}

.work-achievements li {
    color: #a3a3a3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.work-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #4ade80;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Skills Gained Section */
.skills-gained {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

/* Projects Page Styles */
.projects-filter {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4ade80;
    color: #000000;
    border-color: #4ade80;
}

.projects-section {
    padding: 4rem 0;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Contact Page Styles */
.contact {
    padding: 6rem 0 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover effects removed for contact cards */

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-info-card p {
    color: #a3a3a3;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a3a3a3;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

.contact-icon i {
    font-size: 1.1rem;
    color: #4ade80;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #a3a3a3;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-weight: 500;
    cursor: pointer;
}

.resume-download:hover,
.resume-download:focus,
.resume-download:active,
.resume-download:visited {
    background: rgba(74, 222, 128, 0.1) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.social-section {
    margin-top: 1.5rem;
}

.social-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.contact-social a:hover {
    background: #4ade80;
    color: #000000 !important;
    transform: translateY(-2px);
}

.social-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.2rem;
    color: #4ade80;
}

.availability {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.availability h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.available {
    background: #4ade80;
}

.status-note {
    color: #a3a3a3;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.faq-item p {
    color: #a3a3a3;
    line-height: 1.6;
}

/* Form Status */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 87.5%;
    }

    .container {
        padding: 0 12px;
    }

    .nav-logo a {
        font-size: 1.25rem;
    }

    .hero-photo {
        max-width: 280px;
    }

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

    .project-image {
        height: 240px;
    }

    .featured-image-grid {
        height: 260px;
    }
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-container {
        padding: 0 1rem;
    }

    .featured-project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image-grid {
        height: 300px;
    }

    .featured-project-text {
        padding-left: 0;
        text-align: center;
    }

    .featured-project-title {
        font-size: 2rem;
    }

    .hero-content-rectangle {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
        margin-top: 1rem;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-text {
        order: 2;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .about-prof-img {
        width: 150px;
        height: 210px;
    }

    .education-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

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

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
    }

    .timeline-marker i {
        font-size: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Featured Project: center Key Features on phones and remove triangles */
    .featured-project-highlights ul {
        text-align: center;
        padding-left: 0;
    }

    .featured-project-highlights li {
        padding-left: 0;
    }

    .featured-project-highlights li::before {
        content: none;
        border: none;
    }
    /* Ensure rotating text centers properly on phones */
    .rotating-text {
        min-width: 0;
        text-align: center;
    }

    /* Center education icon and align content when stacked on phones */
    .education-content {
        align-items: center;
    }

    .education-icon {
        margin: 0 auto;
    }
    html {
        font-size: 81.25%;
    }

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

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

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

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

    .project-image {
        height: 200px;
    }

    .featured-image-grid {
        height: 220px;
    }

    .contact-social a {
        width: 44px;
        height: 44px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    /* Ensure project tech tags show clearly on phones */
    .project-card {
        overflow: visible;
    }
    .project-tech {
        justify-content: center;
    }
    .tech-tag {
        font-size: 0.8rem;
    }
}
