/* Google Fonts Import */
@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');

/* Modern color scheme and base styles */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #6366f1;
    --accent-color: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --primary: #6C63FF;
    --primary-light: #8F88FF;
    --secondary: #FF6B6B;
    --dark: #121212;
    --dark-light: #1E1E1E;
    --light: #F8F9FA;
    --gray: #6c757d;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #6C63FF, #FF6B6B);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 40px;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.1em;
    background: var(--gradient);
    z-index: -1;
    opacity: 0.3;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient);
    color: var(--light);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Background Elements */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iLjA1Ii8+PC9zdmc+');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1), transparent 60%);
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(18, 18, 18, 0.7);
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 40px;
    background: rgba(18, 18, 18, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

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

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 8s ease infinite;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: var(--transition);
}

.project-card[data-project="1"]::before {
    background-image: url('https://images.unsplash.com/photo-1617791160505-6f00504e3519?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.project-card[data-project="2"]::before {
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.project-card[data-project="3"]::before {
    background-image: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.project-card[data-project="4"]::before {
    background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

.project-card:hover::before {
    opacity: 0.25;
    transform: scale(1.05);
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-card .btn {
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.project-card .tech-stack {
    display: flex;
    gap: 1rem;
}

.project-card .tech-stack span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

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

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

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 30px 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        padding: 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

/* Animations */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Preview Banner */
.preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text);
    text-align: center;
    padding: 0.5rem;
    z-index: 1000;
    font-weight: 500;
} 