/* style.css */
:root {
    --background-color: #0a0a0a; /* Slightly off-black */
    --primary-text-color: #f0f0f0;
    --secondary-text-color: #a0a0a0;
    --accent-color: #ffffff; /* White accent for highlights/borders */
    --card-background: #1a1a1a; /* Dark grey for cards */
    --button-background: #333;
    --button-hover-background: #555;
    --nav-background: rgba(10, 10, 10, 0.85); /* Semi-transparent nav */
    --nav-border-color: #333;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

body {
    font-family: 'Inter', 'Arial', sans-serif; /* Using Inter font */
    /* background-color removed, video will show */
    color: var(--primary-text-color);
    margin: 0;
    padding-top: 70px; /* Keep padding for sticky nav */
    line-height: 1.6;
    position: relative; /* Needed for pseudo-element */
    overflow-x: hidden; /* Prevent horizontal scroll */
    touch-action: manipulation; /* Prevent double-tap zoom while allowing pinch zoom */
}

/* Remove iOS tap highlight for all clickable elements */
a, button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Prevent text selection on buttons only */
button {
    -webkit-user-select: none;
    user-select: none;
}

/* Add top fade effect */
body::before {
    content: '';
    position: fixed; /* Fix it to the viewport top */
    top: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Increased height of the fade */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
    z-index: 0; /* Behind content-wrapper but above video */
    pointer-events: none; /* Allow clicks through the fade */
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100; /* Place behind everything */
    object-fit: cover; /* Cover the screen */
    filter: brightness(0.4); /* Darken the video slightly */
}

.content-wrapper {
    position: relative;
    z-index: 1; /* Ensure content is above the body::before fade */
    /* Removed fade effect gradient */
    /* background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 20%, transparent 50%); */
}

/* Remove previous container centering */
/*
.container {
    max-width: 800px;
    padding: 2rem;
}
*/

/* Hero Section */
.hero {
    /* Remove background if any */
    background-color: transparent;
    /* Adjust padding if needed */
    min-height: calc(85vh - 70px - 2rem);
    padding: 2rem 2rem 0; /* Reduced top padding for desktop to move content up */
    text-align: center; /* Keep this to center inline/inline-block children */
    display: flex; /* Use flex to vertically center content */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
}

.hero-content {
    /* Removed display: flex and related properties */
    max-width: 1000px;
    width: 100%;
}

/* New styles for circular hero image */
.hero-profile-image {
    width: 310px; /* Increased size slightly */
    height: 310px; /* Increased size slightly */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
    /* Center the image */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem; /* Increased space below image */
    position: relative;
    transition: all 0.4s ease;
}

.hero-profile-image:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
    transform: scale(1.02);
}

.hero-text {
    text-align: center; /* Center the text */
}

.hero-text h1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0ff 15%, #8b93d8 30%, #f0f0ff 45%, #ffffff 60%, #f5f0ff 75%, #8b93d8 90%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
    /* Adjusted clamp values slightly */
    font-size: clamp(1.8em, 4.5vw, 2.5em); 
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.25; /* Slightly increased line-height for two lines */
    letter-spacing: -0.5px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.hero-text p {
    color: #a8b3ff;
    font-size: clamp(0.9em, 2vw, 1.0em); /* Slightly fluid subtext */
    max-width: 450px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    opacity: 0.9;
}

/* Main Navigation - Sticky */
.main-nav {
    /* Keep sticky styles */
    position: sticky;
    top: 5px;
    z-index: 1000;
    /* Purple gradient theme */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(30, 30, 38, 0.85) 100%);
    backdrop-filter: blur(14px);
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
    /* Rest of nav styles */
    padding: 0.8rem 1rem; /* Slightly increased padding for bigger bar */
    margin: 0 auto 1.5rem; /* Increased bottom margin to separate from photo */
    width: fit-content;
    max-width: calc(100% - 40px);
    text-align: center;
}

