:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #6c63ff;
    --secondary-color: #00d4ff;
    --glass-bg: rgba(0, 0, 0, 0.1);
    /* More transparent dark glass */
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    color-scheme: dark;
    /* Prevent forced dark mode inversion */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow selection in inputs */
input,
textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.15), transparent 50%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: none;
    background: transparent;
    border-bottom: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    /* Remove underline for link */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
    /* Allow transform */
}

.logo:hover {
    transform: scale(1.2);
    /* Pure Zoom */
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
    /* Glow */
    cursor: pointer;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: 0.3s;
}

/* Typing Animation Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--primary-color);
    margin-left: 5px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin: 1rem 0;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    min-height: 1.2em;
    display: block;
    /* Ensure it behaves as a block */
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

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

.hero-text {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn.primary,
.btn.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    /* Match card radius */
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}

.btn.primary:hover,
.btn.secondary:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    /* Slight lighten on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Chat Interface */
.chat-input-bar {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Match input bg */
    border-radius: 8px;
    /* Match input radius */
    padding-right: 0.5rem;
    /* Space for button */
    margin-top: 1rem;
    /* Consistent spacing */
    box-shadow: none;
    /* Remove shadow to match inputs */
}

.chat-input-bar textarea {
    flex: 1;
    background: transparent !important;
    /* Override generic input style */
    border: none;
    padding: 1rem;
    /* Match input padding */
    height: auto;
    resize: none;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none !important;
}

.chat-input-bar textarea:focus {
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
}

/* Focus state for the container to mimic input focus */
.chat-input-bar:focus-within {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
    cursor: pointer;
    outline: none !important;
}

.chat-send-btn:hover,
.chat-send-btn:focus,
.chat-send-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none;
    /* Removed scale */
    outline: none !important;
}

.chat-send-btn:hover i {
    text-shadow: 0 0 10px #00d4ff;
    /* Subtle glow on hover */
}

.chat-send-btn i {
    font-size: 1.5rem;
    color: #00d4ff;
    /* Neon Cyan */
    margin-left: -2px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    position: relative;
    /* Removed padding and background to remove the thick line */
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.6);
    /* Enhanced glow intensity */
    animation: float 6s ease-in-out infinite;
    margin-left: 150px;
    /* Shift rightward using margin */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-color);
    /* Prevent background bleed */
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-img {
    transform: scale(1.05);
}

/* Optional: Add a rotating glow effect */
.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

/* Idea Bubbles (Icons Only) */
.idea-bubble {
    position: absolute;
    z-index: 10;
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
    /* Removed background, border, padding, and backdrop-filter */
    cursor: grab;
    user-select: none;
    /* Prevent text selection while dragging */
}

.idea-bubble:active {
    cursor: grabbing;
}

.idea-bubble.dragging {
    animation-play-state: paused;
    z-index: 100;
    cursor: grabbing;
    transition: none;
    /* Disable transition for smooth dragging */
}

.idea-bubble i {
    font-size: 2.5rem;
    /* Increased icon size */
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    /* Add glow to icons */
    transition: transform 0.3s;
}

.idea-bubble:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color);
}

