/* 
   dan-monaghan.com styles
   A modern, professional design with subtle animations
*/

:root {
    --primary-color: #2A63FF;
    --secondary-color: #1E1E2C;
    --accent-color: #5DFDCB;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #121212;
    --light-bg: #f9f9f9;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(42, 99, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFEmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmU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, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 20px;
    background: var(--accent-color);
    left: -10px;
    top: 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

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

.btn.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn.secondary:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.hero-content {
    padding: 0 5%;
    width: 55%;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 80%;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.4s ease forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s 0.6s ease forwards;
    opacity: 0;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(249, 249, 249, 1) 0%, rgba(249, 249, 249, 0.8) 15%, rgba(249, 249, 249, 0) 50%);
    pointer-events: none;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none; /* Prevents clicking on video */
}

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

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

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.about-text {
    width: 55%;
    padding-right: 3rem;
}

.about-image {
    width: 45%;
    position: relative;
}

.image-container {
    position: relative;
}

.image-placeholder {
    display: none; /* Hide the placeholder since we're using an image now */
}

.about-profile-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    position: relative;
    box-shadow: var(--shadow);
}

.image-caption {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-weight: 500;
    font-style: italic;
    z-index: 2;
}

.skills {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1.2rem;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Work Section and other content sections */
.work-grid, .more-work, .projects-carousel, .contact-content {
    padding-left: 30px;
}

/* Project Cards and Carousel */
.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

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

.project-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-animation {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    object-fit: cover; /* Ensures video fills the container properly */
    background: #f5f5f5; /* Fallback color while video loads */
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-info p {
    margin-bottom: 1.2rem;
    color: #666;
    flex-grow: 1;
}

.project-link {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
}

.project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

/* Work items and images - updated to match the design */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.work-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.image-placeholder-work {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

/* Project-specific placeholder styling */
.arc-placeholder {
    background: linear-gradient(45deg, #3a7bd5, #00d2ff);
}

.sifted-placeholder {
    background: linear-gradient(45deg, #ff6e7f, #bfe9ff);
}

.magicleap-placeholder {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.work-info {
    padding: 1.5rem;
    background: white;
}

.work-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.work-info p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.work-tags span {
    font-size: 0.8rem;
    background: rgba(42, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.view-project {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.work-item:hover .work-thumbnail {
    transform: scale(1.05);
}


.resume-link {
    margin-top: 30px;
    text-align: center;
}

.resume-link .btn.secondary {
    font-size: 0.9rem;
    padding: 10px 20px;
    display: inline-block;
}

.pdf-modal-content {
  position: relative;
  width: 95vw; /* near full viewport width */
  height: 95vh; /* near full viewport height */
  max-width: 1200px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.pdf-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 4px;
}