/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #2d3748;
    position: relative;
}

body.mobile-dark {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: #f7fafc;
}
body.mobile-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #2d3748;
}
body.mobile-dark .profile-card,
body.mobile-dark .developer-stack-section,
body.mobile-dark .experience-section,
body.mobile-dark .coding-console-section {
    background: rgba(30, 30, 30, 0.97);
    color: #fff;
}
body.mobile-light .profile-card,
body.mobile-light .developer-stack-section,
body.mobile-light .experience-section,
body.mobile-light .coding-console-section {
    background: #fff;
    color: #222;
}
body.mobile-dark .project-card {
    background: rgba(30, 30, 30, 0.97);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
body.mobile-light .project-card {
    background: #fff;
    color: #222;
    border-color: #e2e8f0;
}

/* Golf course background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    z-index: -2;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Animated background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Main content */
.main-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

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

/* Hero section */
.hero-section {
    margin-bottom: 4rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

/* Golf flag decoration */
.profile-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18v2H3z' fill='%23333'/%3E%3Cpath d='M3 3v18' stroke='%23333' stroke-width='2' fill='none'/%3E%3Cpath d='M3 3l4 4h8l2-2V3z' fill='%23ff6b6b'/%3E%3Ccircle cx='6' cy='5' r='1' fill='white'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f8fafc 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 4px solid #667eea;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
    background: #fff;
    display: block;
    margin: 0;
    padding: 0;
}

.avatar-icon {
    width: 60px;
    height: 60px;
    color: #333;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #48bb78;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a5568, #718096);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.typing-text {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.9);
    min-height: 1.5rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 3;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }

.featured-card {
    grid-column: 1 / -1;
    max-width: none;
    margin-bottom: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.05);
}

.featured-card:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.fs-hs-icon {
    width: 1.2rem !important;
    height: 1.2rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0.5rem !important;
}

.custom-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.project-card:hover .card-icon,
.project-card:hover .custom-icon {
    transform: scale(1.1);
    color: #63b3ed;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card p {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.card-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.project-card:hover .card-arrow {
    color: #fff;
}

/* Remove card-bg completely to match tech stack style */

/* Remove click animation to match tech stack style */

/* Developer Stack Section */
.developer-stack-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

.stack-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.stack-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 140px;
    backdrop-filter: blur(10px);
}

.stack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.stack-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stack-item:hover i {
    transform: scale(1.1);
    color: #63b3ed;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.8);
}

.stack-item span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Professional Experience Section */
.experience-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

.experience-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.experience-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #63b3ed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.experience-icon i {
    font-size: 1.5rem;
    color: #000;
}

.experience-content {
    flex: 1;
}

.experience-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.experience-content p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Interactive Coding Console Styles */
.coding-console-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out 1s both;
}

