/* Reset and Base Styles - Dark Theme Updated 2025-08-29 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Claude.ai Dark Theme Colors */
    --primary-color: #d97706;
    --primary-dark: #b45309;
    --secondary-color: #2d2d2d;
    --accent-color: #f59e0b;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --background: #0f0f0f;
    --surface: #1a1a1a;
    --surface-hover: #242424;
    --border: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, #d97706, #f59e0b);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: var(--background);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px at 50% 50%, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Floating Card Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.card-dots span:first-child {
    background: #ff5f57;
}

.card-dots span:nth-child(2) {
    background: #ffbd2e;
}

.card-dots span:nth-child(3) {
    background: #28ca42;
}

.code-line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.code-line.short {
    width: 60%;
}

.code-line.medium {
    width: 80%;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--background);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Template Gallery */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.template-card.coming-soon {
    opacity: 0.7;
}

.template-preview {
    height: 200px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.preview-header {
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.preview-content {
    padding: 1rem;
    height: calc(100% - 60px);
}

/* Claude Preview */
.claude-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.message {
    background: var(--surface-hover);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.input-field {
    margin-top: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Portfolio Preview */
.portfolio-preview {
    text-align: center;
    padding: 0.5rem;
}

.portfolio-nav {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.portfolio-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.portfolio-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Dashboard Preview */
.dashboard-preview {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.dashboard-sidebar {
    width: 30%;
    background: var(--primary-color);
    border-radius: 0.25rem;
    opacity: 0.8;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-card {
    height: 30%;
    background: var(--border);
    border-radius: 0.25rem;
}

.dashboard-card.wide {
    height: 40%;
}

/* Add Template */
.add-template .template-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-template-content {
    text-align: center;
    color: var(--text-light);
}

.add-template-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Template Info */
.template-info {
    padding: 1.5rem;
}

.template-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.template-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

/* Contact Section */
.contact {
    background: var(--background);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--surface);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer p {
    opacity: 0.8;
}

/* Mobile-First Responsive Design */
/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn, .template-card, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .template-card:hover {
        transform: none;
    }
    
    .template-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Tablet and mobile breakpoints */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .floating-card {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .template-card {
        margin: 0;
    }
    
    .template-info {
        padding: 1rem;
    }
    
    .template-title {
        font-size: 1.1rem;
    }
    
    .template-description {
        font-size: 0.85rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .floating-card {
        max-width: 240px;
        padding: 1rem;
    }
}

/* Services Section */
.services {
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}

/* Additional styles for enhanced project visibility */

/* Large project button */
.btn-large {
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3) !important;
    animation: pulse-glow 2s ease-in-out infinite alternate !important;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    }
    to {
        box-shadow: 0 6px 25px rgba(217, 119, 6, 0.5);
    }
}

/* Projects banner */
.projects-banner {
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.banner-content i {
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Enhanced template cards */
.template-card {
    position: relative;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.template-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.2) !important;
    transform: translateY(-5px) !important;
}

.template-card::before {
    content: "🖱️ CLICK TO VIEW";
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

.template-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Section title enhancement */
.section-title {
    font-size: 3rem !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    .btn-large {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}