:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --accent: #2e2e2e;
    --line-color: rgba(46, 46, 46, 0.5); /* Added color for cursor lines */
}

* {
    font-family: 'Cutive Mono', monospace;
    box-sizing: border-box;
}

/* Global link reset */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
    text-decoration: none;
}

body {
    background: var(--white);
    color: var(--black);
    padding: 0.75rem; /* Slightly reduced equal padding on all sides */
    line-height: 1.5;
    margin: 0 auto;
    overflow-x: hidden;
    max-width: 1400px; /* Increased from 700px to use more screen space */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    height: 100vh; /* Set body height to viewport height */
    overflow-y: hidden; /* Prevent vertical scrolling on desktop */
}


h1 {
    font-family: 'Tangerine', cursive;
    font-size: 3.5rem; /* Slightly increased size */
    margin: 0 0 1rem 0; /* Reduced bottom margin from 1.5rem to 1rem */
    font-weight: 700;
    position: relative;
    letter-spacing: 1px;
}

h1::after {
    content: "_";
    animation: blink 1s step-end infinite;
    color: var(--accent);
    margin-left: 4px;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

p {
    font-family: 'Doto', sans-serif;
    font-size: 1.2rem; /* Increased font size */
    margin-bottom: 1rem; /* Reduced from 2rem for tighter spacing */
    color: #444;
    font-weight: 400; /* Added weight to make paragraphs more prominent */
    line-height: 1.6; /* Improved line height */
}

.timeline-date {
    color: var(--black);
    font-weight: 600; /* Made timeline dates bolder */
    display: inline-block; /* Better inline display */
    margin-right: 0.5rem; /* Added spacing */
}

.timeline {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0; /* Reduced from 1rem 0 */
}

.timeline li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem; /* Reduced from 1rem for tighter spacing */
    font-size: 1rem; /* Increased font size */
    list-style: none;
    list-style-type: none;
    line-height: 1.6; /* Improved line height */
}

.timeline li.highlight {
    font-weight: 600; /* Increased font weight for highlighted timeline items */
    color: #0b0b0b; /* Darker color for better readability */
}

.timeline li.highlight:first-child {
    margin-bottom: 1.5rem; /* Add extra space after the first highlighted paragraph */
}

.timeline li::before,
.timeline li::after {
    content: none;
    display: none;
}

.timeline li:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Added styles for Skills section heading */
h3 {
    font-family: 'Cutive Mono', monospace;
    font-size: 1.3rem; /* Slightly increased size */
    margin-top: 1.5rem; /* Reduced from 2.5rem */
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    font-weight: bold;
    color: var(--black);
}

.btn {
    font-family: 'Doto', sans-serif;
    font-weight: 500;
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 2px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.container {
    margin: 0 auto;
    padding: 0;
    z-index: 1;
    max-width: 100%; /* Allow container to use full width */
}

.main-layout {
    display: flex;
    gap: 2rem; /* Reduced gap to prevent overflow */
    align-items: center; /* Changed from flex-start to center to vertically center both sections */
    margin-top: 0; /* Remove top margin since we have body padding */
    padding: 0;
    width: 100%; /* Ensure layout doesn't exceed container width */
    max-width: 100%; /* Prevent overflow */
    height: calc(100vh - 1.5rem); /* Use viewport height minus body padding (0.75rem top + 0.75rem bottom) */
}

.image-section {
    flex: 0 0 45%; /* Reduced from 50% to account for gap */
    position: relative; /* Changed from sticky to relative */
    display: flex;
    justify-content: center; /* Center the grid horizontally */
    align-items: center; /* Center the grid vertically */
}

.content-section {
    flex: 1; /* Use all remaining space */
    min-width: 0; /* Allow content to shrink */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    height: 100%; /* Use full height of parent */
    overflow-y: auto; /* Allow scrolling within content section if needed */
}

/* Updated image grid for right side */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem; /* Reduced gap between images */
    margin: 0;
    max-width: 500px; /* Increased from 400px to make grid even wider */
}

.image-grid img {
    width: 100%;
    height: 220px; /* Increased height to make images more square */
    object-fit: cover;
    border-radius: 4px; /* Slightly increased border radius */
}

