* {
    cursor: none;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #66d9ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(102, 217, 255, 0.6);
    transition: all 0.1s ease-out;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid #0088ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease-out;
    box-shadow: inset 0 0 10px rgba(0, 136, 255, 0.3);
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #000000;
    color: #ffffff;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    transition: background 0.5s ease;
}

body.modal-open {
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
    padding: 40px 20px 20px 20px;
    width: 100%;
}

header .header-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 30px;
}

.profile-column {
    flex: 1 1 520px;
    min-width: 0;
    text-align: left;
    padding: 10px;
}

.card-column {
    flex: 0 1 560px;
    min-width: 0;
    width: 100%;
    max-width: 560px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.profile-pic {
    animation: zoomIn 1s ease-out;
    margin-bottom: 20px;
    width: clamp(150px, 42vw, 220px);
    height: clamp(150px, 42vw, 220px);
    border: 5px solid #0066cc;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    clip-path: circle(50% at 50% 50%);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
}

.profile-pic img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-pic img:hover {
    transform: scale(1.05);
}

.tagline {
    color: #66d9ff;
    font-size: 1.2rem;
    margin: 10px 0;
    animation: fadeIn 1.2s ease-out;
}

.bio {
    color: #cccccc;
    font-size: 1rem;
    font-style: italic;
    margin: 8px 0 0 0;
    max-width: 480px;
    line-height: 1.6;
    animation: fadeIn 1.4s ease-out;
}

.contact a {
    color: #66d9ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-info a {
    color: #66d9ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}


#business-card-container {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 550px;
    perspective: 1200px;
}

.business-card {
    max-width: 550px;
    width: min(550px, 100%);
    height: auto;
    margin: 0 auto;
    cursor: pointer;
    aspect-ratio: 5 / 3;
    transform-style: preserve-3d;
    position: relative;
    animation: slideUp 0.8s ease-out 0.3s both, floatCard 3s ease-in-out 1.1s infinite;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.business-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 50%, #1a1a1a 100%);
    color: white;
    padding: 35px;
    border-radius: 3px;
    box-shadow:
        0 10px 30px rgba(0, 102, 204, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #001133 0%, #002b80 50%, #0055cc 100%);
    color: white;
    border-radius: 3px;
    box-shadow:
        0 10px 30px rgba(0, 102, 204, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px -10px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.card-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.card-back-logo {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #66d9ff;
    text-shadow: 0 0 20px rgba(102, 217, 255, 0.8), 0 0 40px rgba(0, 136, 255, 0.5);
    animation: glow 2s ease-in-out infinite;
    margin-bottom: 4px;
}

.card-back h2 {
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.card-back-title {
    font-size: 0.75rem;
    color: #66d9ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.card-back-motto {
    font-size: 0.85rem;
    font-style: italic;
    color: #cccccc;
    max-width: 300px;
    line-height: 1.5;
    margin: 4px 0 0 0;
}

.card-flip-hint,
.card-back-flip-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    margin: 0;
}

.card-header {
    margin-bottom: 0;
}

.card-header h2 {
    font-size: 1.6rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite;
    font-weight: 900;
}

.card-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-weight: 500;
    animation: fadeIn 1.5s ease-out;
    text-transform: uppercase;
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 12px 0;
}

.card-content {
    text-align: left;
    font-size: 0.95rem;
}

.card-content p {
    margin: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    line-height: 1.35;
    gap: 8px;
}

.card-content p i {
    width: 16px;
    text-align: center;
}

.card-content strong {
    display: inline-block;
    min-width: 66px;
}

.card-content a {
    color: #66d9ff;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

main {
    max-width: 1200px;
    width: calc(100% - 32px);
    margin: 0 auto 20px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.25);
    border-left: 5px solid #0088ff;
    border-right: 3px solid #66d9ff;
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
}

section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #0088ff;
    border-right: 3px solid #66d9ff;
    color: #ffffff;
    scroll-margin-top: 90px;
}

section h2 {
    margin-bottom: 10px;
    color: #66d9ff;
    font-size: 1.8rem;
    border-bottom: 3px solid #0088ff;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

section h2:hover {
    color: #ffffff;
    border-bottom-color: #66d9ff;
    transform: translateX(5px);
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #66d9ff;
    animation: fadeIn 1.5s ease-out;
}


#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-top: 20px;
}

#contact-form label {
    font-weight: bold;
    color: #ffffff;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #0088ff;
    border-radius: 4px;
    background: #333333;
    color: #ffffff;
    resize: vertical;
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #66d9ff;
    background: #404040;
}

#contact-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0088ff 0%, #66d9ff 100%);
    color: #000000;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#contact-form button:hover {
    background: linear-gradient(135deg, #66d9ff 0%, #0088ff 100%);
    transform: translateY(-2px);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.skill-category {
    background: #333333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 0;
    border-left: 4px solid #0088ff;
    border-right: 3px solid #66d9ff;
    transition: all 0.3s ease;
    color: #ffffff;
}

.skill-category:hover {
    background: #404040;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 136, 255, 0.4);
    border-right-color: #0088ff;
}

.skill-category h3 {
    color: #66d9ff;
    margin-bottom: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: #ffffff;
    padding: 5px 0;
    margin-left: 20px;
}

.skill-category li:before {
    content: "▹ ";
    color: #66d9ff;
    font-weight: bold;
    margin-right: 8px;
}

.project-item {
    background: #333333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-top: 4px solid #0088ff;
    border-right: 3px solid #66d9ff;
    transition: all 0.3s ease;
    color: #ffffff;
}

.project-item:hover {
    background: #404040;
    box-shadow: 0 8px 20px rgba(0, 136, 255, 0.4);
    transform: translateY(-8px) scale(1.01);
    border-top-color: #66d9ff;
    border-right-color: #0088ff;
}

.project-item h3 {
    color: #66d9ff;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, #0088ff 0%, #66d9ff 50%, #0066cc 100%);
    color: #000000;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.project-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 136, 255, 0.6);
    border-color: #ffffff;
}

.calculator-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.calculator-modal.open {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.calculator-panel {
    width: min(420px, 100%);
    background: #1d1d1d;
    border: 2px solid #0088ff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 18px 35px rgba(0, 136, 255, 0.35);
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calculator-header h3 {
    color: #66d9ff;
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.8px;
}

.calculator-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 4px;
}

.calculator-display {
    width: 100%;
    border: 2px solid #0088ff;
    border-radius: 8px;
    background: #0d0d0d;
    color: #ffffff;
    font-size: 1.8rem;
    text-align: right;
    padding: 12px;
    margin-bottom: 14px;
}

.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.calculator-key {
    border: 1px solid #0066cc;
    border-radius: 8px;
    padding: 12px;
    background: #2b2b2b;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calculator-key:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 136, 255, 0.25);
    background: #363636;
}

.operator-key {
    background: #004a91;
}

.function-key {
    background: #5a1e1e;
    border-color: #8a2d2d;
}

.equal-key {
    background: linear-gradient(135deg, #0088ff 0%, #66d9ff 100%);
    color: #000000;
    border-color: #66d9ff;
}

.education-item {
    background: #333333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0088ff;
    border-right: 3px solid #66d9ff;
    transition: all 0.3s ease;
    color: #ffffff;
}

.education-item:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.3);
    transform: translateX(3px);
    background: #404040;
}

.education-item h3 {
    color: #66d9ff;
    margin-bottom: 10px;
}

.experience-item {
    background: #333333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0088ff;
    border-right: 3px solid #66d9ff;
    transition: all 0.3s ease;
    color: #ffffff;
}

.experience-item:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.3);
    transform: translateX(3px);
    background: #404040;
}

