:root {
    --bg-color: #383c47;
    --card-bg: #0c1627;
    --card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #55ada9;
    --accent-hover: #55ada9;
    --accent-highlight: #00bc93;
    --card-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --gap: 16px;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    /* display: flex; REMOVED to prevent grid collapse */
    /* justify-content: center; REMOVED */
    padding: 60px 20px;
    min-height: 100vh;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 20px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    /* Added for centering */
    grid-template-areas:
        "profile profile stat1 stat2"
        "profile profile stat3 objective"
        "exp exp project1 project2"
        "skills skills inquiry inquiry"
        "edu extra social social";
}

/* Card Styles - Premium Look */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

h4 {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-top: 12px;
}

p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Profile Card */
/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 20px;
    align-items: stretch;
}

.profile-content-left {
    flex: 1.2 1 0px;
    /* Explicit basis 0 to enforce ratio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
    min-width: 0;
    /* Critical for preventing flex blowout */
}


.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: #55ada9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}

.profile-branding h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.profile-branding .mini-logo {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-bio {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 8px;
    font-weight: 300;
    max-width: 95%;
}

.profile-contact-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-image-right {
    flex: 0.8 1 0px;
    /* Explicit basis 0 to enforce ratio */
    background: transparent;
    /* Removed background */
    border-radius: 0;
    /* Removed radius */
    overflow: visible;
    /* Changed to visible for gap */
    position: relative;
    border: none;
    /* Removed border */
    height: 100%;
    min-width: 0;
    /* Critical for preventing flex blowout */
}

.profile-image-right.split-layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 16px;
    /* Added gap */
}

.profile-partition {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    /* Added radius individually */
    border: 1px solid var(--card-border);
    /* Added border individually */
}

.profile-partition.top {
    flex: 1.2;
    /* give image slightly more space or equal */
    border-bottom: 1px solid var(--card-border);
}

.profile-partition.bottom {
    flex: 0.8;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-partition.top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Futuristic Evaluation Interface (CSS Video) */
/* Space Station Interface */
.space-station-interface {
    width: 100%;
    height: 100%;
    background: #020408;
    /* Deep Space Black */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    /* Depth */
}

/* CRT Scanline Texture (Subtle Tech Feel) */
.space-station-interface::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Shockwave Emitter (Attention Grabber) */
.core-planet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--accent-highlight);
    box-shadow: 0 0 20px var(--accent-highlight);
    opacity: 0;
    z-index: -1;
    animation: shockwavePulse 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.core-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    opacity: 0;
    z-index: -1;
    animation: shockwavePulse 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    animation-delay: 1.5s;
    /* Offset for continuous ripples */
}

@keyframes shockwavePulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
        border-width: 0px;
    }
}

/* Star Field Animation */
.star-field {
    position: absolute;
    width: 200%;
    height: 200%;
    background: transparent;
    /* Simulate stars with radial gradients */
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 160px, #fff, transparent),
        radial-gradient(2px 2px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent);
    background-size: 200px 200px;
    opacity: 0.5;
    animation: starMove 20s linear infinite;
}

@keyframes starMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }
}

/* Warp Grid (The 'Space' feel) */
.warp-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(transparent 95%, rgba(138, 189, 0, 0.1) 95%),
        linear-gradient(90deg, transparent 95%, rgba(138, 189, 0, 0.1) 95%);
    background-size: 40px 40px;
    transform: rotateX(60deg);
    bottom: -50%;
    animation: warpSpeed 3s linear infinite;
    opacity: 0.3;
}

@keyframes warpSpeed {
    from {
        transform: rotateX(60deg) translateY(0);
    }

    to {
        transform: rotateX(60deg) translateY(40px);
    }
}

/* Hologram Core */
.hologram-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transform-style: preserve-3d;
    margin-bottom: 20px;
    /* Added spacing from HUD */
}

/* .hologram-container::after removed - replaced with .initiate-btn */

