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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #343434 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: all 1s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: welcomeIn 2s ease forwards;
}

.welcome-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: #3aa8c5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.enter-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(58, 168, 197, 0.4);
    position: relative;
    overflow: hidden;
}

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

.enter-btn:hover::before {
    left: 100%;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(58, 168, 197, 0.6);
}

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

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(58, 168, 197, 0.5); }
    to { text-shadow: 0 0 30px rgba(58, 168, 197, 0.8), 0 0 40px rgba(58, 168, 197, 0.4); }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #3aa8c5;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}


/* Interactive Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.8s ease;
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 168, 197, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 168, 197, 0.5);
}

/* Main Container */
.container {
    margin-top: 100px;
    padding: 0 50px;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.container.visible {
    opacity: 1;
}

/* Profile Section */
.profile-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 100px;
}

.profile-card {
    width: 1000px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.profile-card:hover {
    transform: rotateY(15deg) rotateX(10deg) translateZ(20px);
}

.profile-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.15), rgba(91, 192, 222, 0.1));
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(58, 168, 197, 0.2);
    box-shadow: 0 25px 50px rgba(58, 168, 197, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(58, 168, 197, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.profile-card:hover .profile-content::before {
    opacity: 1;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(58, 168, 197, 0.4);
}

.profile-info h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(58, 168, 197, 0.3);
}

.profile-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.contact-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    padding: 8px 16px;
    background: rgba(58, 168, 197, 0.2);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(58, 168, 197, 0.3);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 80px;
    background: linear-gradient(45deg , #3aa8c5, #5bc0de, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(58, 168, 197, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(58, 168, 197, 0.5);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

/* Envelope Card Effect */
.card {
    width: 100%;
    height: 300px;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-envelope {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.card:hover .card-envelope {
    transform: rotateX(-15deg) rotateY(5deg) translateZ(20px);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.15), rgba(91, 192, 222, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(58, 168, 197, 0.3);
    backdrop-filter: blur(20px);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.3), rgba(91, 192, 222, 0.2));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.6s ease;
    border-radius: 15px 15px 0 0;
    backdrop-filter: blur(10px);
}

.card:hover .envelope-flap {
    transform: rotateX(-160deg);
}

.envelope-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(58, 168, 197, 0.05));
    border-radius: 10px;
    padding: 30px;
    transform: translateZ(10px);
    transition: all 0.6s ease;
    opacity: 0.8;
}

.card:hover .envelope-content {
    transform: translateZ(30px) translateY(-10px);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(58, 168, 197, 0.2);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card .position {
    font-size: 18px;
    color: #5bc0de;
    margin-bottom: 8px;
    font-weight: 600;
}

.card .duration {
    font-size: 14px;
    color: #3aa8c5;
    margin-bottom: 20px;
    opacity: 0.8;
}

.card .description {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Project Cards */
.project-card {
    width: 100%;
    height: 450px;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.project-image {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid #3aa8c5;
    box-shadow: 0 0 32px 0 rgba(58, 168, 197, 0.7), 0 0 0 6px rgba(91, 192, 222, 0.18);
    display: block;
    margin: 0 auto 24px auto;
    background: #16213e;
}

.project-envelope {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.project-card:hover .project-envelope {
    transform: rotateX(-15deg) rotateY(5deg) translateZ(20px);
}

.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.15), rgba(91, 192, 222, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(58, 168, 197, 0.3);
    backdrop-filter: blur(20px);
}

.project-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.3), rgba(91, 192, 222, 0.2));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.6s ease;
    border-radius: 15px 15px 0 0;
    backdrop-filter: blur(10px);
}

.project-card:hover .project-flap {
    transform: rotateX(-160deg);
}

.project-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(58, 168, 197, 0.05));
    border-radius: 10px;
    padding: 30px;
    transform: translateZ(10px);
    transition: all 0.6s ease;
    opacity: 0.8;
}

.project-card:hover .project-content {
    transform: translateZ(30px) translateY(-10px);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(58, 168, 197, 0.2);
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 17px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.project-card .description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(58, 168, 197, 0.2);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 168, 197, 0.3);
}

.tech-tag:hover {
    background: rgba(58, 168, 197, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 168, 197, 0.3);
}

.tech-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 15px 20px;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-info h1 {
        font-size: 36px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 36px;
    }

    body {
        cursor: default;
    }

    .cursor {
        display: none;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tools Section */
.tool-card {
    background: linear-gradient(135deg, rgba(58, 168, 197, 0.12), rgba(91, 192, 222, 0.08));
    border-radius: 16px;
    padding: 32px 24px 28px 24px;
    box-shadow: 0 8px 32px rgba(58, 168, 197, 0.15);
    border: 2px solid rgba(58, 168, 197, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(58, 168, 197, 0.22);
    border-color: #3aa8c5;
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    background: linear-gradient(45deg, #3aa8c5, #5bc0de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.tool-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    align-items: center;
    color: #3aa8c5;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(58, 168, 197, 0.08);
    box-shadow: 0 2px 8px rgba(58, 168, 197, 0.10);
    padding: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    object-fit: contain;
    border: 1.5px solid transparent;
}

.tool-icon:hover {
    background: rgba(58, 168, 197, 0.18);
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(58, 168, 197, 0.18);
    border-color: #3aa8c5;
}

@media (max-width: 768px) {
    .tool-card {
        padding: 22px 10px 18px 10px;
    }
    .tool-card h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .tool-icon {
        width: 36px;
        height: 36px;
        padding: 5px;
    }
    .tool-icons {
        gap: 10px;
    }
}

/* --- Desktop Mode Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.popup-overlay.visible .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.popup-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-button {
    padding: 12px 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(58, 168, 197, 0.4);
}

.popup-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(58, 168, 197, 0.5);
}