.idea-bubble span {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

/* Positioning Bubbles */
.bubble-1 {
    top: 10px;
    right: -30px;
    animation-delay: 0s;
}

.bubble-2 {
    top: 45%;
    right: -120px;
    animation-delay: 1s;
}

.bubble-3 {
    bottom: 15%;
    right: -90px;
    animation-delay: 2s;
}

.bubble-4 {
    top: -50px;
    right: 80px;
    animation-delay: 1.5s;
}

.bubble-5 {
    bottom: 5%;
    right: 30px;
    animation-delay: 0.5s;
}

.bubble-6 {
    top: 65%;
    right: -50px;
    animation-delay: 2.5s;
}

.bubble-7 {
    top: -60px;
    right: -80px;
    animation-delay: 1.2s;
}

.bubble-8 {
    bottom: -40px;
    right: 80px;
    animation-delay: 2.8s;
}

.bubble-9 {
    top: 25%;
    right: -180px;
    animation-delay: 0.8s;
}

@keyframes spin-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Pinned Section Layout */
.pinned-section-wrapper {
    display: flex;
    gap: 4rem;
    position: relative;
    align-items: flex-start;
    /* Ensure both columns start at the top */
}

.pinned-heading {
    flex: 0 0 200px;
    /* Fixed width for the heading column */
    position: sticky;
    top: 120px;
    /* Adjust based on navbar height */
    height: fit-content;
    text-align: right;
    padding-right: 2rem;
    border-right: none;
    /* Removed border */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    margin-top: 0;
    /* Ensure no top margin */
    padding-top: 0;
    /* Ensure no top padding */
}

.pinned-heading .section-title {
    text-align: right;
    margin-bottom: 0;
    margin-top: 0;
    /* Ensure no top margin */
    font-size: 2.5rem;
    position: relative;
    line-height: 1.2;
    /* Ensure consistent line height */
}

/* Override default section-title after for pinned layout */
.pinned-heading .section-title::after {
    right: -2.1rem;
    /* Align with border */
    left: auto;
    transform: none;
    width: 4px;
    height: 100%;
    top: 0;
    top: 0;
    background: var(--primary-color);
    /* Restored accent line */
    border-radius: 2px;
    display: block;
}

.section-content {
    flex: 1;
    min-width: 0;
}

/* Responsive Pinned Layout */
@media (max-width: 900px) {
    .pinned-section-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .pinned-heading {
        flex: none;
        width: 100%;
        position: sticky;
        top: 70px;
        /* Below navbar */
        text-align: left;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
        background: rgba(10, 10, 10, 0.95);
        /* Background to cover content */
        backdrop-filter: blur(10px);
        z-index: 10;
        margin-bottom: 1rem;
        align-items: flex-start;
    }

    .pinned-heading .section-title {
        text-align: left;
        font-size: 2rem;
        margin-bottom: 0;
    }

    .pinned-heading .section-title::after {
        display: none;
        /* Use border-bottom of container instead */
    }
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: none;
    /* Removed solid border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Soft shadow for depth */
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, background 0.3s;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Removed background/shadow/border changes */
}

.about-card:hover .icon {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.1);
}