/* Premium Tech Button */
.initiate-btn {
    position: relative;
    margin-top: 12px;
    padding: 8px 24px;
    background: linear-gradient(90deg, transparent 5%, rgba(85, 173, 169, 0.1) 10%, rgba(85, 173, 169, 0.1) 90%, transparent 95%);
    color: var(--accent-highlight);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tech Borders */
    border-top: 1px solid rgba(85, 173, 169, 0.5);
    border-bottom: 1px solid rgba(85, 173, 169, 0.5);

    /* Center it */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Side Brackets */
.initiate-btn::before,
.initiate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.initiate-btn::before {
    left: 0;
}

.initiate-btn::after {
    right: 0;
}

/* Interactive Hover State */
.initiate-btn:hover {
    background: rgba(85, 173, 169, 0.2);
    letter-spacing: 4px;
    color: #fff;
    box-shadow: 0 0 25px rgba(85, 173, 169, 0.4);
    border-color: var(--accent-highlight);
}

.initiate-btn:hover::before {
    transform: translateX(2px);
}

.initiate-btn:hover::after {
    transform: translateX(-2px);
}

/* Scanline/Glitch Effect on Hover via pseudo-element */
.initiate-btn span {
    position: relative;
    z-index: 2;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(85, 173, 169, 0.5);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--accent-highlight);
    }
}

.initiate-btn {
    animation: ctaPulse 3s infinite;
}

.core-planet {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, var(--accent-color), #4a6800);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.shift-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    from {
        transform: scale(0.9);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    to {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    }
}

/* Orbits */
.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(138, 189, 0, 0.1);
}

.ring-outer {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid transparent;
    animation: spinRight 6s linear infinite;
}

.ring-inner {
    width: 70%;
    height: 70%;
    border-left: 2px solid #fff;
    border-right: 2px solid transparent;
    animation: spinLeft 4s linear infinite;
}

@keyframes spinRight {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: rotate(-360deg);
    }
}

/* Space HUD */
.space-hud {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* HUD Corners */
.hud-line {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.3);
    border-style: solid;
    transition: all 0.3s;
}