/* Removed .image-collage styles */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-links {
    position: fixed;
    bottom: 20px;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.95rem;
    color: var(--black);
    z-index: 1001; /* Ensure it's above the grid and cursor lines */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align items */
}

.social-links.bottom-left {
    left: 20px; /* Position for bottom-left links */
    justify-content: flex-start; /* Align links to the left */
}

.social-links.bottom-right {
    right: 20px; /* Position for bottom-right button */
    justify-content: flex-end; /* Align button to the right */
}

.social-links a {
    color: var(--black);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.2rem 0;
    position: relative;
    margin-right: 0.75rem; /* Add some spacing between links */
}

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

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.social-links a:hover::after {
    width: 100%;
}

.social-links span {
    margin: 0 0.5rem;
    color: var(--accent);
}

.social-links i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* Added styles for cursor lines */
.cursor-line {
    position: fixed;
    background-color: transparent; /* Make background transparent */
    border-style: dotted; /* Dotted style */
    border-width: 0.5px; /* Very thin lines */
    border-color: rgba(46, 46, 46, 0.2); /* Very light grey, adjust alpha for lightness */
    pointer-events: none; /* Make lines non-interactive */
    z-index: 1000; /* Below social links, above content */
    display: none; /* Hide initially, show with JS */
    opacity: 0; /* Start faded out */
    transition: opacity 0.2s ease; /* Fade in/out smoothly */
    padding: 0; /* Ensure no padding */
    margin: 0; /* Ensure no margin */
    transform-origin: center center; /* Explicitly set transform origin to center */
    box-sizing: border-box; /* Ensure border-box model */
}

.cursor-line-x {
    width: 100vw; /* Use viewport width instead of 100% */
    height: 0px; /* No height for horizontal line, border will be the line */
    top: 0; /* Align to the top edge */
    transform: translateY(0); /* No vertical translation */
    left: 0; /* Explicitly set left to 0 */
    right: 0; /* Added right: 0 to ensure full width from left to right */
}

.cursor-line-y {
    height: 100vh; /* Use viewport height instead of 100% */
    width: 0px; /* No width for vertical line, border will be the line */
    left: 0; /* Align to the left edge */
    transform: translateX(0); /* No horizontal translation */
    top: 0;
    box-sizing: border-box; /* Ensure border-box model */
}

.last-updated {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem; /* Reduced font size */
    color: var(--black);
    position: fixed; /* Changed to fixed positioning */
    top: 15px; /* Distance from the top */
    right: 15px; /* Distance from the right */
    z-index: 1001; /* Ensure it's above other elements if needed */
    text-align: right; /* Align text to the right */
}

.time-elapsed {
    font-size: 0.65rem; /* Slightly smaller than the main text */
    color: var(--accent); /* Use accent color for the timer */
    margin-top: 0.2rem; /* Small gap between the two lines */
    opacity: 0.8; /* Slightly transparent for subtlety */
}

