:root {
    --primary-color: #ff7b00;
    --secondary-color: #ff9f45;
    --accent-color: #ffbf69;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #f0f0f0;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #ff6b6b;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #1e1e1e;
    --card-hover: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(18, 18, 18, 0.85);
    --border-color: #333;
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.animate {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate.fade-in {
    animation: fadeIn 1s forwards;
}

.animate.slide-left {
    animation: slideInLeft 1s forwards;
}

.animate.slide-right {
    animation: slideInRight 1s forwards;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    background-image: 
        radial-gradient(2px 2px at 40px 60px, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 20px 50px, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 30px 100px, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 60px, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 110px 90px, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 190px 150px, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--light-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease-in-out;
    z-index: 1;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 25% 25%, var(--accent-color) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 75%, var(--secondary-color) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, var(--primary-color) 0%, transparent 100%);
    background-size: 100px 100px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

section:hover::before {
    opacity: 0.05;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    background: var(--secondary-color);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 123, 0, 0.3), 0 0 30px rgba(255, 123, 0, 0.3);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(15, 15, 15, 0.95);
    box-shadow: 0 5px 15px var(--shadow-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 25px;
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

#space-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease-out;
}

.hero-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.6);
}

/* Hero animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--dark-color) 20%, rgba(18, 18, 18, 0.5) 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(255, 123, 0, 0.3);
}

/* Projects Section - Updated for wide cards */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(50px);
    opacity: 0;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 1s);
    display: flex;
    flex-direction: row;
}

.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    background-color: var(--card-hover);
}

.project-card:nth-child(3n+1) {
    --delay: 0;
}

.project-card:nth-child(3n+2) {
    --delay: 2;
}

.project-card:nth-child(3n+3) {
    --delay: 4;
}

.project-img {
    width: 300px;
    min-height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Add media query for mobile layout */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
    }
    
    .project-img {
        width: 100%;
        height: 200px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.skills-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><line x1="10" y1="20" x2="40" y2="50" stroke="rgba(255,255,255,0.05)" stroke-width="0.5" /><line x1="40" y1="50" x2="70" y2="30" stroke="rgba(255,255,255,0.05)" stroke-width="0.5" /><line x1="70" y1="30" x2="90" y2="60" stroke="rgba(255,255,255,0.05)" stroke-width="0.5" /></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 1s);
}

.skill-category.visible {
    transform: translateY(0);
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    background-color: var(--card-hover);
}

.skill-category:nth-child(3n+1) {
    --delay: 0;
}

.skill-category:nth-child(3n+2) {
    --delay: 2;
}

.skill-category:nth-child(3n+3) {
    --delay: 4;
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-color);
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item p {
    color: var(--text-color);
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--darker-color);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: fadeIn 0.3s ease;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

/* Orbit decoration for sections */
.orbit-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 120s linear infinite;
}

.orbit-decoration::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-decoration.top-right {
    top: -150px;
    right: -150px;
}

.orbit-decoration.bottom-left {
    bottom: -150px;
    left: -150px;
}

/* Add a subtle star trail to the mouse cursor */
.star-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