.main-nav a {
    /* Keep link styles */
    color: #e8ecff; /* Lighter, closer to white */
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 30px;
    font-weight: 400;
    border: 1px solid transparent;
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), color 0.7s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    color: #ffffff;
    border-color: rgba(102, 126, 234, 0.5);
}

.main-nav a:hover, .main-nav a:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
    color: #d6dcff;
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

/* Remove active state - navigation links should only be active based on scroll position */
.main-nav a:active {
    background: inherit;
    color: inherit;
    border-color: inherit;
    transform: none;
}

/* Social Links - Below Hero */
.social-links {
    background-color: transparent;
    text-align: center;
    padding: 0 0 2.5rem; /* Increased bottom padding */
    margin-top: -3rem; /* Negative margin to bring icons closer to text above (desktop) */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    color: #a8b3ff;
    text-decoration: none;
    font-size: 2.4em; /* Reduced from 3.6em */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
    border: 1px solid rgba(102, 126, 234, 0.35);
    width: 3.5rem;
    height: 3.5rem;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
}

.social-link.has-text {
    width: auto;
    min-width: 3.5rem;
    padding: 0.5rem 0.9rem;
}

.social-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
}

.social-link:hover {
    color: #d6dcff;
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.28), rgba(118, 75, 162, 0.28));
    border-color: rgba(102, 126, 234, 0.55);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.social-link:active {
    color: #ffffff;
    transform: translateY(-1px) scale(0.98);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-link i {
    /* Icon specific styles if needed */
}

/* Main Content Area */
.main-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    position: relative;
}

.content-section {
    /* Remove specific padding/margin for sticky offset, handled by body padding */
    padding-top: 4rem; /* Increased padding to prevent text cutoff at top */
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--nav-border-color);
    padding-bottom: 2rem;
}

.content-section:last-of-type {
    border-bottom: none; /* No line for the last section */
}

.content-section h2 {
    color: var(--primary-text-color);
    font-size: 2em;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* About Section Specifics */
.about-section {
    text-align: center;
    padding-top: 5rem; /* Extra padding to prevent text cutoff on long phones */
}

.about-section h2 {
    margin-bottom: 3rem; /* Increased spacing below "About Me" title */
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Increased spacing */
    align-items: center;
    margin-top: 3rem; /* Increased top margin */
}

.about-profile {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.about-profile-picture {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.about-profile-picture:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Increased spacing between cards */
    align-items: center;
}

.about-intro {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    border-left: 3px solid rgba(102, 126, 234, 0.5);
}

.about-description {
    color: var(--primary-text-color);
    font-size: 1.05em;
    line-height: 1.8;
    margin: 0;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; /* Increased gap between info cards */
    width: 100%;
    margin-top: 0.5rem; /* Extra spacing above info cards */
}

.info-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* keep icon aligned to the left */
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.info-icon {
    font-size: 1.5em;
    color: #a8b3ff;
    flex-shrink: 0;
}

/* Shift only the email icon (first info-card) 2px to the right */
.about-info-grid .info-card:first-child .info-icon {
    margin-left: 2px;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* center label + value */
    flex: 1; /* take remaining space so content can center while icon stays left */
    gap: 0.25rem;
    min-width: 0;
}

.info-label {
    font-size: 0.8em;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--primary-text-color);
    font-size: 0.95em;
    font-weight: 500;
    word-break: break-word;
    min-height: 1.8em; /* Fix height to prevent layout shift when revealing email */
    display: flex;
    align-items: center;
}

/* Styled email link (revealed) */
.email-link,
.email-link:visited {
    color: #a8b3ff; /* light indigo to match theme */
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.85em; /* Smaller font to fit on one line */
    white-space: nowrap; /* Prevent wrapping to two lines */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Show ellipsis if too long (shouldn't happen) */
    max-width: 100%; /* Ensure it fits in container */
}

.email-link:hover,
.email-link:focus {
    color: #d6dcff; /* lighter on hover for readability */
    outline: none;
}

.reveal-email {
    background: transparent;
    color: #a8b3ff;
    border: 1px dashed rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: all 0.25s ease;
}

.reveal-email:hover,
.reveal-email:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-color: rgba(102, 126, 234, 0.6);
}

.reveal-email:active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border-color: rgba(102, 126, 234, 0.7);
    color: #d6dcff;
    transform: scale(0.98);
}