@media (min-width: 641px) {
    body {
        padding: 1rem; /* Equal padding on all sides */
        max-width: 1400px; /* Increased max-width */
    }

    .container {
        margin: 0 auto;
        padding: 0;
        max-width: 100%;
    }

    .image-grid img {
         max-width: none; /* Remove max-width constraint to use full available space */
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem;
        height: auto; /* Allow natural height on mobile */
        overflow-y: auto; /* Allow scrolling on mobile */
        font-size: 0.8rem; /* Smaller text on mobile */
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
        margin: 0;
    }

    .main-layout {
        flex-direction: column;
        gap: 2rem;
        height: auto; /* Allow natural height on mobile */
    }
    
    .image-section {
        flex: none;
        width: 100%;
        position: static;
    }

    .image-grid {
        padding: 1rem 0;
        max-width: 100%;
        margin: 1rem auto 3rem auto;
        gap: 0.75rem; /* Increased gap for better spacing */
        grid-template-columns: 1fr 1fr; /* Keep 2 columns */
    }

    .image-grid img {
        width: 100%; /* Full width of grid cell */
        height: 180px; /* Fixed height for consistency */
        object-fit: cover;
        border-radius: 4px;
    }

    /* Reduce text sizes on mobile */
    h1 {
        font-size: 2.5rem; /* Smaller title on mobile */
        margin: 0 0 1rem 0;
    }

    p {
        font-size: 1rem; /* Smaller paragraph text */
        margin-bottom: 1.5rem;
    }

    .timeline li {
        font-size: 0.9rem; /* Smaller timeline text */
        margin-bottom: 0.8rem;
    }

    .social-section h3 {
        font-size: 1rem; /* Smaller section headings */
        margin-bottom: 1rem;
    }

    .social-grid {
        gap: 0.75rem;
    }
    
    .connect-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem; /* Smaller social link text */
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

@media print {
    .image-grid, .social-links {
        display: none;
    }
    
    .timeline-date {
        color: var(--black) !important;
    }
}

/* --------------------------------------- */
/*  Social Section Styles */
/* --------------------------------------- */

.social-section {
    margin: 0.1rem 0 1rem 0; /* Reduced top margin from 0.25rem to 0.1rem */
}

.social-section h3 {
    font-family: 'Doto', sans-serif; /* Changed to Doto font */
    font-size: 1.4rem; /* Slightly larger for more impact */
    margin-top: 0; /* Override the general h3 margin-top */
    margin-bottom: 0.3rem; /* Reduced from 0.75rem to 0.3rem */
    font-weight: 600; /* Slightly lighter than bold for elegance */
    color: var(--black);
    letter-spacing: 0.5px; /* Add letter spacing for elegance */
    position: relative; /* For potential decorative elements */
    text-align: left; /* Ensure left alignment */
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem; /* Reduced from 0.5rem to 0.3rem */
    margin-bottom: 2rem;
}

.social-grid .connect-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--black);
    text-decoration: none;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.social-grid .connect-link:hover {
    color: var(--accent);
}

.social-grid .connect-link:visited {
    color: var(--black) !important;
    text-decoration: none !important;
}

.social-grid .connect-link:active {
    color: var(--accent) !important;
    text-decoration: none !important;
}

.connect-label {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .social-grid {
        gap: 0.75rem;
    }
    
    .connect-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.typewriter {
    font-family: "Caveat", cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.4;
    min-height: 3.5rem;
}

.typewriter::after {
    content: "|";
    animation: blink 1s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hide main content initially */
.container {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.container.show {
    opacity: 1;
}

/* Projects Section Styles */
.projects-section {
    margin-top: 0.3rem; /* Reduced from 1rem */
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem; /* Reduced from 0.3rem */
    margin-top: 0.5rem;
}

.project-item {
    display: inline-flex;
    flex-direction: column;
    padding: 0.15rem 0.4rem; /* Reduced from 0.25rem 0.5rem */
    background: rgba(46, 46, 46, 0.05);
    border: 1px solid rgba(46, 46, 46, 0.1);
    border-radius: 2px; /* Reduced from 3px */
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    background: rgba(46, 46, 46, 0.1);
    border-color: rgba(46, 46, 46, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 46, 46, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-item:hover::before {
    left: 100%;
}

.project-name {
    font-family: 'Doto', sans-serif;
    font-weight: 600;
    font-size: 0.7rem; /* Reduced from 0.8rem */
    color: var(--black);
    margin-bottom: 0.02rem; /* Reduced from 0.05rem */
}

.project-desc {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.55rem; /* Reduced from 0.65rem */
    color: var(--accent);
    opacity: 0.8;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    background: rgba(46, 46, 46, 0.08);
    border: 1px solid rgba(46, 46, 46, 0.15);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.55rem;
    color: var(--accent);
    margin-left: 0.2rem;
}

.view-all-btn:hover {
    background: rgba(46, 46, 46, 0.15);
    border-color: rgba(46, 46, 46, 0.3);
    transform: translateY(-1px);
}

/* Mobile responsive for projects */
@media (max-width: 640px) {
    .projects-grid {
        gap: 0.4rem;
    }
    
    .project-item {
        padding: 0.3rem 0.6rem;
    }
    
    .project-name {
        font-size: 0.85rem;
    }
    
    .project-desc {
        font-size: 0.7rem;
    }
}