.hud-line.top-left {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.hud-line.top-right {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
}

.hud-line.bottom-left {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
}

.hud-line.bottom-right {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.system-status {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
    font-family: monospace;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    width: 100%;
    box-shadow: 0 0 10px var(--accent-highlight);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Move corners inward on hover */
.space-station-interface:hover .hud-line.top-left {
    transform: translate(10px, 10px);
}

.space-station-interface:hover .hud-line.top-right {
    transform: translate(-10px, 10px);
}

.space-station-interface:hover .hud-line.bottom-left {
    transform: translate(10px, -10px);
}

.space-station-interface:hover .hud-line.bottom-right {
    transform: translate(-10px, -10px);
}

/* Hover: Energize Core */
.space-station-interface:hover .core-planet {
    box-shadow: 0 0 40px var(--accent-highlight);
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.space-station-interface:hover .shift-logo-img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

/* Hover: Accelerate Rings */
.space-station-interface:hover .ring-outer {
    border-color: var(--accent-highlight);
    animation-duration: 2s;
}

.space-station-interface:hover .ring-inner {
    border-color: #fff;
    animation-duration: 1.5s;
}

.blink-text {
    animation: blink 2s infinite;
    color: var(--text-secondary);
}

.status-ok {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-color);
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.btn.primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn.primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Stat Cards */
.stat-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

/* Experience Card */
.exp-item {
    margin-bottom: 16px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exp-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.exp-header .company {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 8px;
}

.exp-header .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.exp-item ul {
    list-style-position: inside;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

/* Skills Card */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Project Card */
.project-card h2 {
    margin-bottom: 4px;
}

.tag {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: inline-block;
}

.project-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.project-card li {


    margin-bottom: 8px;
    color: var(--text-secondary);
}

.view-more-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 6px 14px;
    background: #55ada9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.788);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
    overflow: visible;
    /* Needed for glow */
}

/* 
   GLOWING CIRCULAR MOTION EFFECT 
   Uses a pseudo-element behind the button
*/
.view-more-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    /* Slightly larger radius */
    background: transparent;
    border: 2px solid var(--accent-highlight);
    box-shadow: 0 0 10px var(--accent-highlight);
    opacity: 1;
    /* PERSISTENT VISIBILITY */
    animation: glow-motion 2s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glow-motion {
    0% {
        box-shadow: 0 0 5px var(--accent-highlight), inset 0 0 5px var(--accent-highlight);
        transform: scale(1);
    }

    50% {
        /* Intense Pulse */
        box-shadow: 0 0 20px var(--accent-highlight), inset 0 0 10px var(--accent-highlight);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-highlight), inset 0 0 5px var(--accent-highlight);
        transform: scale(1);
    }
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.view-more-btn:hover i {
    transform: rotate(90deg);
}

/* Project Stat Card (Future Style) */
.project-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-count {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-stat-title {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    /* Allow wrapping for multiple icons */
    justify-content: center;
    /* Center the grid of icons */
    max-width: 240px;
    /* Constrain width to force wrapping if needed */
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    border: 1px solid var(--card-border);
}

.icon-circle.accent {
    background: var(--accent-color);
    box-shadow: 0 0px 29px rgb(255 102 54);
    border: none;
}

/* Socials */
.social-card h3 {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: #55ada9;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.social-btn.behance:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.social-btn.behance {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #0077b5;
}

/* Inquiry Card */
.inquiry-card {
    text-align: center;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.inquiry-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    /* Increased to be clearly on top */
}

/* Floating Illustrations */
.floating-icon {
    position: absolute;
    opacity: 0.08;
    /* More subtle */
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}


.inquiry-card:hover .floating-icon {
    transform: scale(1.1);
}

.floating-icon.laptop {
    width: 150px;
    top: -50px;
    left: -50px;
    transform: rotate(25deg);
}

.floating-icon.notepad {
    width: 120px;
    bottom: -40px;
    right: -30px;
    transform: rotate(-15deg);
}

.floating-icon.pen-coffee {
    width: 100px;
    top: 250px;
    right: 150px;
    transform: translateY(-50%) rotate(10deg);
}

.floating-icon.headphones {
    width: 110px;
    top: 30px;
    right: 15px;
    transform: rotate(-25deg);
}

.floating-icon.plant {
    width: 90px;
    bottom: -20px;
    left: -20px;
    transform: rotate(10deg);
}

.floating-icon.mouse {
    width: 70px;
    top: 5%;
    left: 45%;
    transform: translateX(-50%) rotate(35deg);
}

.floating-icon.tablet {
    width: 130px;
    bottom: 43%;
    right: 350px;
    transform: translateY(50%) rotate(-10deg);
}

.floating-icon.glasses {
    width: 100px;
    bottom: 0px;
    left: 235px;
    transform: translateX(-50%) rotate(15deg);
}

.inquiry-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.inquiry-icon.accent-bg {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    color: white;
}

.inquiry-card h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.copy-btn {
    background: white !important;
    color: #0f172a !important;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #e2e8f0 !important;
}


/* Custom Tooltip Toast */
.tool-toast {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tool-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "profile profile stat1"
            "profile profile stat2"
            "objective objective stat3"
            "exp exp exp"
            "project1 project1 project2"
            "skills skills inquiry"
            "edu extra social";
    }
}

@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "profile"
            "objective"
            "stat1"
            "stat2"
            "stat3"
            "exp"
            "project1"
            "project2"
            "skills"
            "inquiry"
            "edu"
            "extra"
            "social";
        gap: 20px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-content-left {
        padding-right: 0;
    }

    .profile-image-right {
        width: 100%;
        max-width: 350px;
        /* Prevent being too huge on tablets */
        height: auto;
        /* Changed from aspect-ratio: 1/1 to auto */
        margin: 20px auto 0;
        /* Center it */
        min-height: 500px;
        /* Ensure enough total height */
        display: flex;
        flex-direction: column;
    }

    .profile-partition.top {
        flex: 0 0 300px;
        /* Fixed height for image */
        height: 300px;
    }

    .profile-partition.bottom {
        flex: 1;
        /* Take remaining space */
        min-height: 200px;
        /* Ensure enough space for AI interface */
    }

}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* High z-index to be on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--card-border);
    width: 80%;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
    height: 80vh;
    /* Fixed height for PDF view */
    display: flex;
    flex-direction: column;
}

.modal-content iframe {
    flex-grow: 1;
    border-radius: 8px;
    /* PDF needs white bg if transparent */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    color: #a1a1a1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

/* AI Station Overlay (Static Implementation) */
.ai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.ai-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ai-content {
    text-align: center;
    color: var(--accent-color);
}

.hologram-container.scale-up {
    transform: scale(2);
    margin-bottom: 40px;
}

.ai-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(85, 173, 169, 0.5);
    animation: glowText 2s infinite alternate;
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px rgba(85, 173, 169, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(85, 173, 169, 0.9);
    }
}

.ai-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-family: monospace;
    margin-bottom: 40px;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    width: 0;
}

.ai-overlay.active .ai-subtitle {
    animation: typing 3s steps(40, end) forwards, blink-caret .75s step-end infinite;
    width: 100%;
    max-width: 32ch;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-color);
    }
}