.experience-item h3 {
    color: #66d9ff;
    margin-bottom: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(0, 136, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 136, 255, 0.6);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

nav {
    background: linear-gradient(135deg, #0088ff 0%, #66d9ff 100%);
    padding: 15px 20px;
    border-radius: 0;
    margin: 0;
    margin-bottom: 40px;
    box-shadow: none;
    animation: slideDown 0.8s ease-out;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.25s ease;
}

nav:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

nav a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
}

nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #000000;
}

nav a:hover:before {
    transform: scaleX(1);
    opacity: 1;
}

@media (max-width: 900px) {
    nav {
        position: static;
    }

    section {
        scroll-margin-top: 24px;
    }
}

@media (max-width: 1080px) {
    header {
        padding: 30px 16px 16px 16px;
    }

    header .header-row {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .profile-column {
        max-width: 760px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bio {
        max-width: 100%;
    }

    .card-column {
        width: 100%;
        justify-content: center;
    }

    #business-card-container {
        margin: 16px auto 0;
        padding: 0;
    }

    .business-card {
        width: min(100%, 560px);
    }

    .skills-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        margin-bottom: 24px;
        padding: 12px 10px;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        padding: 8px 12px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    main {
        width: calc(100% - 18px);
        padding: 20px;
    }

    section {
        padding: 16px;
        margin-bottom: 22px;
    }

    section h2 {
        font-size: 1.45rem;
    }

    .business-card {
        width: 100%;
    }

    .card-front {
        padding: 22px;
    }

    .card-back-content {
        padding: 18px;
    }

    .card-header h2 {
        font-size: 1.35rem;
    }

    .card-content p {
        font-size: 0.82rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .project-item,
    .education-item,
    .experience-item,
    .skill-category {
        padding: 16px;
    }

    .calculator-panel {
        padding: 16px;
    }

    .calculator-display {
        font-size: 1.55rem;
    }
}

@media (max-width: 600px) {
    nav {
        position: static;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    nav a {
        display: block;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.7rem;
    }

    .profile-pic {
        width: min(180px, 68vw);
        height: min(180px, 68vw);
    }

    section {
        scroll-margin-top: 24px;
    }
    
    .business-card {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .card-front {
        padding: 16px;
    }

    .card-back-content {
        padding: 14px;
        gap: 6px;
    }
    
    .card-header h2 {
        font-size: 1.15rem;
    }
    
    .card-content p {
        font-size: 0.74rem;
        gap: 6px;
    }

    .card-content strong {
        min-width: 56px;
    }

    .card-back-logo {
        font-size: 2.1rem;
    }

    .calculator-panel {
        padding: 14px;
    }

    .calculator-display {
        font-size: 1.4rem;
    }

    .calculator-key {
        padding: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    header {
        padding: 24px 10px 10px 10px;
    }

    header h1 {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .bio {
        font-size: 0.92rem;
    }

    main {
        width: calc(100% - 10px);
        padding: 14px;
    }

    section {
        padding: 12px;
    }

    section h2 {
        font-size: 1.2rem;
    }

    .business-card {
        aspect-ratio: 16 / 10.5;
    }

    .card-header h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .card-header p {
        font-size: 0.7rem;
    }

    .card-back-content {
        padding: 10px;
        gap: 4px;
    }

    .card-content p {
        font-size: 0.68rem;
        margin: 4px 0;
    }

    .card-content strong {
        min-width: 48px;
    }

    .card-flip-hint,
    .card-back-flip-hint {
        font-size: 0.55rem;
    }

    .calculator-header h3 {
        font-size: 1rem;
    }

    .calculator-display {
        font-size: 1.25rem;
        padding: 10px;
    }

    .calculator-key {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}
