:root {
    --primary: #00823b; /* Loki green */
    --primary-dark: #006c31;
    --text-light: #f8f8f8;
    --text-dark: #1a1a1a;
    --bg-light: #ffffff;
    --bg-dark: #181818;
    --card-light: #f4f4f8;
    --card-dark: #252525;
    --border-light: rgba(0,0,0,0.1);
    --border-dark: rgba(255,255,255,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    cursor: none !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Custom cursor */
#custom-cursor {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--primary);
    transform: translate(-50%, -50%) rotate(135deg);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.2s;
}

#cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.1s, height 0.1s, border-color 0.3s;
}

#cursor-tag {
    position: fixed;
    background-color: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    transform: translate(10px, 10px);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

#owner-cursor {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #ff6b6b;
    transform: rotate(135deg);
    pointer-events: none;
    z-index: 10;
}

#owner-cursor-tag {
    position: absolute;
    background-color: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

a, button, input, textarea, .clickable {
    cursor: none !important;
}

a:hover ~ #custom-cursor,
button:hover ~ #custom-cursor,
input:hover ~ #custom-cursor,
textarea:hover ~ #custom-cursor,
.clickable:hover ~ #custom-cursor {
    border-bottom-color: white;
}

a:hover ~ #cursor-ring,
button:hover ~ #cursor-ring,
input:hover ~ #cursor-ring,
textarea:hover ~ #cursor-ring,
.clickable:hover ~ #cursor-ring {
    width: 32px;
    height: 32px;
    border-color: var(--primary);
}

/* Theme Styles */
body {
    font-family: 'Inter', sans-serif;
    perspective: 1000px;
}

.dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), #48bf53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

/* Cards & Sections */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    transform-style: preserve-3d;
}

.light .card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark .card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 130, 59, 0.1);
}

.dark .card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 130, 59, 0.2);
}

/* 3D effect for cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 0.5;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transition: left 0.3s;
    z-index: -1;
}

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

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 130, 59, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 130, 59, 0.25);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 130, 59, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Navbar & Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.light .navbar {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-light);
}

.dark .navbar {
    background-color: rgba(24, 24, 24, 0.8);
    border-bottom: 1px solid var(--border-dark);
}

/* Dropdown styling */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 110;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light .dropdown-content {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
}

.dark .dropdown-content {
    background-color: rgba(37, 37, 37, 0.95);
    border: 1px solid var(--border-dark);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    transition: background-color 0.2s;
}

.light .dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 130, 59, 0.2) 0%, rgba(0, 130, 59, 0) 70%);
    top: -300px;
    right: -300px;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 191, 83, 0.15) 0%, rgba(72, 191, 83, 0) 70%);
    bottom: -200px;
    left: -200px;
    z-index: -1;
}

/* Hero name container with cursor */
.name-container {
    position: relative;
    display: inline-block;
}

/* Technology icons */
.tech-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.light .tech-icon {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .tech-icon {
    background-color: rgba(255, 255, 255, 0.05);
}

.tech-icon::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: rotate(45deg);
    transition: all 0.5s;
}

.tech-icon:hover::before {
    top: 100%;
    left: 100%;
}

/* Brand color for tech icons */
.python-icon { color: #3776AB; }
.java-icon { color: #007396; }
.js-icon { color: #F7DF1E; }
.c-icon { color: #A8B9CC; }
.html-icon { color: #E34F26; }
.css-icon { color: #1572B6; }
.react-icon { color: #61DAFB; }
.laravel-icon { color: #FF2D20; }
.git-icon { color: #F05032; }
.figma-icon { color: #F24E1E; }
.canva-icon { color: #00C4CC; }
.hcd-icon { color: #4285F4; }

.tech-icon:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 130, 59, 0.3);
}

/* Typing effect */
.typing-effect::after {
    content: "|";
    animation: blink 1s infinite;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    z-index: 200;
    transition: right 0.3s ease-in-out;
}

.light .mobile-menu {
    background-color: var(--bg-light);
    border-left: 1px solid var(--border-light);
}

.dark .mobile-menu {
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-dark);
}

.mobile-menu.open {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.overlay.open {
    display: block;
}

/* Project cards */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
}

.light .project-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark .project-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #48bf53);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 130, 59, 0.1);
}

.dark .project-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 130, 59, 0.2);
}

/* Project iframe preview */
.project-preview {
    width: 100%;
    border-radius: 8px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.dark .project-preview {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: all 0.3s;
}

.project-preview:hover img {
    transform: scale(1.05);
}

/* Stats */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
}

.light .stat-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark .stat-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, rgba(0, 130, 59, 0.1), rgba(72, 191, 83, 0.1));
    transform: rotate(45deg);
    top: -75%;
    left: -75%;
    z-index: 0;
    transition: all 0.5s;
}

.stat-card:hover::before {
    top: -45%;
    left: -45%;
}

.stat-card:hover {
    transform: translateY(-5px) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 130, 59, 0.1);
}

.dark .stat-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 130, 59, 0.2);
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

/* Profile image */
.profile-image-container {
    position: relative;
    perspective: 1000px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    transition: all 0.5s;
}

.profile-image-container:hover .profile-image {
    transform: rotateY(10deg) rotateX(5deg);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Map styling */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.dark .map-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
}