.about-card:hover h3 {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.about-card:hover p {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.about-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.about-card p {
    transition: 0.3s;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    /* Slightly thicker core */
    height: 100%;
    /* Bright core gradient */
    background: linear-gradient(180deg, #00d4ff, #6c63ff, #ff00ff, #00d4ff);
    background-size: 100% 300%;
    /* Combine flow animation with pulse */
    animation: flow-line 4s linear infinite, fiber-pulse 3s ease-in-out infinite alternate;
    /* Initial glow */
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6), 0 0 20px rgba(108, 99, 255, 0.4);
    border-radius: 2px;
    z-index: 0;
    /* Blend the start and ending */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

@keyframes fiber-pulse {
    0% {
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.5), 0 0 15px rgba(108, 99, 255, 0.3);
        opacity: 0.8;
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.9), 0 0 30px rgba(108, 99, 255, 0.7), 0 0 45px rgba(255, 0, 255, 0.4);
        opacity: 1;
    }
}

.timeline-item {
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
}

.timeline-content {
    width: 45%;
    margin-left: auto;
    /* Default to right side */
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
    /* Bouncy transition */
}

.timeline-content:hover {
    transform: scale(1.05);
    z-index: 10;
    /* Removed background/shadow/border changes */
}

.timeline-content:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.timeline-content:hover .date {
    background: rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
    color: #fff;
}

.timeline-content:hover p {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.timeline-content h3,
.timeline-content p,
.timeline-content .date {
    transition: 0.3s;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    animation: pulse-dot 3s infinite alternate;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.timeline-content:hover::before {
    opacity: 0;
    /* Hide on hover */
    transition: opacity 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: calc(-11.11% - 10px);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: calc(-11.11% - 10px);
}

/* Mirror Year on Hover */
.timeline-content::after {
    content: attr(data-year);
    position: absolute;
    top: 20px;
    padding: 0.2rem 0.8rem;
    background: rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.timeline-content:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Odd items (Card on Left, Year on Right) */
.timeline-item:nth-child(odd) .timeline-content::after {
    left: 122%;
    /* Position on the right side of the line */
    right: auto;
    text-align: left;
}

/* Even items (Card on Right, Year on Left) */
.timeline-item:nth-child(even) .timeline-content::after {
    right: 122%;
    /* Position on the left side of the line */
    left: auto;
    text-align: right;
}

@keyframes flow-line {
    0% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@keyframes pulse-dot {
    0% {
        background-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
        transform: scale(1);
    }

    100% {
        background-color: var(--secondary-color);
        box-shadow: 0 0 15px var(--secondary-color), 0 0 30px #ff00ff;
        transform: scale(1.2);
    }
}

.date {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Skills */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
    /* Removed inset shadow */
    border-radius: 50px;
    font-size: 1rem;
    transition: 0.3s;
    cursor: default;
    position: relative;
    /* Needed for tooltip positioning */
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 100;
    /* Ensure tooltip is on top */
}

/* Tooltip Text */
.skill-tag::after {
    content: attr(data-desc);
    position: absolute;
    bottom: 125%;
    /* Position above the tag */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    max-width: 250px;
    background: rgba(10, 10, 10, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
    /* Removed border */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Tooltip Arrow */
.skill-tag::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(10, 10, 10, 0.9) transparent transparent transparent;
    /* Match background */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.skill-tag:hover::after,
.skill-tag:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    box-shadow: none;
    /* Removed inset shadow */
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Footer */
/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: transparent;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation needed if required, keeping simple for now */
    }

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

    .timeline-content {
        width: 100%;
        padding-left: 45px;
        margin-left: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: 10px;
        /* Align center (10px + 10px) with line at 20px */
        right: auto;
    }

    .hero h1 {
        font-size: 3rem;
    }
}



/* Contact Page Styles */
.contact-page {
    padding-top: 120px;
    /* Account for fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    /* Match .glass styles exactly */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
    /* Reduced from 3rem to match .glass */
    transition: transform 0.3s, background 0.3s;
}

.contact-container:hover {
    transform: translateY(-10px) scale(1.02);
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #aaa;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    /* Removed border */
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.submit-btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.direct-contact {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    padding-top: 2rem;
}

.direct-contact p {
    margin-bottom: 1.5rem;
    color: #888;
}

/* Resume Page */
.resume-page {
    padding-top: 70px;
    /* Reduced padding */
    min-height: 100vh;
    width: 100vw;
    /* Force full viewport width */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    padding-left: 0;
    padding-right: 0;
}

.resume-container {
    width: 100%;
    max-width: 100%;
    flex: 1;
    /* Fill remaining height */
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap */
    padding: 0;
    /* Remove padding */
    margin: 0;
}

/* Ambient Resume Styles */
#ambient-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 4rem;
}

.pdf-page-wrapper {
    position: relative;
    width: 100%;
    /* Full width */
    max-width: 2000px;
    /* Effectively unlimited for most screens */
    display: flex;
    justify-content: center;
}

.content-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ambient-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05);
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(50px);
    opacity: 0.2;
    /* Much subtler glow */
}

.pdf-page-canvas {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    max-width: 95%;
    /* Responsive width */
    height: auto;
}

.resume-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.resume-viewer iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Responsive Resume */
@media (max-width: 768px) {
    .resume-container {
        padding: 0;
    }

    .resume-actions {
        bottom: 10px;
        right: 10px;
    }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Games Page */
.games-page {
    padding-top: 120px;
    min-height: 100vh;
}

.games-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: #aaa;
    font-size: 1.2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.game-card .game-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(10deg);
}

.game-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.game-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.play-btn {
    margin-top: auto;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-card:hover .play-btn {
    background: var(--primary-color);
    color: #fff;
}

.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Certificates Page */
.certificates-page {
    padding-top: 120px;
    min-height: 100vh;
}

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

.certificate-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    /* Remove default padding from glass class override */
    transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon-container {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: background 0.3s;
}

.certificate-card:hover .cert-icon-container {
    background: rgba(255, 255, 255, 0.05);
}

.cert-icon-container i {
    font-size: 5rem;
    color: var(--secondary-color);
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.certificate-card:hover .cert-icon-container i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

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

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.4;
}

.cert-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.cert-link:hover {
    color: var(--primary-color);
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 4rem;
    /* Space for close button */
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.pdf-viewer-container {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #333;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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