.interests {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
}

.interests h3 {
    color: var(--primary-text-color);
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    font-size: 1.15em;
    letter-spacing: -0.3px;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.interest-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #a8b3ff;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: 500;
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.interest-tag:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-color: rgba(102, 126, 234, 0.35);
}

/* Experience Section */
.experience-section {
    /* Inherits general section styling */
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr; /* single-column stack at all sizes */
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .experience-grid {
        grid-template-columns: 1fr; /* keep single column on tablets/desktops */
    }
}

@media (min-width: 1200px) {
    .experience-grid {
        grid-template-columns: 1fr; /* keep single column on large screens */
    }
}

.experience-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Top border for first experience item */
.experience-item:first-of-type::before {
    opacity: 1;
}

/* Bottom border for last experience item */
.experience-item:last-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    opacity: 1;
}

.experience-item:hover {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(35, 35, 48, 0.95) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item[data-highlight] {
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(35, 35, 48, 0.95) 100%);
}

.experience-item[data-highlight]::before {
    opacity: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.experience-title-group {
    flex: 1;
    min-width: 0;
}

.experience-item h4 {
    color: var(--primary-text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.experience-org {
    color: #a8b3ff;
    font-size: 0.95em;
    font-weight: 500;
    display: block;
}

.experience-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a8b3ff;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
    user-select: none;
    opacity: 0.9;
}

.experience-badge.full-time {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(0, 206, 209, 0.15));
    border-color: rgba(64, 224, 208, 0.35);
    color: #4dd0e1;
}

.experience-badge.part-time {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(25, 118, 210, 0.15));
    border-color: rgba(33, 150, 243, 0.35);
    color: #64b5f6;
}

.experience-badge.seasonal {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border-color: rgba(255, 193, 7, 0.35);
    color: #ffc107;
}

.experience-badge.internship {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(56, 142, 60, 0.15));
    border-color: rgba(76, 175, 80, 0.35);
    color: #81c784;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88em;
    color: var(--secondary-text-color);
    margin-bottom: 0.5rem;
}

.experience-dates,
.experience-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.experience-dates i,
.experience-location i {
    font-size: 0.9em;
    opacity: 1;
}

.experience-dates i.fa-calendar,
.experience-location i.fa-map-marker-alt,
.experience-location i.fa-globe,
.experience-location i.fa-building {
    color: #a8b3ff; /* Açık mor - tüm ikonlar için */
}

.experience-description {
    color: var(--secondary-text-color);
    line-height: 1.7;
    font-size: 0.95em;
    margin: 0;
    flex: 1;
}

.experience-description strong {
    color: #d0d0d0; /* Slightly dimmer than primary text for subtle emphasis */
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.2px;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #a8b3ff;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: 500;
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
    border-color: rgba(102, 126, 234, 0.35);
}

/* Portfolio Section */
.portfolio-section {
    /* Inherits general section styling */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Space between grid items */
    margin-top: 2rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    }
}

@media (min-width: 1025px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on desktop for better readability */
    }
}

.portfolio-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(35, 35, 48, 0.95) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Hide purple bar for featured project on hover */
.featured-project.portfolio-item:hover::before {
    opacity: 0;
}

.portfolio-item:active {
    background: linear-gradient(135deg, rgba(30, 30, 42, 0.98) 0%, rgba(38, 38, 52, 0.98) 100%);
    transform: translateY(-2px) scale(0.98);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.portfolio-item:active::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
}

/* Hide purple bar for featured project on active/click */
.featured-project.portfolio-item:active::before {
    opacity: 0;
}

