:root {
    --bg-color: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --accent: #00d2ff;
    --accent-secondary: #3a7bd5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
}

/* 3D Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0f172a 0%, #000000 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 600px;
}

.cta-group {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-button {
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5);
}

/* Social Icons in Hero */
.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 100px 0 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Projects Grid */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
}

/* The 3D Card */
.card-3d {
    width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.1s;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    pointer-events: none;
}

.card-3d:hover::before {
    transform: translateX(100%);
}

.card-content {
    transform: translateZ(20px);
    flex-grow: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.card-3d h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.project-details {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
}

.project-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.project-details li::before {
    content: '▹';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category h3 {
    color: var(--accent);
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: #1e293b;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid #334155;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-item i {
    color: var(--accent);
}

.skill-item:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.05);
}

.skill-item:hover i {
    color: black;
}

footer {
    text-align: center;
    padding: 80px 0 40px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}