/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Global Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #16213e;
    --bg-accent: #0f3460;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-orange: #FF724C;
    --accent-green: #39ff14;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 114, 76, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 114, 76, 0.6); }
}

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Navigation Enhancements */
header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 114, 76, 0.1);
}

nav h1 {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section Enhancements */
#home {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 114, 76, 0.1) 0%, transparent 50%);
}

#home h2 span {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary {
    border: 2px solid var(--accent-orange);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent-orange);
    color: #000;
    transform: translateY(-2px);
}

/* Card Enhancements */
.project-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border: 1px solid rgba(255, 114, 76, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green));
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-orange);
}

/* Skill Cards */
.skill-card {
    background: var(--bg-accent);
    border: 1px solid rgba(255, 114, 76, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 114, 76, 0.2);
}

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

.skill-card:hover i {
    transform: scale(1.2);
    color: var(--accent-orange);
}

/* Form Styling */
.form-input {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 114, 76, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 114, 76, 0.1);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(255, 114, 76, 0.2);
    }
    
    nav ul.show {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    #home h2 {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #home h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Background Animations */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    top: 60%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green));
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation: spin-slow 20s linear infinite;
}

/* Footer Styling */
footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 114, 76, 0.1);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