.console-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.console-instructions {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.coding-console {
    background: #2d3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.console-header {
    background: #4a5568;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #718096;
}

.console-buttons {
    display: flex;
    gap: 0.5rem;
}

.console-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.console-btn.red { background: #ff5f56; }
.console-btn.yellow { background: #ffbd2e; }
.console-btn.green { background: #27ca3f; }

.console-title-text {
    color: #ccc;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.console-body {
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.console-output {
    margin-bottom: 1rem;
}

.console-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.prompt {
    color: #667eea;
    font-weight: bold;
    min-width: 20px;
}

.command {
    color: #fff;
}

.output-text {
    color: #ccc;
}

.code-block {
    color: #e6e6e6;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #63b3ed;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    white-space: pre-line;
    margin-left: 1.5rem;
}

.code-placeholder {
    color: #ff6b6b;
    font-style: italic;
}

.console-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.console-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
    caret-color: #63b3ed;
}

.console-input::placeholder {
    color: #666;
}

.console-hint {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.console-hint code {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Success notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #63b3ed);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    max-width: 300px;
    font-weight: 600;
}

.success-notification.show {
    transform: translateX(0);
}

.success-notification .notification-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-notification .notification-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Floating custom icons */
.floating-icon {
    position: fixed;
    font-size: 2rem;
    animation: floatEmoji 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
}

.floating-svg {
    width: 2rem;
    height: 2rem;
    color: rgba(0, 0, 0, 0.6);
}

.floating-dev-icon {
    font-size: 2rem;
    color: #667eea;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 6s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(5) {
    bottom: 60%;
    left: 25%;
    animation-delay: 4s;
}

.floating-icon:nth-child(6) {
    top: 15%;
    right: 5%;
    animation-delay: 1s;
}

.floating-icon:nth-child(7) {
    bottom: 20%;
    right: 25%;
    animation-delay: 5s;
}

.floating-icon:nth-child(8) {
    top: 60%;
    left: 8%;
    animation-delay: 7s;
}

.floating-icon:nth-child(9) {
    bottom: 30%;
    left: 15%;
    animation-delay: 9s;
}

.floating-icon:nth-child(10) {
    top: 25%;
    right: 15%;
    animation-delay: 11s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    html, body {
        /* Remove !important and let JS control theme */
    }
    .name, .tagline, .stack-title, .experience-title, .console-title, .console-instructions, .console-hint, .project-card h3, .project-card p, .experience-content h4, .experience-content p, .stat, .output-text, .code-block, .console-input, .console-title-text {
        color: inherit;
        text-shadow: none !important;
    }
    
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 2rem;
        color: #fff;
    }
    
    .tagline {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        display: block;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .project-card a {
        text-decoration: none;
        color: inherit;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    .developer-stack-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .stack-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .stack-item {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }
    
    .stack-item i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stack-item span {
        font-size: 0.9rem;
    }
    
    .experience-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .experience-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
    }
    
    .experience-icon i {
        font-size: 1.25rem;
    }
    
    .experience-content h4 {
        font-size: 1.1rem;
    }
    
    .experience-content p {
        font-size: 0.9rem;
    }
    
    .coding-console-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .console-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .console-instructions {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .coding-console {
        max-width: 100%;
    }
    
    .console-body {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .code-block {
        padding: 0.5rem;
        margin-left: 1rem;
        font-size: 0.75rem;
    }
    
    .console-input {
        font-size: 0.8rem;
    }
    
    .console-hint {
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .golf-course-game {
        width: 300px;
        height: 225px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle i {
        font-size: 1rem;
    }
    
    .golf-stats {
        gap: 0.75rem;
    }
    
    .stat {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    html, body {
        /* Remove !important and let JS control theme */
    }
    .name, .tagline, .stack-title, .experience-title, .console-title, .console-instructions, .console-hint, .project-card h3, .project-card p, .experience-content h4, .experience-content p, .stat, .output-text, .code-block, .console-input, .console-title-text {
        color: inherit;
        text-shadow: none !important;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .name {
        font-size: 1.75rem;
        color: #fff;
    }
    
    .tagline {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .profile-card {
        padding: 1.5rem 1rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-icon {
        width: 50px;
        height: 50px;
    }
    
    .developer-stack-section {
        padding: 1.5rem 1rem;
    }
    
    .stack-title {
        font-size: 1.5rem;
    }
    
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stack-item {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
    
    .stack-item i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .stack-item span {
        font-size: 0.8rem;
    }
    
    .experience-section {
        padding: 1.5rem 1rem;
    }
    
    .experience-title {
        font-size: 1.5rem;
    }
    
    .experience-item {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .experience-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .experience-icon i {
        font-size: 1.1rem;
    }
    
    .experience-content h4 {
        font-size: 1rem;
    }
    
    .experience-content p {
        font-size: 0.85rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .coding-console-section {
        padding: 1.5rem 1rem;
    }
    
    .console-title {
        font-size: 1.5rem;
    }
    
    .console-instructions {
        font-size: 0.85rem;
    }
    
    .console-body {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .code-block {
        padding: 0.4rem;
        margin-left: 0.5rem;
        font-size: 0.7rem;
    }
    
    .console-input {
        font-size: 0.75rem;
    }
    
    .console-hint {
        font-size: 0.75rem;
    }
    
    .success-notification {
        max-width: 250px;
        padding: 0.75rem 1rem;
        right: 10px;
        top: 10px;
    }
    
    .success-notification .notification-title {
        font-size: 1rem;
    }
    
    .success-notification .notification-message {
        font-size: 0.8rem;
    }
    
    .projects-grid {
        gap: 1rem;
    }
    
    .project-card {
        padding: 1.5rem 1rem;
        display: block;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .project-card a {
        text-decoration: none;
        color: inherit;
    }
    
    .golf-course-game {
        width: 280px;
        height: 200px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .floating-icon {
        display: none;
    }
}

/* Remove fun hover effects to match tech stack style */

.avatar-image{
    width: 100px;
    height: 120px;
}

/* Batman/Superman theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Golf stats styling */
.golf-stats {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.stat {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.7);
}

/* Building status section */
.building-status {
    margin: 1rem 0;
    text-align: center;
}

.building-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(0, 204, 106, 0.2));
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.building-text:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.building-text i {
    font-size: 1.1rem;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Certificates note */
.certificates-note {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

.certificates-note small {
    color: #666;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Golf joke section */
.golf-joke {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    animation: slideInUp 1s ease-out;
}

.joke-text {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.1rem;
}

.joke-answer {
    color: rgba(0, 0, 0, 0.8);
    font-style: italic;
    font-size: 1rem;
} 

body.mobile-light .profile-card .name,
body.mobile-light .profile-card .tagline,
body.mobile-light .profile-card .typing-text,
body.mobile-light .profile-card .stat,
body.mobile-light .profile-card .stat-icon,
body.mobile-light .developer-stack-section .stack-title,
body.mobile-light .developer-stack-section .stack-item,
body.mobile-light .developer-stack-section .stack-item span,
body.mobile-light .developer-stack-section .stack-item i {
    color: #222 !important;
    fill: #222 !important;
    text-shadow: none !important;
}

body.mobile-light .developer-stack-section .stack-item {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

body.mobile-light .profile-card .name,
body.mobile-light .profile-card .name * {
    color: #222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222 !important;
}

/* Tech stack: dark text, green icons in light mode */
body.mobile-light .developer-stack-section .stack-item span {
    color: #222 !important;
    text-shadow: none !important;
}
body.mobile-light .developer-stack-section .stack-item i {
    color: #667eea !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    width: 120px;
    height: 120px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f8fafc 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 4px solid #667eea;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.avatar-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15) !important;
    background: #fff !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Modern Section Animations & Dividers --- */
.section-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: sectionFadeIn 1s cubic-bezier(0.4,0,0.2,1) forwards;
}
.section-animate.delay-1 { animation-delay: 0.2s; }
.section-animate.delay-2 { animation-delay: 0.4s; }
.section-animate.delay-3 { animation-delay: 0.6s; }
.section-animate.delay-4 { animation-delay: 0.8s; }

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

.svg-divider {
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    margin: -2px 0 0 0;
    z-index: 1;
    position: relative;
}

.svg-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* --- Glassmorphism & Accent --- */
.profile-card, .developer-stack-section, .experience-section, .coding-console-section {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 1.5px 8px 0 #667eea;
    border: 1.5px solid rgba(102, 126, 234, 0.15);
}

.project-card, .stack-item, .experience-item {
    box-shadow: 0 4px 24px 0 rgba(102, 126, 234, 0.10), 0 1.5px 8px 0 #667eea;
    border: 1.5px solid rgba(102, 126, 234, 0.10);
}

.stack-item:focus, .project-card:focus, .experience-item:focus {
    outline: 2.5px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* --- 3D Tilt Prep --- */
.tilt-3d {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
    will-change: transform;
}

.tilt-3d.tilted {
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.18), 0 1.5px 8px 0 #667eea;
}

/* --- Confetti Effect --- */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
}
.confetti-piece {
    position: absolute;
    width: 10px; height: 18px;
    border-radius: 3px;
    opacity: 0.85;
    will-change: transform;
}

/* --- Focus States for Accessibility --- */
:focus-visible {
    outline: 2.5px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.projects-section {
    padding-top: 3.5rem;
    position: relative;
    z-index: 2;
}

.projects-grid {
    margin-top: 0;
    padding-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-card {
    z-index: 3;
    position: relative;
}

.svg-divider {
    margin-bottom: -40px;
    z-index: 1;
    position: relative;
    pointer-events: none;
}

/* --- Golf Caddy Chatbot Styles --- */
.caddy-chat-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    background: #667eea;
    color: #222;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.18);
    border: 2px solid #fff;
    z-index: 2;
    pointer-events: none;
    transform: translate(30%, 30%);
    animation: caddyPing 1.5s infinite;
}
@keyframes caddyPing {
    0% { box-shadow: 0 0 0 0 #667eea99; }
    70% { box-shadow: 0 0 0 10px #667eea00; }
    100% { box-shadow: 0 0 0 0 #667eea00; }
}
.caddy-tooltip {
    position: absolute;
    bottom: 110%;
    right: 0;
    background: #222;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.18);
    opacity: 0.97;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s;
    font-weight: 500;
}
.golf-caddy {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    outline: none;
}
.golf-caddy:focus .caddy-avatar {
    box-shadow: 0 0 0 4px #667eea;
}
.caddy-avatar {
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.18), 0 1.5px 8px 0 #667eea;
    border-radius: 50%;
    background: #fff;
    animation: caddyBounce 2.5s infinite, caddyGlow 1.5s infinite;

/* Food Safety & Health & Safety Enhanced Card Styles */
.fs-hs-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(240, 147, 251, 0.2) 100%);
    border: 4px solid #667eea;
    position: relative;
    overflow: hidden;
    transform: scale(1.05);
    min-height: 320px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3), 0 5px 15px rgba(102, 126, 234, 0.2);
    animation: cardGlow 2s ease-in-out infinite alternate;
}

.fs-hs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3), 0 5px 15px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    100% {
        box-shadow: 0 20px 45px rgba(102, 126, 234, 0.4), 0 8px 25px rgba(102, 126, 234, 0.3);
        border-color: #764ba2;
    }
}

.fs-hs-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(240, 147, 251, 0.15) 100%);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.fs-hs-icon {
    width: 0.75rem;
    height: 0.75rem;
    color: #667eea;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fs-hs-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.fs-hs-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.stat-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: badgeFloat 2s ease-in-out infinite;
}

.stat-badge:nth-child(1) { animation-delay: 0s; }
.stat-badge:nth-child(2) { animation-delay: 0.3s; }
.stat-badge:nth-child(3) { animation-delay: 0.6s; }

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.fs-hs-card .card-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fs-hs-card .card-arrow span {
    font-size: 0.9rem;
}

.fs-hs-card:hover .card-arrow {
    color: #764ba2;
    transform: translateX(5px);
}

/* Mobile optimizations for FS & HS card */
@media (max-width: 768px) {
    .fs-hs-card {
        transform: scale(1);
        min-height: 280px;
    }

    .fs-hs-card:hover {
        transform: translateY(-5px);
    }

    .fs-hs-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .fs-hs-description {
        font-size: 0.9rem;
    }
}
    cursor: pointer;
    transition: box-shadow 0.2s;
    z-index: 1;
}
@keyframes caddyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes caddyGlow {
    0% { box-shadow: 0 0 0 0 #667eea44; }
    70% { box-shadow: 0 0 16px 8px #667eea22; }
    100% { box-shadow: 0 0 0 0 #667eea00; }
}
.golf-caddy:hover .caddy-avatar {
    box-shadow: 0 0 0 6px #667eea44, 0 4px 24px rgba(102, 126, 234, 0.18), 0 1.5px 8px 0 #667eea;
}
.caddy-chat {
    min-width: 280px;
    max-width: 340px;
    background: rgba(30, 30, 40, 0.98);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.18), 0 1.5px 8px 0 #667eea;
    border: 1.5px solid rgba(102, 126, 234, 0.15);
    margin-bottom: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s;
}
.caddy-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.10);
    font-weight: 600;
    font-size: 1.1rem;
}
.caddy-close {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.2s;
}
.caddy-close:hover {
    color: #ff6b6b;
}
.caddy-messages {
    max-height: 220px;
    overflow-y: auto;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.caddy-message {
    background: rgba(0,255,136,0.08);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    max-width: 90%;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,255,136,0.08);
    font-size: 0.98rem;
    line-height: 1.4;
}
.caddy-message.user {
    background: rgba(255,255,255,0.12);
    color: #667eea;
    align-self: flex-end;
}
.caddy-form {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(102, 126, 234, 0.10);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}
.caddy-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    padding: 0.4rem 0.2rem;
}
.caddy-input::placeholder {
    color: #aaa;
}
.caddy-send {
    background: #667eea;
    border: none;
    color: #222;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.caddy-send:hover {
    background: #63b3ed;
}
@media (max-width: 600px) {
    .golf-caddy {
        bottom: 16px;
        right: 8px;
    }
    .caddy-chat {
        min-width: 90vw;
        max-width: 98vw;
    }
}