.portfolio-item:active h4 {
    color: #b8c3ff;
}

.portfolio-item h4 {
    color: var(--primary-text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.portfolio-item:hover h4 {
    color: #a8b3ff;
}

.portfolio-item h4::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover h4::after {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-item p {
    color: var(--secondary-text-color);
    line-height: 1.7;
    font-size: 0.98em;
    margin-bottom: 0;
}

.portfolio-item p strong {
    color: #d0d0d0; /* Slightly dimmer than primary text for subtle emphasis */
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.2px;
}

/* Featured Project Styles */
.featured-project {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(35, 35, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible; /* Changed to visible to allow glow effects */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    cursor: default; /* Don't show pointer cursor since card itself is not clickable */
}

.featured-project.animate-in {
    opacity: 1;
}

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

.featured-project::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.featured-project:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.featured-project:hover::before {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    color: #a8b3ff;
    font-size: 0.85em;
    font-weight: 500;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.featured-badge i {
    font-size: 1em;
    color: #ffd700;
}

.featured-content {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: flex-start;
    overflow: hidden; /* Clip content to border-radius */
    border-radius: 16px; /* Match parent border-radius */
}

.featured-visual {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere-logo {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sphere-circle {
    width: 160px;
    height: 160px;
    animation: rotate 20s linear infinite;
    transition: transform 0.3s ease-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sphere-circle svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.4));
}

.sphere-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.sphere-name {
    font-size: 1.8em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sphere-dsp {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    margin-top: -0.3rem;
}

.featured-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.featured-header {
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    padding-bottom: 1rem;
}

.featured-header .meta-ownership {
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 2em;
    margin: 0 0 0.5rem 0;
    color: var(--primary-text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}


.featured-tagline {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--secondary-text-color);
    margin: 0;
    max-width: 600px;
}

.featured-tagline strong {
    color: #d0d0d0; /* Slightly dimmer than primary text for subtle emphasis */
    font-weight: 700;
    font-size: 1.08em;
    letter-spacing: 0.2px;
}

.featured-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-roles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95em;
}

.role-label {
    color: var(--secondary-text-color);
    font-weight: 500;
}

.role-item {
    color: #a8b3ff;
    font-weight: 600;
}

.role-separator {
    color: var(--secondary-text-color);
}

.meta-ownership {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    font-style: italic;
    margin: 0;
    opacity: 0.8;
}

.featured-products,
.featured-tech {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.products-label,
.tech-label {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    font-weight: 500;
}

.product-chips,
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 20px;
    color: #a8b3ff;
    font-size: 0.9em;
    font-weight: 500;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.chip:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.22), rgba(118, 75, 162, 0.22));
    border-color: rgba(102, 126, 234, 0.4);
}

.chip-link {
    cursor: pointer;
    color: #a8b3ff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25)) !important;
    border-color: rgba(102, 126, 234, 0.45) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.chip-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.35)) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    opacity: 1;
}

.chip-link:active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.45), rgba(118, 75, 162, 0.45)) !important;
    border-color: rgba(102, 126, 234, 0.7) !important;
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    color: #d6dcff;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(160, 160, 160, 0.08);
    border: 1px solid rgba(160, 160, 160, 0.2);
    border-radius: 50px;
    color: var(--secondary-text-color);
    font-size: 0.85em;
    font-weight: 500;
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(160, 160, 160, 0.12);
    border-color: rgba(160, 160, 160, 0.25);
}

.featured-actions {
    display: flex;
    gap: 1.5rem; /* Increased gap to prevent glow overlap */
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 1rem 1rem; /* Increased padding to prevent glow clipping */
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    background: linear-gradient(135deg, #7a8aee, #8a5bb8);
    box-shadow: 0 0 18px rgba(102, 126, 234, 0.5);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: #a8b3ff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.35);
    box-sizing: border-box;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-color: rgba(102, 126, 234, 0.55);
}

.btn-secondary:active {
    transform: translateY(0px) scale(0.98);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border-color: rgba(102, 126, 234, 0.7);
    color: #d6dcff;
}

.btn-spotify {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.06), rgba(30, 215, 96, 0.06));
    border-color: rgba(29, 185, 84, 0.3);
    color: #1DB954;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.btn-spotify:hover {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.12), rgba(30, 215, 96, 0.12));
    border-color: rgba(29, 185, 84, 0.5);
    color: #1ed760;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

