/* ============================================
   Gary Sinkowitz Portfolio - Custom Styles
   Dark theme with professional polish
   ============================================ */

/* CSS Variables */
:root {
    --gs-primary: #0d6efd;
    --gs-primary-dark: #0a58ca;
    --gs-bg-dark: #1a1d21;
    --gs-bg-darker: #131619;
    --gs-border: #2d3339;
    --gs-text-light: #e9ecef;
    --gs-text-muted: #9ca3af;
}

/* Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px; /* Account for fixed navbar */
}

body {
    background-color: var(--gs-bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.main-content {
    flex: 1;
    padding-top: 56px; /* Navbar height */
}

.bg-darker {
    background-color: var(--gs-bg-darker);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gs-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--gs-bg-darker) 0%, var(--gs-bg-dark) 50%, #1e3a5f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .display-3 {
    line-height: 1.1;
}

/* Page Headers */
.page-header {
    padding-top: 80px !important;
}

/* Project Cards */
.project-card,
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-image-container,
.product-image-container {
    height: 200px;
    overflow: hidden;
    background-color: var(--gs-bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image,
.product-card:hover .product-image {
    transform: scale(1.05);
}

.project-image-placeholder,
.product-image-placeholder {
    font-size: 4rem;
    color: var(--gs-border);
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
}

.feature-icon i {
    background: linear-gradient(135deg, var(--gs-primary), #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Project Details */
.project-detail {
    scroll-margin-top: 100px;
}

/* Forms */
.form-control:focus {
    border-color: var(--gs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control::placeholder {
    color: var(--gs-text-muted);
    opacity: 0.6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gs-primary) 0%, var(--gs-primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gs-primary-dark) 0%, #084298 100%);
    transform: translateY(-1px);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Badges */
.tech-stack .badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Footer */
.footer a:hover {
    color: var(--gs-primary) !important;
}

/* Alerts */
.alert {
    border: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d444d;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .btn-lg {
        width: 100%;
    }
}

/* Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--gs-primary), #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