.ai-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.ai-btn:hover {
    background: rgba(85, 173, 169, 0.2);
    box-shadow: 0 0 15px var(--accent-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Blur Effect on Main Content */
.bento-container.blur-active {
    filter: blur(5px);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.8s ease;
}

/* Neural Network Visualization */
.neural-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 2;
}

.neural-view.active {
    opacity: 1;
    pointer-events: auto;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.neural-info {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: auto;
    margin-bottom: 50px;
    pointer-events: auto;
}

.neural-info h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent-color);
    animation: blink 2s infinite;
}

.ai-btn.small {
    padding: 8px 24px;
    font-size: 0.9rem;
}

.ai-btn.secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    margin-left: 0;
}

.neural-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .neural-actions {
        flex-direction: column;
        gap: 25px;
        /* Increased space for mobile */
        width: 100%;
    }

    .neural-actions .ai-btn {
        width: 80%;
        max-width: 280px;
    }
}

.ai-content {
    transition: opacity 0.5s ease;
}

.ai-content.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Neural Logo */
.neural-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    /* Slight upward shift to center visually with info at bottom */
    width: 300px;
    height: 300px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px var(--accent-color));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Contact Radial Menu Interaction */
.contact-island {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    /* Ensure on top */
}

/* Options Container */
.island-options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: -1;
    /* Behind button */
}

/* Satellite Buttons */
.island-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

/* Active State: Fan Out */
.contact-island.active .island-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Positioning Satellites */
/* Left (Phone) - Arcs Top-Left */
.contact-island.active .island-btn.phone {
    top: -60px;
    left: -40px;
    transition-delay: 0.1s;
}

/* Right (Mail) - Arcs Top-Right */
.contact-island.active .island-btn.mail {
    top: -60px;
    left: 40px;
    transition-delay: 0.2s;
}

.island-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1) !important;
    /* Keep position override */
    box-shadow: 0 0 20px var(--accent-color);
}

/* Trigger Button Morph */
.contact-trigger {
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
}

.contact-trigger .trigger-text {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.contact-trigger .trigger-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-180deg);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.2rem;
}

/* Active State: Circle 'X' */
.contact-island.active .contact-trigger {
    min-width: 48px;
    width: 48px;
    border-radius: 50%;
    background: #FF5252;
    color: white;
    padding: 0;
    border-color: transparent;
}

.contact-island.active .contact-trigger .trigger-text {
    opacity: 0;
    width: 0;
    /* Collapse width to prevent wrapping issues */
    overflow: hidden;
}

.contact-island.active .contact-trigger .trigger-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}