.btn-linkedin {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(25, 118, 210, 0.15));
    border-color: rgba(33, 150, 243, 0.4);
    color: #64b5f6;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4); /* Increased opacity to match primary button */
    cursor: pointer; /* Ensure pointer cursor on LinkedIn button */
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(25, 118, 210, 0.25));
    border-color: rgba(33, 150, 243, 0.6);
    color: #90caf9;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5); /* Increased opacity to match primary button */
}

.experience-actions {
    margin-top: 0.75rem;
}

/* Responsive adjustments for all sections */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem; /* Increased spacing for mobile */
    }
    
    .about-section {
        text-align: center;
    }
    
    .about-profile {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .about-profile-picture {
        width: 180px;
        height: 180px;
    }
    
    .profile-glow {
        width: 200px;
        height: 200px;
    }
    
    .about-content {
        width: 100%;
        gap: 2.5rem; /* Increased spacing between content elements on mobile */
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Increased gap between info cards on mobile */
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .experience-badge {
        align-self: flex-start;
    }
    
    .experience-item h4 {
        font-size: 1.15em;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .portfolio-item {
        padding: 1.5rem;
    }
    
    .portfolio-item h4 {
        font-size: 1.2em;
    }
    
    .portfolio-item p {
        font-size: 0.92em;
    }
    
    .featured-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .featured-visual {
        width: 100%;
        margin-bottom: 0;
    }
    
    .sphere-circle {
        width: 140px;
        height: 140px;
    }
    
    .featured-badge {
        top: 15px;
        right: 15px;
        font-size: 0.8em;
        padding: 0.4rem 0.8rem;
    }
    
    .featured-title {
        font-size: 1.6em;
    }
    
    .featured-tagline {
        font-size: 0.95em;
    }
    
    .featured-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding: 1rem 1rem; /* Increased padding on mobile to prevent glow clipping */
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .profile-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .about-profile-picture {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
    
    .profile-glow {
        width: 170px;
        height: 170px;
    }
    
    .about-intro {
        padding: 1.25rem;
    }
    
    .about-description {
        font-size: 0.95em;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-icon {
        font-size: 1.3em;
    }
    
    .interests {
        padding: 1.25rem;
    }
    
    .interest-tag {
        font-size: 0.82em;
        padding: 0.45rem 0.9rem;
    }
    
    .experience-grid {
        gap: 1rem;
    }
    
    .experience-item {
        padding: 1.25rem;
    }
    
    .experience-item h4 {
        font-size: 1.1em;
    }
    
    .experience-org {
        font-size: 0.9em;
    }
    
    .experience-description {
        font-size: 0.9em;
    }
    
    .skill-tag {
        font-size: 0.78em;
        padding: 0.3rem 0.6rem;
    }
    
    .portfolio-grid {
        gap: 1rem;
    }
    
    .portfolio-item {
        padding: 1.25rem;
    }
    
    .portfolio-item h4 {
        font-size: 1.15em;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-item p {
        font-size: 0.88em;
        line-height: 1.6;
    }
    
    .featured-content {
        padding: 1.5rem 1rem;
        overflow: hidden;
    }
    
    .featured-details {
        max-width: 100%;
        overflow: visible; /* Changed to visible to allow glow effects on mobile */
    }
    
    .featured-actions {
        width: 100%;
        gap: 0.75rem;
        padding: 1rem 1rem; /* Increased padding on mobile to prevent glow clipping */
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .sphere-circle {
        width: 120px;
        height: 120px;
    }
    
    .sphere-name {
        font-size: 1.5em;
    }
    
    .sphere-dsp {
        font-size: 1em;
    }
    
    .featured-title {
        font-size: 1.4em;
    }
    
    .featured-badge {
        position: static;
        margin-bottom: 1rem;
        width: fit-content;
        align-self: flex-end;
    }
}

/* Experience Image - Similar to About Profile */
.experience-image-section {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.experience-profile {
    display: flex;
    justify-content: center;
}

.experience-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.experience-showcase-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.experience-showcase-image:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.experience-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Certificates Section */
.certificates-section {
    /* Inherits general section styling */
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.certificate-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 38, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certificate-item:hover {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(35, 35, 48, 0.95) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.certificate-item:hover::before {
    opacity: 1;
}

.certificate-image-wrapper {
    flex-shrink: 0;
    width: 180px;
    max-height: 260px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(26, 26, 26, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    position: relative;
    display: flex;
    align-items: center;
}

.certificate-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-overlay i {
    color: #ffffff;
    font-size: 2em;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-image-wrapper {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.25);
    transform: translateY(-4px);
}

.certificate-item:hover .certificate-image {
    transform: scale(1.05);
}

.certificate-item:hover .certificate-overlay {
    opacity: 1;
}

.certificate-item:hover .certificate-overlay i {
    transform: scale(1);
}

.certificate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.certificate-content h4 {
    color: var(--primary-text-color);
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.certificate-issuer {
    color: #a8b3ff;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: fixed;
    top: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #a8b3ff;
    transform: scale(1.1);
}

.modal-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.modal-pdf {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .experience-image-section {
        margin-top: 2rem;
        padding: 0;
    }
    
    .experience-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .experience-showcase-image {
        width: 220px;
        height: 220px;
    }
    
    .experience-glow {
        width: 240px;
        height: 240px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .certificate-item {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .certificate-image-wrapper {
        width: 100%;
        max-width: 280px;
        max-height: 400px;
    }
    
    .certificate-content {
        align-items: center;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2em;
        width: 45px;
        height: 45px;
    }
    
    .certificate-modal {
        padding: 1rem;
    }
    
    .modal-content-wrapper {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .experience-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .experience-showcase-image {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }
    
    .experience-glow {
        width: 200px;
        height: 200px;
    }
    
    .certificates-grid {
        gap: 1rem;
    }
    
    .certificate-item {
        padding: 1.25rem;
    }
    
    .certificate-image-wrapper {
        max-width: 240px;
        max-height: 340px;
    }
    
    .certificate-content h4 {
        font-size: 1.05em;
    }
    
    .certificate-issuer {
        font-size: 0.85em;
    }
    
    .modal-close {
        font-size: 1.8em;
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
    
    .certificate-modal {
        padding: 0.5rem;
    }
    
    .modal-content-wrapper {
        max-height: 80vh;
    }
}

/* Footer */
footer {
    background-color: rgba(10, 10, 10, 0.6);
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--nav-border-color);
    margin-top: 3rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.85em;
    color: var(--secondary-text-color);
}

/* Remove old/unused styles */
h1, h2, h3 { /* Resetting some defaults */
    /* Styles are now more specific */
}

.banner-image, .profile-picture, .info-section, .buttons {
    /* Removed as structure changed */
}

/* Scroll Indicator (Base Class) */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--secondary-text-color);
    font-size: 1.8em;
    z-index: 999;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    background-color: rgba(30, 30, 30, 0.7); /* Add background */
    border: 1px solid var(--nav-border-color);
    border-radius: 50%; /* Make it circular */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-indicator.scroll-down {
    animation: bounce 2s infinite; /* Apply bounce only to down arrow */
}

.scroll-indicator:hover {
    color: var(--primary-text-color);
    opacity: 1;
    background-color: rgba(50, 50, 50, 0.9);
    transform: scale(1.05);
}

/* Hide bounce animation definition for brevity if needed */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1); /* Include scale in base state */
    }
    40% {
        transform: translateY(-10px) scale(1); /* Bounce up */
    }
    60% {
        transform: translateY(-5px) scale(1);
    }
}

/* --- Responsive Design --- */

/* Small screens (Tablets/Large Phones) */
@media (max-width: 768px) {
    body {
        padding-top: 50px; /* Reduced to bring nav closer to top */
    }
    .main-nav {
        padding: 0.75rem 0.9rem; /* Slightly bigger bar */
        margin-bottom: 0.3rem;
        top: 3px; /* Closer to top */
    }
     .main-nav a {
        padding: 0.55rem 0.9rem; /* Slightly bigger buttons */
        margin: 0 0.1rem;
        font-size: 0.9em;
    }
    .hero {
        padding: 0.5rem 1rem 0; /* Ensure bottom padding is 0 */
        min-height: calc(85vh - 60px - 1rem);
    }
    .hero-content {
        /* flex-direction: column; no longer needed */
        /* text-align: center; already set */
        /* gap: 2rem; removed */
    }
    .hero {
        min-height: auto;
        padding: 2rem 1rem 1rem; /* Increased top and bottom padding */
    }
    .hero-profile-image {
        width: 210px; /* Adjusted responsive size */
        height: 210px;
        margin-bottom: 2rem; /* Increased spacing */
    }
    .hero-text {
        /* text-align: center; already set */
        margin-bottom: 1.5rem;
    }
    .hero-text h1 {
        /* clamp handles this */
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
    .hero-text p {
        /* clamp handles this */
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    .social-links {
        padding: 0 1rem 3rem; /* Increased bottom padding to prevent about section visibility */
        margin-top: 1.5rem; /* Increased margin */
        gap: 1.5rem;
    }
    .social-link {
        font-size: 2.2em; /* Adjusted responsive size */
        width: 3rem;
        height: 3rem;
    }
    .main-content {
        padding: 1rem;
    }
    .scroll-indicator {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
        bottom: 15px;
        right: 15px;
    }
    /* Remove the responsive gradient adjustment as well */
    /*
    .content-wrapper {
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 30%, transparent 60%);
    }
    */
}

/* Extra Small screens (Phones) */
@media (max-width: 480px) {
    body {
        padding-top: 35px; /* Further reduced to bring nav closer to top on initial load */
    }
    .main-nav {
        top: 3px; /* Even closer to top */
        padding: 0.85rem 0.95rem; /* Slightly bigger bar on mobile */
    }
     .main-nav a {
        padding: 0.5rem 0.8rem; /* Increased padding for bigger buttons */
        font-size: 0.85em; /* Slightly larger font */
    }
    .hero {
        min-height: auto;
        padding: 2rem 1rem 1rem; /* Increased top and bottom padding */
    }
    .hero-profile-image {
        width: 170px; /* Adjusted responsive size */
        height: 170px;
        margin-bottom: 1.8rem; /* Increased spacing */
    }
    .hero-text {
        margin-bottom: 1.2rem;
    }
    .hero-text h1 {
        /* clamp handles this */
        line-height: 1.35;
        margin-bottom: 1rem;
    }
    .hero-text p {
        /* clamp handles this */
        line-height: 1.4;
        margin-bottom: 1.8rem;
    }
    .social-links {
        padding: 0 1rem 3rem; /* Increased bottom padding to prevent about section visibility */
        margin-top: 1.2rem; /* Increased margin */
        gap: 1.25rem;
    }
    .social-link {
        font-size: 2em; /* Adjusted size */
        width: 2.75rem;
        height: 2.75rem;
    }
    .scroll-indicator {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
        /* display: none; /* Re-enable if needed */
    }
}

/* Long phone models (iPhone 14 Pro Max, etc.) - extra padding for about section */
@media (min-height: 900px) and (max-width: 480px) {
    .about-section {
        padding-top: 6rem; /* Extra padding for long phones to prevent cutoff */
    }
} 