/* ===== Osama Ibrahim Portfolio - Dark Theme Only ===== */

/* ---------------------------------- */
/* CSS Variables                      */
/* ---------------------------------- */
:root {
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.1);
    --scrollbar-track: #0f172a;   /* slate-900 */
    --scrollbar-thumb: #334155;    /* slate-700 */
    --scrollbar-thumb-hover: #22d3ee;
    
    /* Dark theme specific */
    --bg-primary: #0f172a;        /* slate-950 */
    --bg-secondary: #1e293b;       /* slate-900 */
    --bg-card: #1e293b;           /* slate-900/50 equivalent */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;     /* slate-300 */
    --text-muted: #94a3b8;        /* slate-400 */
    --border-color: #334155;       /* slate-700/800 */
}

/* ---------------------------------- */
/* Base & Global Styles               */
/* ---------------------------------- */

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for interactive elements */
a,
button {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ---------------------------------- */
/* Utility Classes                    */
/* ---------------------------------- */

/* Glow effect for cards */
.glow {
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Grid pattern background */
.grid-pattern {
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Soft radial gradient overlay */
.hero-gradient {
    background: radial-gradient(circle at 50% 30%,
            rgba(34, 211, 238, 0.2),
            transparent 70%);
}

/* Cyan text utility */
.cyan-text {
    color: var(--cyan);
}

/* Cyan border utility */
.cyan-border {
    border-color: var(--cyan);
}

/* Cyan background subtle */
.cyan-bg-subtle {
    background-color: rgba(34, 211, 238, 0.1);
}

/* Gradient text utility */
.gradient-text {
    @apply text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-indigo-500;
}

/* ---------------------------------- */
/* Layout Classes                      */
/* ---------------------------------- */

.container-custom {
    @apply max-w-6xl mx-auto px-6;
}

.section-padding {
    @apply py-20 px-6;
}

.section-padding-large {
    @apply py-24 px-6;
}

.section-title {
    @apply text-3xl font-bold mb-12 text-white font-mono tracking-tighter flex items-center gap-3;
}

.section-title i {
    color: var(--cyan);
}

/* ---------------------------------- */
/* Navigation Styles                   */
/* ---------------------------------- */

.navbar {
    @apply fixed w-full z-50 bg-slate-950/80 backdrop-blur-xl border-b border-slate-800;
}

.nav-brand {
    @apply text-xl font-bold tracking-tighter text-white;
}

.nav-brand span {
    color: var(--cyan);
}

.nav-link {
    @apply font-medium text-sm text-slate-300 hover:text-cyan-400 transition-colors;
}

/* ---------------------------------- */
/* Button Styles                       */
/* ---------------------------------- */

.btn-primary {
    @apply w-full py-4 bg-cyan-500 text-slate-950 font-black rounded-xl hover:bg-cyan-400 transition-all transform active:scale-[0.98] shadow-lg shadow-cyan-500/20;
}

.btn-primary i {
    @apply mr-2;
}

/* ---------------------------------- */
/* Card Styles                         */
/* ---------------------------------- */

.card-base {
    @apply group bg-slate-900/40 border border-slate-800 p-1 rounded-2xl hover:border-cyan-500/50 transition-all duration-500 relative overflow-hidden;
}

.card-content {
    @apply bg-slate-950 rounded-xl overflow-hidden;
}

.card-header {
    @apply aspect-video bg-slate-900 flex items-center justify-center relative overflow-hidden;
}

.card-title {
    @apply text-xl font-bold text-white group-hover:text-cyan-400 transition-colors;
}

.card-description {
    @apply text-slate-400 text-sm mb-4 font-sans;
}

.card-badge {
    @apply absolute top-3 right-3 z-10 bg-cyan-500/20 backdrop-blur-sm text-cyan-400 text-[8px] font-mono px-2 py-1 rounded-full border border-cyan-500/30;
}

.external-link-icon {
    @apply fas fa-external-link-alt text-slate-600 group-hover:text-cyan-400 text-sm;
}

/* Stack cards */
.stack-card {
    @apply bg-slate-900/50 border border-slate-800 rounded-xl p-4 flex items-center gap-3 hover:border-cyan-500/50 transition group;
}

.stack-card span {
    @apply font-mono text-sm text-slate-300 group-hover:text-cyan-400 transition;
}

/* Stack icon colors */
.stack-icon-yellow { @apply text-2xl text-yellow-400; }
.stack-icon-cyan { @apply text-2xl text-cyan-400; }
.stack-icon-purple { @apply text-2xl text-purple-400; }
.stack-icon-orange { @apply text-2xl text-orange-400; }
.stack-icon-teal { @apply text-2xl text-teal-400; }
.stack-icon-blue { @apply text-2xl text-blue-400; }
.stack-icon-green { @apply text-2xl text-green-600; }
.stack-icon-green-400 { @apply text-2xl text-green-400; }
.stack-icon-sky { @apply text-2xl text-sky-400; }
.stack-icon-gray { @apply text-2xl text-slate-400; }

/* Project tags */
.project-tag {
    @apply px-2 py-1 text-[10px] font-mono rounded;
}

.project-tag-cyan {
    @apply px-2 py-1 bg-slate-800 text-cyan-400 text-[10px] font-mono rounded;
}

.project-tag-gray {
    @apply px-2 py-1 bg-slate-800 text-slate-400 text-[10px] font-mono rounded;
}

/* ---------------------------------- */
/* Form Styles                         */
/* ---------------------------------- */

.input-field {
    @apply w-full p-4 bg-slate-950 border border-slate-800 rounded-xl text-white placeholder-slate-600 focus:outline-none focus:border-cyan-500 focus:ring-1 focus:ring-cyan-500/50 transition-all;
}

/* ---------------------------------- */
/* Social & Link Styles                */
/* ---------------------------------- */

.social-link {
    @apply text-slate-400 hover:text-cyan-400 transition-all transform hover:scale-110 hover:-translate-y-0.5;
}

.social-icon {
    @apply text-slate-400 hover:text-cyan-400 transition-transform hover:scale-110;
}

.footer-social {
    @apply text-slate-500 hover:text-cyan-400 transition;
}

.footer-link {
    @apply text-slate-400 hover:text-cyan-400 transition text-sm;
}

/* ---------------------------------- */
/* Badge & Status Styles               */
/* ---------------------------------- */

.status-badge {
    @apply inline-block px-4 py-1.5 mb-6 text-[10px] font-mono tracking-[0.2em] text-cyan-400 uppercase bg-cyan-400/10 border border-cyan-400/20 rounded-md backdrop-blur-sm;
}

/* ---------------------------------- */
/* Contact Section Specific            */
/* ---------------------------------- */

.contact-card {
    @apply bg-slate-900/60 border border-slate-800 rounded-2xl p-6 w-full backdrop-blur-sm;
}

.contact-quote {
    @apply text-slate-300 text-sm mb-5 font-light italic border-l-2 border-cyan-400 pl-3;
}

.contact-email-row {
    @apply flex items-center justify-center md:justify-start gap-2 text-sm font-mono bg-slate-950/50 p-3 rounded-xl border border-slate-700/50;
}

.contact-email-row a {
    @apply text-slate-300 hover:text-cyan-400 transition truncate;
}

.contact-email-row button {
    @apply ml-auto text-slate-500 hover:text-cyan-400 transition;
}

/* ---------------------------------- */
/* Footer Styles                       */
/* ---------------------------------- */

.footer {
    @apply py-12 border-t border-slate-900 bg-slate-950/50;
}

.footer-heading {
    @apply text-white font-mono text-sm mb-3 tracking-wider;
}

.footer-text {
    @apply text-slate-400 text-sm;
}

.footer-bottom {
    @apply pt-6 border-t border-slate-800 flex flex-col sm:flex-row justify-between items-center gap-3 text-xs text-slate-600;
}

/* ---------------------------------- */
/* Typewriter Cursor                   */
/* ---------------------------------- */

#typewriter::after {
    content: "|";
    animation: blink 1s infinite;
    font-weight: 300;
    color: var(--cyan);
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}